From 6c742376fd2b4ac4cab3430430136a5bd5a1145d Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 18 Apr 2018 15:44:36 +0200 Subject: [PATCH] client: import the key in ceph is copy_admin_key is true MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If the user has set copy_admin_key to true we assume he/she wants to import the key in Ceph and not only create the key on the filesystem. Signed-off-by: Sébastien Han --- roles/ceph-client/tasks/create_users_keys.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-client/tasks/create_users_keys.yml b/roles/ceph-client/tasks/create_users_keys.yml index 36bbcc8ef..204ea7695 100644 --- a/roles/ceph-client/tasks/create_users_keys.yml +++ b/roles/ceph-client/tasks/create_users_keys.yml @@ -40,6 +40,7 @@ containerized: "{{ docker_exec_client_cmd | default('') }}" cluster: "{{ cluster }}" dest: "{{ ceph_conf_key_directory }}" + import_key: "{{ copy_admin_key }}" # if the admin key is copied we assume the user wants to import the key in Ceph not only create it with_items: "{{ keys }}" run_once: true when: -- 2.39.5