aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j2
blob: aa8625c1bf147701de885bd43476a95bb7523d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[all]
{% for item in hosts %}
{{ item.key }} ansible_host={{ item.value }}
{% endfor %}

[operator]
{% for item in hosts %}
{% if "operator" in item.key %}
{{ item.key }}
{% endif %}
{% endfor %}

[control]
{% for item in hosts %}
{% if "control" in item.key %}
{{ item.key }}
{% endif %}
{% endfor %}

[workers]
{% for item in hosts %}
{% if "worker" in item.key %}
{{ item.key }}
{% endif %}
{% endfor %}

[nfs]
{% for item in hosts %}
{% if "nfs" in item.key %}
{{ item.key }}
{% endif %}
{% endfor %}

[nfs:vars]
nfs_role="server"

[control:vars]
nfs_role="client"

[workers:vars]
nfs_role="client"

[all:vars]
ansible_ssh_private_key_file="~/.ssh/{{ keypair.name }}"
ansible_ssh_common_args='-o StrictHostKeyChecking=no'