From 8addf20d278f89a292509fb61337ff788eafdaf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 2 Feb 2017 09:32:12 +0100 Subject: [PATCH] docker: fix restapi key creation with cluster name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for key creation when the cluster name is different than 'ceph'. Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/docker/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-mon/tasks/docker/main.yml b/roles/ceph-mon/tasks/docker/main.yml index e93ed509f..15499e6e2 100644 --- a/roles/ceph-mon/tasks/docker/main.yml +++ b/roles/ceph-mon/tasks/docker/main.yml @@ -82,9 +82,9 @@ when: not mon_containerized_deployment_with_kv - name: create ceph rest api keyring when mon is containerized - command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring + command: docker exec {{ ansible_hostname }} ceph --cluster {{ cluster }} auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/{{ cluster }}.client.restapi.keyring args: - creates: /etc/ceph/ceph.client.restapi.keyring + creates: /etc/ceph/{{ cluster }}.client.restapi.keyring changed_when: false when: - cephx