From 968ba15b98263060ed2c3030f27039ba950e7425 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 13 May 2015 12:09:22 -0400 Subject: Added options for separate ec2.ini files --- roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) 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 }} -- cgit v1.2.3