diff options
author | 2017-09-20 14:31:14 +0800 | |
---|---|---|
committer | 2017-10-26 16:38:13 +0800 | |
commit | d0b985617d8a167147157a70b448db43c50e6474 (patch) | |
tree | df075c5be1df13864b405b78a91d6c194328dd26 /xci/file/noha/user_ceph.yml | |
parent | f2727f7ab48423e3950a42af96de60b2e1b7abfb (diff) |
Integrate ceph in XCI
Openstack ansible support to deploy ceph.
The purpose of this patch is to configure the ceph,
just like we configure other openstack components.
The default is to not deploy ceph.
If you want to deploy ceph you just need to
export XCI_CEPH_ENABLED=true before running xci-deploy.sh.
When deployed successfully, the openstack storage will use ceph.
Change-Id: Ifd8d16fdce2914b6316842e72bbfd93228ea059d
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'xci/file/noha/user_ceph.yml')
-rw-r--r-- | xci/file/noha/user_ceph.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xci/file/noha/user_ceph.yml b/xci/file/noha/user_ceph.yml new file mode 100644 index 00000000..9d5f13a9 --- /dev/null +++ b/xci/file/noha/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 |