aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles
diff options
context:
space:
mode:
authorramamani yeleswarapu <ramamani.yeleswarapu@intel.com>2018-11-06 14:24:46 -0800
committerramamani yeleswarapu <ramamani.yeleswarapu@intel.com>2018-11-06 14:27:43 -0800
commit8e827e621ec4c9b9abee2d3a3d56fa52c03dbd90 (patch)
treebbdd1cd12f7b9e9cbc2834a5fa305addaf5fbb4b /plugins/stor4nfv/roles
parenta421c905989aaebe18ea961dd7d72368cb93ba86 (diff)
[os-stor4nfv] Fix errors in HA deploy
Change-Id: I1d744f024068ec412933487ef8234892f6391f77 Signed-off-by: ramamani yeleswarapu <ramamani.yeleswarapu@intel.com>
Diffstat (limited to 'plugins/stor4nfv/roles')
-rw-r--r--plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
index 4c4370fd..c0044322 100644
--- a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
+++ b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
@@ -83,6 +83,7 @@
register: opensds_driver_exists
when:
- inventory_hostname in groups['ceph-mon']
+ - groups['ceph_adm'][0] in inventory_hostname
- name: copy opensds conf
remote_user: root
@@ -93,6 +94,7 @@
cp -r /tmp/driver /etc/opensds;
when:
- inventory_hostname in groups['ceph-mon']
+ - groups['ceph_adm'][0] in inventory_hostname
- name: create ceph pool
remote_user: root
@@ -100,6 +102,7 @@
ceph osd pool create rbd 24 && ceph osd pool set rbd size 1
when:
- inventory_hostname in groups['ceph-mon']
+ - groups['ceph_adm'][0] in inventory_hostname
- name: ensure osdsdock exists
stat:
@@ -107,6 +110,7 @@
register: opensds_exists
when:
- inventory_hostname in groups['ceph-mon']
+ - groups['ceph_adm'][0] in inventory_hostname
- name: start osdsdock daemon
remote_user: root
@@ -114,6 +118,7 @@
cd /opt && ./bin/osdsdock -daemon
when:
- inventory_hostname in groups['ceph-mon']
+ - groups['ceph_adm'][0] in inventory_hostname
- name: ensure osdsctl exists
stat: