## Ceph options
#
+# Each cluster requires a unique, consistent filesystem ID. By
+# default, the playbook generates one for you and stores it in a file
+# in `fetch_directory`. If you want to customize how the fsid is
+# generated, you may find it useful to disable fsid generation to
+# avoid cluttering up your ansible repo. If you set `generate_fsid` to
+# false, you *must* generate `fsid` in another way.
#fsid: "{{ cluster_uuid.stdout }}"
+#generate_fsid: true
+
#cephx: true
#cephx_require_signatures: true # Kernel RBD does NOT support signatures!
#cephx_cluster_require_signatures: true
\r
## Ceph options\r
#\r
+# Each cluster requires a unique, consistent filesystem ID. By\r
+# default, the playbook generates one for you and stores it in a file\r
+# in `fetch_directory`. If you want to customize how the fsid is\r
+# generated, you may find it useful to disable fsid generation to\r
+# avoid cluttering up your ansible repo. If you set `generate_fsid` to\r
+# false, you *must* generate `fsid` in another way.\r
fsid: "{{ cluster_uuid.stdout }}"\r
+generate_fsid: true\r
+\r
cephx: true\r
cephx_require_signatures: true # Kernel RBD does NOT support signatures for Kernels < 3.18!\r
cephx_cluster_require_signatures: true\r
changed_when: false
become: false
run_once: true
+ when:
+ cephx or
+ generate_fsid
- name: generate cluster uuid
local_action: shell python -c 'import uuid; print str(uuid.uuid4())' | tee {{ fetch_directory }}/ceph_cluster_uuid.conf
creates="{{ fetch_directory }}/ceph_cluster_uuid.conf"
register: cluster_uuid
become: false
+ when: generate_fsid
- name: read cluster uuid if it already exists
local_action: command cat {{ fetch_directory }}/ceph_cluster_uuid.conf
changed_when: false
register: cluster_uuid
become: false
+ when: generate_fsid
- name: create ceph conf directory
file: