Skip to content

Commit 43a243b

Browse files
MoteHueAlex-Welsh
andauthored
Update etc/kayobe/cephadm.yml
Co-authored-by: Alex-Welsh <[email protected]>
1 parent 3b4f110 commit 43a243b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

etc/kayobe/cephadm.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@ cephadm_commands_pre: "{{ cephadm_commands_pre_default + cephadm_commands_pre_ex
9090
cephadm_commands_post: "{{ cephadm_commands_post_default + cephadm_commands_post_extra }}"
9191

9292
cephadm_commands_pre_default: []
93-
{% if kolla_enable_prometheus_ceph_mgr_exporter %}
94-
cephadm_commands_post_default:
95-
- "mgr module enable prometheus"
96-
{% else %}
97-
cephadm_commands_post_default: []
98-
{% endif %}
93+
cephadm_commands_post_default: "{{ ['mgr module enable prometheus'] if kolla_enable_prometheus_ceph_mgr_exporter else [] }}"
9994

10095
cephadm_commands_pre_extra: []
10196
cephadm_commands_post_extra: []

0 commit comments

Comments
 (0)