]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: add cluster name option to the handler
authorSébastien Han <seb@redhat.com>
Thu, 1 Mar 2018 15:50:06 +0000 (16:50 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Mar 2018 20:59:10 +0000 (20:59 +0000)
If the cluster name is different than 'ceph', the command will fail so
we need to pass the cluster name.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-rgw/handlers/main.yml

index a1c7c960a0b0a3a4b5dbd2f4d5cd97ae684c491b..909f91f8703f6ab069ea2e169c23a5f199bfd986 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: update period
-  command: radosgw-admin period update --commit
+  command: radosgw-admin --cluster {{ cluster }} period update --commit
   delegate_to: "{{ groups[mon_group_name][0] }}"
   run_once: true