diff options
author | liyuenan <liyuenan@huawei.com> | 2017-01-14 11:31:08 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2017-01-14 05:48:28 +0000 |
commit | 2e33f30a1f0a17692d6d0348248df10b98cfb498 (patch) | |
tree | 1f8d3612a4667bf977db5ce5a0cbe0696f06e78b /deploy/adapters/ansible/roles/storage/tasks/main.yml | |
parent | 1da2cee07a11d5dd7b83ab0437807fc239929f1c (diff) |
Deploy OpenStack Newton on CentOS hosts
JIRA: COMPASS-518
Make Centos Newton ppa.
Update host Centos version to 7.3.
Support Centos Newton Deploy.
Support Ceph Deploy.
Change-Id: I6dd110cc10d425a9d590e1dcb5777ade5cce96aa
Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/tasks/main.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/storage/tasks/main.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml index b4263d6b..b054be9e 100755 --- a/deploy/adapters/ansible/roles/storage/tasks/main.yml +++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml @@ -51,9 +51,17 @@ tags: - storage - -- name: enable service +- name: add to boot scripts shell: update-rc.d storage defaults + when: ansible_os_family == "Debian" + tags: + - storage + +- name: add to boot scripts + shell: | + chkconfig --add storage; + chkconfig --level 2345 storage on; + when: ansible_os_family == 'RedHat' tags: - storage |