From 3fc9da6b7dd0e3dc2d1afd7b2dfad4f4189232d4 Mon Sep 17 00:00:00 2001 From: wutianwei Date: Mon, 7 Aug 2017 20:03:34 +0800 Subject: 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 --- .../ansible/roles/config-osa/tasks/main.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'deploy/adapters/ansible/roles/config-osa/tasks/main.yml') diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index b1b32f77..cd1e90e9 100644 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -77,3 +77,27 @@ copy: src: fetch-files.yml dest: /opt/openstack-ansible/playbooks/fetch-files.yml + +- name: copy user_ceph.yml + copy: + src: user_ceph.yml + dest: /etc/openstack_deploy/user_ceph.yml + when: + - "{{ hostvars[inventory_hostname]['groups']['ceph_mon'] |length > 0 }}" + - "{{ hostvars[inventory_hostname]['groups']['ceph_osd'] | length > 0 }}" + +- name: render ceph.yml.j2 + template: + src: ceph.yml.j2 + dest: /etc/openstack_deploy/conf.d/ceph.yml + when: + - "{{ hostvars[inventory_hostname]['groups']['ceph_mon'] |length > 0 }}" + - "{{ hostvars[inventory_hostname]['groups']['ceph_osd'] | length > 0 }}" + +- name: render user_variables_ceph.yml.j2 + template: + src: user_variables_ceph.yml.j2 + dest: /etc/openstack_deploy/user_variables_ceph.yml + when: + - "{{ hostvars[inventory_hostname]['groups']['ceph_mon'] |length > 0 }}" + - "{{ hostvars[inventory_hostname]['groups']['ceph_osd'] | length > 0 }}" -- cgit 1.2.3-korg