diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-05-13 12:09:22 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-05-13 12:09:22 -0400 |
commit | 968ba15b98263060ed2c3030f27039ba950e7425 (patch) | |
tree | 4c4f0ccd82c34c261644840632640ed5c4359f1f | |
parent | 22a2616359ee1f167c85ec21bf416350706a7b5b (diff) | |
download | openshift-968ba15b98263060ed2c3030f27039ba950e7425.tar.gz openshift-968ba15b98263060ed2c3030f27039ba950e7425.tar.bz2 openshift-968ba15b98263060ed2c3030f27039ba950e7425.tar.xz openshift-968ba15b98263060ed2c3030f27039ba950e7425.zip |
Added options for separate ec2.ini files
-rw-r--r-- | roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 b/roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 index f7005ff5b..6e794c194 100644 --- a/roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 +++ b/roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 @@ -5,6 +5,13 @@ accounts: {% for account in oo_inventory_accounts %} - name: {{ account.name }} provider: {{ account.provider }} + provider_config: +{% for section, items in account.provider_config.items() %} + {{ section }}: +{% for property, value in items.items() %} + {{ property }}: {{ value }} +{% endfor %} +{% endfor %} env_vars: AWS_ACCESS_KEY_ID: {{ account.env_vars.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: {{ account.env_vars.AWS_SECRET_ACCESS_KEY }} |