]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm: add admin label on mon nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 1 Oct 2021 12:41:23 +0000 (14:41 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 1 Oct 2021 21:23:06 +0000 (23:23 +0200)
This is needed if you want a copy of the admin keyring on the admin
nodes.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b555f1d1cdbcf3e2bf902fe5a64d32adc61d0266)

infrastructure-playbooks/cephadm.yml

index b25d08abc786c9c0a7a56d16491db6bea8040d5c..984cc0410690aad2970154263d313bb7551c0f98 100644 (file)
         CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
 
     - name: manage nodes with cephadm
-      command: "{{ cephadm_cmd }} shell -- ceph --cluster {{ cluster }} orch host add {{ ansible_facts['hostname'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }}"
+      command: "{{ cephadm_cmd }} shell -- ceph --cluster {{ cluster }} orch host add {{ ansible_facts['hostname'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }} {{ '_admin' if mon_group_name | default('mons') in group_names else '' }}"
       changed_when: false
       delegate_to: '{{ groups[mon_group_name][0] }}'
       environment: