]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
client: do not rely on copy_admin_key to import keys
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Jul 2018 14:03:10 +0000 (16:03 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 13 Jul 2018 06:52:00 +0000 (06:52 +0000)
commit5ef5fcd0b64ed1a0fe4ffb1750984d29599839a4
tree08d75a61d349587502bc6a2acd3d6e32eb800f91
parenta1b3d5b7c3eed146372cbda5941653809504bb10
client: do not rely on copy_admin_key to import keys

Relying on `copy_admin_key` to import created keys on client nodes makes
us obliged to copy admin key on those nodes which is not something we might
want.
We should use the fact `condition_copy_admin_key` which will be set to
`True` when the delegated node is a mon which means we can import keys
without taking care of admin keyring.

Fixes: #2867
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml