From: Guillaume Abrioux Date: Tue, 12 Dec 2017 10:25:26 +0000 (+0100) Subject: client: don't try to generate keys X-Git-Tag: beta-3.1.0~20 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ab1dd3027a4b9932e58f28b86ab46979eb1f1682;p=ceph-ansible.git client: don't try to generate keys the entrypoint to generate users keyring is `ceph-authtool`, therefore, it can expand the `$(ceph-authtool --gen-print-key)` inside the container. Users must generate a keyring themselves. This commit also adds a check to ensure keyring are properly filled when `user_config: true`. Signed-off-by: Guillaume Abrioux --- diff --git a/group_vars/clients.yml.sample b/group_vars/clients.yml.sample index 301c37238..b4fc87117 100644 --- a/group_vars/clients.yml.sample +++ b/group_vars/clients.yml.sample @@ -21,7 +21,12 @@ dummy: # Can add `mds_cap` attribute to override the default value which is '' for mds capabilities. # To have have ansible setfacl the generated key for $user, set the acls var like so: # acls: ["u:$user:r--"] +# +# Generate a keyring using ceph-authtool CLI or python. +# Eg: +# $ ceph-authtool --gen-print-key +# $ python2 -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('