diff options
author | 2016-02-15 22:14:45 -0500 | |
---|---|---|
committer | 2016-02-24 01:54:19 -0500 | |
commit | e72bc045fd467a442a0ffb1c78e710a270a59dfa (patch) | |
tree | de36cb10caf65af125d3815733c92abd561d8866 /deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml | |
parent | 00ba12cbc900cb1cb38bee938544cc95583ab416 (diff) |
Support version Liberty of OpenStack for CENTOS7
JIRA:COMPASS-315
-Support version Liberty of OpenStack for CENTOS7
Change-Id: I81abbb37a295a0ea733398ad1f278bafc3525d87
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml b/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml index 9494e679..5c637a2e 100644 --- a/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml +++ b/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml @@ -25,3 +25,9 @@ - name: rebuild osd after reboot lineinfile: dest=/etc/init/ceph-osd-all-starter.conf insertafter="^task" line="pre-start script\n set -e\n /opt/setup_storage/losetup.sh\n sleep 3\n mount /dev/storage-volumes/ceph0 /var/local/osd\nend script" + when: ansible_os_family == "Debian" + +- name: rebuild osd after reboot for centos + lineinfile: dest=/usr/init.d/ceph insertafter="^### END INIT INFO" line="\nsleep 1\nmount /dev/storage-volumes/ceph0 /var/local/osd" + when: ansible_os_family == "RedHat" + |