Skip to content

Commit cb45c4c

Browse files
authored
Merge pull request #1680 from stackhpc/ceph-conf-custom-config
Add an option to append content to Ceph configs
2 parents d97ede4 + 712030c commit cb45c4c

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

etc/kayobe/ansible/cephadm-gather-keys.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
# Kolla Ansible's merge_configs module does not like the leading tabs in ceph.conf.
6969
content: |
7070
{{ cephadm_ceph_conf.stdout | regex_replace('\t') }}
71+
{{ kolla_ceph_conf_append if kolla_ceph_conf_append is defined }}
7172
dest: "{{ kayobe_env_config_path }}/kolla/config/{{ kolla_service_to_conf_dir[item.0.name] }}/ceph.conf"
7273
loop: "{{ query('subelements', kolla_ceph_services | selectattr('required'), 'keys') }}"
7374
loop_control:

etc/kayobe/cephadm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@ kolla_ceph_manila_required: "{{ kolla_enable_manila | bool }}"
136136

137137
# Whether to generate Ceph configuration for Nova.
138138
kolla_ceph_nova_required: "{{ kolla_enable_nova | bool }}"
139+
140+
# A (multiline) string to append to all Ceph configuration files.
141+
#kolla_ceph_conf_append:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Add ``kolla_ceph_conf_append`` configuration option to specify a string
5+
to be appended to all ceph.conf files gathered from a ceph cluster using
6+
``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cephadm-gather-keys.yml``.

0 commit comments

Comments
 (0)