diff options
Diffstat (limited to 'plugins/stor4nfv/roles/stor4nfv/templates')
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 | 4 | ||||
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 (renamed from plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2) | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 deleted file mode 100644 index 0e8fa4c9..00000000 --- a/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 +++ /dev/null @@ -1,4 +0,0 @@ -[worker-nodes] -{% for worker in hostvars[inventory_hostname]['groups']['storage_master'] %} -{{ worker }} ansible_ssh_host={{ hostvars[worker]['ansible_ssh_host'] }} -{% endfor %} diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 index 97068b90..c93f2b77 100644 --- a/plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2 +++ b/plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 @@ -7,3 +7,8 @@ {% for dock in hostvars[inventory_hostname]['groups']['storage_master'] %} {{ dock }} ansible_ssh_host={{ hostvars[dock]['ansible_ssh_host'] }} {% endfor %} + +[worker-nodes] +{% for worker in hostvars[inventory_hostname]['groups']['storage_master'] %} +{{ worker }} ansible_ssh_host={{ hostvars[worker]['ansible_ssh_host'] }} +{% endfor %} |