diff options
author | wutianwei <wutianwei1@huawei.com> | 2017-08-07 20:03:34 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2017-08-15 09:22:02 +0800 |
commit | 3fc9da6b7dd0e3dc2d1afd7b2dfad4f4189232d4 (patch) | |
tree | a03ad37d191ef0f85d7f36ceb8daa117d7e56297 /deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml | |
parent | 37db53e73201a46d673a5a52844a8c5d640b9403 (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/config-osa/files/user_ceph.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml b/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml new file mode 100644 index 00000000..9d5f13a9 --- /dev/null +++ b/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml @@ -0,0 +1,16 @@ +--- +# The OSA ceph_client role does not support loading IPs from an inventory group, +# so we have to feed it a list of IPs +# yamllint disable rule:line-length +ceph_mons: "[ {% for host in groups[mon_group_name] %}'{{ hostvars[host]['ansible_host'] }}'{% if not loop.last %},{% endif %}{% endfor %} ]" +# yamllint enable rule:line-length +cinder_backends: + "RBD": + volume_driver: cinder.volume.drivers.rbd.RBDDriver + rbd_pool: volumes + rbd_ceph_conf: /etc/ceph/ceph.conf + rbd_store_chunk_size: 8 + volume_backend_name: rbddriver + rbd_user: cinder + rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}" + report_discard_supported: true |