File tree Expand file tree Collapse file tree 4 files changed +38
-2
lines changed
roles/ceph-defaults/defaults Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,18 @@ dummy:
5656#mgr_group_name: mgrs
5757#rgwloadbalancer_group_name: rgwloadbalancers
5858#monitoring_group_name: monitoring
59+ #adopt_label_group_names:
60+ # - "{{ mon_group_name }}"
61+ # - "{{ osd_group_name }}"
62+ # - "{{ rgw_group_name }}"
63+ # - "{{ mds_group_name }}"
64+ # - "{{ nfs_group_name }}"
65+ # - "{{ rbdmirror_group_name }}"
66+ # - "{{ client_group_name }}"
67+ # - "{{ iscsi_gw_group_name }}"
68+ # - "{{ mgr_group_name }}"
69+ # - "{{ rgwloadbalancer_group_name }}"
70+ # - "{{ monitoring_group_name }}"
5971
6072# If configure_firewall is true, then ansible will try to configure the
6173# appropriate firewalling rules so that Ceph daemons can communicate
Original file line number Diff line number Diff line change @@ -56,6 +56,18 @@ dummy:
5656#mgr_group_name: mgrs
5757#rgwloadbalancer_group_name: rgwloadbalancers
5858#monitoring_group_name: monitoring
59+ #adopt_label_group_names:
60+ # - "{{ mon_group_name }}"
61+ # - "{{ osd_group_name }}"
62+ # - "{{ rgw_group_name }}"
63+ # - "{{ mds_group_name }}"
64+ # - "{{ nfs_group_name }}"
65+ # - "{{ rbdmirror_group_name }}"
66+ # - "{{ client_group_name }}"
67+ # - "{{ iscsi_gw_group_name }}"
68+ # - "{{ mgr_group_name }}"
69+ # - "{{ rgwloadbalancer_group_name }}"
70+ # - "{{ monitoring_group_name }}"
5971
6072# If configure_firewall is true, then ansible will try to configure the
6173# appropriate firewalling rules so that Ceph daemons can communicate
Original file line number Diff line number Diff line change 361361 when : is_hci | bool
362362
363363 - name : manage nodes with cephadm - ipv4
364- command : " {{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv4_addresses'] | ips_in_ranges(cephadm_mgmt_network.split(',')) | first }} {{ group_names | join(' ') }}"
364+ command : " {{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv4_addresses'] | ips_in_ranges(cephadm_mgmt_network.split(',')) | first }} {{ group_names | intersect(adopt_label_group_names) | join(' ') }}"
365365 changed_when : false
366366 delegate_to : ' {{ groups[mon_group_name][0] }}'
367367 when : ip_version == 'ipv4'
368368
369369 - name : manage nodes with cephadm - ipv6
370- command : " {{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv6_addresses'] | ips_in_ranges(cephadm_mgmt_network.split(',')) | last | ipwrap }} {{ group_names | join(' ') }}"
370+ command : " {{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv6_addresses'] | ips_in_ranges(cephadm_mgmt_network.split(',')) | last | ipwrap }} {{ group_names | intersect(adopt_label_group_names) | join(' ') }}"
371371 changed_when : false
372372 delegate_to : ' {{ groups[mon_group_name][0] }}'
373373 when : ip_version == 'ipv6'
Original file line number Diff line number Diff line change @@ -48,6 +48,18 @@ iscsi_gw_group_name: iscsigws
4848mgr_group_name : mgrs
4949rgwloadbalancer_group_name : rgwloadbalancers
5050monitoring_group_name : monitoring
51+ adopt_label_group_names :
52+ - " {{ mon_group_name }}"
53+ - " {{ osd_group_name }}"
54+ - " {{ rgw_group_name }}"
55+ - " {{ mds_group_name }}"
56+ - " {{ nfs_group_name }}"
57+ - " {{ rbdmirror_group_name }}"
58+ - " {{ client_group_name }}"
59+ - " {{ iscsi_gw_group_name }}"
60+ - " {{ mgr_group_name }}"
61+ - " {{ rgwloadbalancer_group_name }}"
62+ - " {{ monitoring_group_name }}"
5163
5264# If configure_firewall is true, then ansible will try to configure the
5365# appropriate firewalling rules so that Ceph daemons can communicate
You can’t perform that action at this time.
0 commit comments