aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/openstack/templates/hosts.j2
diff options
context:
space:
mode:
Diffstat (limited to 'resources/ansible_roles/openstack/templates/hosts.j2')
-rw-r--r--resources/ansible_roles/openstack/templates/hosts.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/ansible_roles/openstack/templates/hosts.j2 b/resources/ansible_roles/openstack/templates/hosts.j2
new file mode 100644
index 00000000..6756d2a2
--- /dev/null
+++ b/resources/ansible_roles/openstack/templates/hosts.j2
@@ -0,0 +1,17 @@
+localhost ansible_connection=local
+
+[SUT:children]
+compute
+
+[node-groups:children]
+compute
+
+[node-groups:vars]
+ansible_ssh_common_args=-F ./ssh.cfg
+
+[compute]
+{% for item in stack.stack.outputs %}
+{% if item.output_key == 'instance_ip' %}
+{{item.output_value}}
+{% endif %}
+{% endfor %}