From ab1dd3027a4b9932e58f28b86ab46979eb1f1682 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 12 Dec 2017 11:25:26 +0100 Subject: [PATCH] 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 --- group_vars/clients.yml.sample | 9 +++++++-- roles/ceph-client/defaults/main.yml | 9 +++++++-- roles/ceph-client/tasks/pre_requisite.yml | 8 ++++++++ tests/functional/centos/7/cluster/group_vars/clients | 3 +++ 4 files changed, 25 insertions(+), 4 deletions(-) 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('