From: Sébastien Han Date: Mon, 12 Jan 2015 13:36:15 +0000 (+0100) Subject: Make the monitor secret a mandatory variable. X-Git-Tag: v1.0.0~278^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=289cc5423add6362963f5e3d0b4093366e471c71;p=ceph-ansible.git Make the monitor secret a mandatory variable. 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 --- diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index 18edf5374..f2830d220 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -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: >