]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: fix admin keyring creation task
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 4 Apr 2024 08:53:12 +0000 (10:53 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 4 Apr 2024 12:23:06 +0000 (14:23 +0200)
Although custom cluster name support was dropped, it breaks ceph-volume
functional testing as it uses "test" as cluster name.
The plan is to make ceph-volume use "ceph" but for now it's easier to
address the issue in this task.

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

roles/ceph-mon/tasks/deploy_monitors.yml

index 3c2a8e4a392643ddfae82a7bc39b15378525cf4a..eed7287fb6f538fd21d4679fab2c9add5ef04ab4 100644 (file)
@@ -92,7 +92,7 @@
 - name: Create admin keyring
   ceph_authtool:
     name: client.admin
-    path: /etc/ceph/ceph.client.admin.keyring
+    path: "/etc/ceph/{{ cluster }}.client.admin.keyring"
     owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
     group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
     mode: "0400"
     owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
     group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
     mode: "0400"
-    import_keyring: /etc/ceph/ceph.client.admin.keyring
+    import_keyring: "/etc/ceph/{{ cluster }}.client.admin.keyring"
   environment:
     CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else None }}"
     CEPH_CONTAINER_BINARY: "{{ container_binary }}"