]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
client: import the key in ceph is copy_admin_key is true v3.1.0beta7
authorSébastien Han <seb@redhat.com>
Wed, 18 Apr 2018 13:44:36 +0000 (15:44 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 18 Apr 2018 15:46:54 +0000 (17:46 +0200)
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 <seb@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml

index 36bbcc8ef125543c2785de229dfa42fa5aec530c..204ea7695759ffc350a7e2df90ae8a6b1bac743a 100644 (file)
@@ -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: