noheat: Upgrades, refactor, deploy Devstack
[integration.git] / deployment / noheat / infra-openstack / ansible / templates / inventory.ini.j2
1 [all]
2 {% for item in hosts %}
3 {{ item.key }} ansible_host={{ item.value }}
4 {% endfor %}
5
6 [openstack]
7 {% for item in hosts %}
8 {% if "openstack" in item.key %}
9 {{ item.key }}
10 {% endif %}
11 {% endfor %}
12
13 [operator]
14 {% for item in hosts %}
15 {% if "operator" in item.key %}
16 {{ item.key }}
17 {% endif %}
18 {% endfor %}
19
20 [control]
21 {% for item in hosts %}
22 {% if "control" in item.key %}
23 {{ item.key }}
24 {% endif %}
25 {% endfor %}
26
27 [workers]
28 {% for item in hosts %}
29 {% if "worker" in item.key %}
30 {{ item.key }}
31 {% endif %}
32 {% endfor %}
33
34 [nfs]
35 {% for item in hosts %}
36 {% if "nfs" in item.key %}
37 {{ item.key }}
38 {% endif %}
39 {% endfor %}
40
41 [nfs:vars]
42 nfs_role="server"
43
44 [control:vars]
45 nfs_role="client"
46
47 [workers:vars]
48 nfs_role="client"
49
50 [all:vars]
51 ansible_ssh_private_key_file="~/.ssh/{{ keypair.name }}"
52 ansible_ssh_common_args='-o StrictHostKeyChecking=no'
53 ansible_python_interpreter="/usr/bin/python3"