aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles/stor4nfv/templates
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-03-01 01:07:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-01 01:07:01 +0000
commitd9c78464420c0e40beeca60e982d6f86f96509af (patch)
tree3d497ea1f198e88f9ccf71ad044c63db4f6fb5c1 /plugins/stor4nfv/roles/stor4nfv/templates
parent047bd241fe9ac576ca967593022f1195e38a8041 (diff)
parent0d7ba90b8e90b948842ae7a41d14a6af7fad9e8a (diff)
Merge "Update Stor4nfv plugin with nbp csi install"
Diffstat (limited to 'plugins/stor4nfv/roles/stor4nfv/templates')
-rw-r--r--plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2
new file mode 100644
index 00000000..0e8fa4c9
--- /dev/null
+++ b/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2
@@ -0,0 +1,4 @@
+[worker-nodes]
+{% for worker in hostvars[inventory_hostname]['groups']['storage_master'] %}
+{{ worker }} ansible_ssh_host={{ hostvars[worker]['ansible_ssh_host'] }}
+{% endfor %}