From: Sébastien Han Date: Thu, 2 Feb 2017 08:32:12 +0000 (+0100) Subject: docker: fix restapi key creation with cluster name X-Git-Tag: v2.2.0rc1~42^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d5afdfb99c2ed9e80f776425f192b11794ed45d;p=ceph-ansible.git docker: fix restapi key creation with cluster name Add support for key creation when the cluster name is different than 'ceph'. Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-mon/tasks/docker/main.yml b/roles/ceph-mon/tasks/docker/main.yml index 62d111750..fdf91156e 100644 --- a/roles/ceph-mon/tasks/docker/main.yml +++ b/roles/ceph-mon/tasks/docker/main.yml @@ -74,9 +74,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