aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/tasks/main.yml
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2017-08-07 20:03:34 +0800
committerwutianwei <wutianwei1@huawei.com>2017-08-15 09:22:02 +0800
commit3fc9da6b7dd0e3dc2d1afd7b2dfad4f4189232d4 (patch)
treea03ad37d191ef0f85d7f36ceb8daa117d7e56297 /deploy/adapters/ansible/roles/storage/tasks/main.yml
parent37db53e73201a46d673a5a52844a8c5d640b9403 (diff)
Make the storage use ceph
1. ceph.yml define which host install ceph-mon and ceph-osd 2. user_ceph.yml define variables of ceph and cinder backend 3. user_variables_ceph.yml.j2 define variables of ceph for user Change-Id: Iafea998f4603eb4b5c15a26f2387e6cb04c35d4c Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/tasks/main.yml')
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml
index b054be9e..3d9635cc 100755
--- a/deploy/adapters/ansible/roles/storage/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml
@@ -65,4 +65,12 @@
tags:
- storage
+- name: load ceph.yml
+ include: ceph.yml
+ when:
+ - "{{ hostvars[inventory_hostname]['groups']['ceph_mon'] |length > 0 }}"
+ - "{{ hostvars[inventory_hostname]['groups']['ceph_osd'] | length > 0 }}"
+ tags:
+ - storage
+
- meta: flush_handlers