From 4bc89660111fbd2fe8a7edc1cbc053b2e297ec56 Mon Sep 17 00:00:00 2001 From: ramamani yeleswarapu Date: Wed, 7 Feb 2018 21:33:40 -0800 Subject: Add plugin for Stor4nfv for k8s deploy - Adds 'stor4nfv' plugin which installs OpenSDS using stor4nfv. - Adds k8s-nosdn-stor4nfv-ha scenario file. - Adds k8s-nosdn-stor4nfv-noha scenario file. Change-Id: Iee718a48994ad4e55f4b7a01933bd4e7773ac67f Signed-off-by: ramamani yeleswarapu --- plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2 (limited to 'plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2') diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2 new file mode 100644 index 00000000..fda313d4 --- /dev/null +++ b/plugins/stor4nfv/roles/stor4nfv/templates/ceph.hosts.j2 @@ -0,0 +1,14 @@ +[mons] +{% for controller in hostvars[inventory_hostname]['groups']['kube_master'] %} +{{ controller }} ansible_ssh_host={{ hostvars[controller]['ansible_ssh_host'] }} +{% endfor %} + +[osds] +{% for controller in hostvars[inventory_hostname]['groups']['storage_node'] %} +{{ controller }} ansible_ssh_host={{ hostvars[controller]['ansible_ssh_host'] }} +{% endfor %} + +[mgrs] +{% for controller in hostvars[inventory_hostname]['groups']['kube_master'] %} +{{ controller }} ansible_ssh_host={{ hostvars[controller]['ansible_ssh_host'] }} +{% endfor %} -- cgit 1.2.3-korg