Support deployment of extra ceph.conf files
Currently, ceph_client role only deploys one ceph.conf file to a hard-coded location of /etc/ceph/ceph.conf Cinder is able to utilize multiple configs for Ceph when using multiple Ceph clusters by defining the variable rbd_ceph_conf in each rbd backend defined in cinder_backends. This patch allows a deployer to define the dictionary variable ceph_extra_confs to deploy more ceph.conf files. Change-Id: I1e8d1c6bb10915789ab4d08b5596844f01d2b8d7
This commit is contained in:
parent
814fe24ab1
commit
aa47f369ab
@ -74,6 +74,21 @@ The example uses ``cephx`` authentication, and requires existing ``glance`` and
|
||||
|
||||
.. _Deploying SSH Keys: targethosts-prepare.html#deploying-ssh-keys
|
||||
|
||||
Extra client configuration files
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Deployers can specify extra Ceph configuration files to support
|
||||
multiple Ceph cluster backends via the ``ceph_extra_confs`` variable.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
ceph_extra_confs:
|
||||
- src: "/opt/rdb-1.conf"
|
||||
dest: "/etc/ceph/rdb-1.conf"
|
||||
- src: "/opt/rdb-2.conf"
|
||||
dest: "/etc/ceph/rdb-2.conf"
|
||||
|
||||
These config file sources must be present on the deployment host.
|
||||
|
||||
Monitors
|
||||
~~~~~~~~
|
||||
|
||||
|
5
releasenotes/notes/extra-ceph-conf-337b9371b49219ff.yaml
Normal file
5
releasenotes/notes/extra-ceph-conf-337b9371b49219ff.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- New variable ``ceph_extra_confs`` may be defined to support
|
||||
deployment of extra Ceph config files. This is useful for cinder
|
||||
deployments that utilize multiple Ceph clusters as cinder backends.
|
@ -59,3 +59,16 @@
|
||||
tags:
|
||||
- ceph-config-create-config
|
||||
|
||||
- name: Create extra ceph.conf files
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- Restart os services
|
||||
with_items: "{{ ceph_extra_confs }}"
|
||||
when: ceph_extra_confs is defined
|
||||
tags:
|
||||
- ceph-config-create-config
|
||||
|
Loading…
Reference in New Issue
Block a user