aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2021-07-27 12:46:46 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2021-08-24 13:40:22 +0000
commit1583a651b3f1934cdf6c10e38ae526c31077a983 (patch)
tree0f9d736f9d247790d47f4f461c9f317bc7ac447e /deployment/noheat
parentf85754bbceb4aac3609038e2d13316625f08b63e (diff)
noheat deployment: Add groups to dynamic inventory
Also set variables that will be needed to deploy NFS. Issue-ID: INT-1601 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com> Change-Id: Ibb033726f040246094f45ec5f1288b4bb4de0ef0
Diffstat (limited to 'deployment/noheat')
-rw-r--r--deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j237
1 files changed, 37 insertions, 0 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j2 b/deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j2
index 421c9c21f..aa8625c1b 100644
--- a/deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j2
+++ b/deployment/noheat/infra-openstack/ansible/templates/inventory.ini.j2
@@ -3,6 +3,43 @@
{{ 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'