Skip to content

Commit 650f67b

Browse files
authored
Merge pull request #701 from stackhpc/ceph-mgr-module-enable-prometheus
Extend the cephadm commands to allow defaults and extras
2 parents f3e0fc9 + 708a134 commit 650f67b

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

etc/kayobe/cephadm.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,14 @@ cephadm_cluster_network: "{{ storage_mgmt_net_name | net_cidr }}"
8686
# stackhpc.cephadm.commands for format. Pre commands run before the rest of the
8787
# post-deployment configuration, post commands run after the rest of the
8888
# post-deployment configuration.
89-
#cephadm_commands_pre:
90-
#cephadm_commands_post:
89+
cephadm_commands_pre: "{{ cephadm_commands_pre_default + cephadm_commands_pre_extra }}"
90+
cephadm_commands_post: "{{ cephadm_commands_post_default + cephadm_commands_post_extra }}"
91+
92+
cephadm_commands_pre_default: []
93+
cephadm_commands_pre_extra: []
94+
95+
cephadm_commands_post_default: "{{ ['mgr module enable prometheus'] if kolla_enable_prometheus_ceph_mgr_exporter | bool else [] }}"
96+
cephadm_commands_post_extra: []
9197

9298
###############################################################################
9399
# Kolla Ceph auto-configuration.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
features:
3+
- |
4+
The Cephadm pre and post commands now support default commands with the
5+
variables ``cephadm_commands_pre_default`` and
6+
``cephadm_commands_post_default``. As such, any extra commands should be
7+
added to the variables ``cephadm_commands_pre_extra`` and
8+
``cephadm_commands_post_extra``.

0 commit comments

Comments
 (0)