File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ All Ceph hosts must be in the `ceph` group.
32
32
* ` cephadm_recreate ` : If existing cluster should be destroyed and recreated (default: False)
33
33
* ` cephadm_custom_repos ` : If enabled - the role won't define yum/apt repositories (default: False)
34
34
* ` cephadm_package_update ` : If enabled - cephadm package will be updated to latest version (default: False)
35
+ * ` cephadm_host_labels ` : If set (list format) - those additional labels will be applied to host definitions (default: [ ] - empty list)
35
36
* Bootstrap settings
36
37
* ` cephadm_bootstrap_host ` : The host on which to bootstrap Ceph (default: ` groups['mons'][0] ` )
37
38
* ` cephadm_enable_dashboard ` : If enabled - dashboard service on MGR will be enabled (default: False)
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ cephadm_bootstrap_host: "{{ groups['mons'][0] }}"
19
19
cephadm_enable_dashboard : False
20
20
cephadm_enable_firewalld : False
21
21
cephadm_enable_monitoring : False
22
+ cephadm_host_labels : []
22
23
cephadm_install_ceph_cli : False
23
24
cephadm_ssh_public_key : " /etc/ceph/cephadm.pub"
24
25
cephadm_ssh_private_key : " /etc/ceph/cephadm.id"
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ labels:
17
17
{% if host in groups .get ('rgws' , []) %}
18
18
- rgw
19
19
{% endif %}
20
+ {% if hostvars [host ].cephadm_host_labels | length > 0 %}
21
+ {{ hostvars[host] .cephadm_host_labels }}
22
+ {% endif %}
20
23
{% endfor %}
21
24
---
22
25
service_type: mon
You can’t perform that action at this time.
0 commit comments