Skip to content

Commit

Permalink
Allow to customize env locally for molecule
Browse files Browse the repository at this point in the history
... working remotely behind a proxy...
  • Loading branch information
zeitounator committed Oct 3, 2018
1 parent 6583078 commit 9ffc0d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ molecule/**/.molecule/
molecule/**/__pycache__/
molecule/**/.cache
molecule/**/.pytest_cache
molecule/custom_env.yml
README.md.orig.*
README.md.toc.*
*.pyc
Expand Down
12 changes: 12 additions & 0 deletions molecule/default-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@
vars_files:
- ssl-{{ ansible_os_family }}.yml
- nexus_test_vars.yml
# Allow to add some extra env for guest
# for local tests purposes (e.g. set proxy)
# Usage: create molecule/custom_env.yml and define molecule_custom_env
#
# ---
# molecule_custom_env:
# http_proxy: http://my.proxy:8080
# ...
#
# Call molecule converge with extra vars loading the file
# molecule converge -s <scenario> -- -e @../custom_env.yml
environment: "{{ molecule_custom_env | default({}) }}"

0 comments on commit 9ffc0d2

Please sign in to comment.