]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make the monitor secret a mandatory variable. 179/head
authorSébastien Han <sebastien.han@enovance.com>
Mon, 12 Jan 2015 13:36:15 +0000 (14:36 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Mon, 12 Jan 2015 13:36:15 +0000 (14:36 +0100)
Default behavior is to fail if a variable is not declared however this
can be disable in your ansible.cfg so we force this variable as
mandatory.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/ceph-mon/tasks/deploy_monitors.yml

index 18edf5374ee2c3334a9ee00c63a3eb8281d056b9..f2830d22093d44e0b286c3e8b45f6c734a23a0d2 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: Create monitor initial keyring
-  command: "ceph-authtool /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} --create-keyring --name=mon. --add-key={{ monitor_secret }} --cap mon 'allow *' creates=/var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}"
+  command: "ceph-authtool /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} --create-keyring --name=mon. --add-key={{ monitor_secret | mandatory }} --cap mon 'allow *' creates=/var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}"
 
 - name: Set initial monitor key permissions
   file: >