diff --git a/.gitignore b/.gitignore index 5d576886..14601bd2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ molecule/**/.molecule/ molecule/**/__pycache__/ molecule/**/.cache molecule/**/.pytest_cache +molecule/custom_env.yml README.md.orig.* README.md.toc.* *.pyc diff --git a/molecule/default-playbook.yml b/molecule/default-playbook.yml index d3fcc7a8..e18a916e 100644 --- a/molecule/default-playbook.yml +++ b/molecule/default-playbook.yml @@ -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 -- -e @../custom_env.yml + environment: "{{ molecule_custom_env | default({}) }}"