diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-04-09 16:43:14 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-04-09 16:43:14 -0400 |
commit | 1917cd3f88299c4dc23ef344c0e2aefc7e79db4f (patch) | |
tree | dd653ab5eba05b27054a322e494275d2b030e10b /roles/openshift_ansible_inventory/templates | |
parent | 285ff520ec5090bb89277efc3c89601b01e69990 (diff) | |
download | openshift-1917cd3f88299c4dc23ef344c0e2aefc7e79db4f.tar.gz openshift-1917cd3f88299c4dc23ef344c0e2aefc7e79db4f.tar.bz2 openshift-1917cd3f88299c4dc23ef344c0e2aefc7e79db4f.tar.xz openshift-1917cd3f88299c4dc23ef344c0e2aefc7e79db4f.zip |
Adding a multi_ec2 yaml configure role
Diffstat (limited to 'roles/openshift_ansible_inventory/templates')
-rw-r--r-- | roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 | 11 |
1 files changed, 11 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 new file mode 100644 index 000000000..23dfe73b8 --- /dev/null +++ b/roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 @@ -0,0 +1,11 @@ +# multi ec2 inventory configs +cache_max_age: {{ oo_inventory_cache_max_age }} +accounts: +{% for account in oo_inventory_accounts %} + - name: {{ account.name }} + provider: {{ account.provider }} + env_vars: + AWS_ACCESS_KEY_ID: {{ account.env_vars.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: {{ account.env_vars.AWS_SECRET_ACCESS_KEY }} + +{% endfor %} |