]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-: update group_vars to reflect previous change 567/head
authorSébastien Han <seb@redhat.com>
Thu, 25 Feb 2016 11:10:45 +0000 (12:10 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 29 Feb 2016 14:10:34 +0000 (15:10 +0100)
Signed-off-by: Sébastien Han <seb@redhat.com>
group_vars/mdss.sample
group_vars/osds.sample
group_vars/rgws.sample
roles/ceph-mds/tasks/pre_requisite.yml
roles/ceph-osd/tasks/pre_requisite.yml
roles/ceph-rgw/tasks/pre_requisite.yml

index fae7bc279da6e93b28b3924b26134f6010739268..5039b3b9f7e8a39ac68a2f2703dfbed1385d41d3 100644 (file)
@@ -10,6 +10,11 @@ dummy:
 \r
 #fetch_directory: fetch/\r
 \r
+# Even though MDS nodes should not have the admin key\r
+# at their disposal, some people might want to have it\r
+# distributed on MDS nodes. Setting 'copy_admin_key' to 'true'\r
+# will copy the admin key to the /etc/ceph/ directory\r
+# copy_admin_key: false\r
 \r
 ##########\r
 # DOCKER #\r
index 1af7191e8ee47ea6392f71176a5dba82899d3675..66904a7b1bdbe1d518f66fd18c1e2f34f6ee5494 100644 (file)
@@ -11,6 +11,12 @@ dummy:
 
 #fetch_directory: fetch/
 
+# Even though OSD nodes should not have the admin key
+# at their disposal, some people might want to have it
+# distributed on OSD nodes. Setting 'copy_admin_key' to 'true'
+# will copy the admin key to the /etc/ceph/ directory
+#copy_admin_key: false
+
 ####################
 # OSD CRUSH LOCATION
 ####################
index 707c36116b5efeadde495dc96ce724fa3244b262..8ec233ca881e4cef5ba6b7f5730888b586ade2a5 100644 (file)
@@ -9,6 +9,12 @@ dummy:
 #\r
 #cephx: true\r
 \r
+# Even though RGW nodes should not have the admin key\r
+# at their disposal, some people might want to have it\r
+# distributed on RGW nodes. Setting 'copy_admin_key' to 'true'\r
+# will copy the admin key to the /etc/ceph/ directory\r
+# copy_admin_key: false\r
+\r
 # Used for the sudo exception while starting the radosgw process\r
 # a new entry /etc/sudoers.d/ceph will be created\r
 # allowing root to not require tty\r
index 966e458726af7dbcfee5d75a1789a03273bbe628..ede48415abebe2f66cdd2dfbcb9b62ae3cfa8b8e 100644 (file)
 - name: copy mds bootstrap key
   copy:
     src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
-    dest: "{{ item }}"
+    dest: "{{ item.name }}"
     owner: "{{ key_owner }}"
     group: "{{ key_group }}"
     mode: "{{ key_mode }}"
   with_items:
-    - { name: /var/lib/ceph/bootstrap-mds/ceph.keyring, copy: true }
-    - { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
+    - { name: /var/lib/ceph/bootstrap-mds/ceph.keyring, copy_key: true }
+    - { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
   when:
     cephx and
-    item.copy is true
+    item.copy_key|bool
 
 - name: create mds directory
   file:
index 12fe9a5717487495ecf26e2661873898a686d1fb..61b9395a8854ddf803ca318d15c23f2c4851525f 100644 (file)
 - name: copy osd bootstrap key
   copy:
     src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
-    dest: "{{ item }}"
+    dest: "{{ item.name }}"
     owner: "{{ key_owner }}"
     group: "{{ key_group }}"
     mode: "{{ key_mode }}"
   with_items:
-    - { name: /var/lib/ceph/bootstrap-osd/ceph.keyring, copy: true }
-    - { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
+    - { name: /var/lib/ceph/bootstrap-osd/ceph.keyring, copy_key: true }
+    - { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
   when:
     cephx and
-    item.copy is true
+    item.copy_key|bool
index a546774f6549ce7a7c7acdbf66ab2cf176d48d0a..8b24a271e8d0398beced77df2d213610355ed941 100644 (file)
 - name: copy rados gateway bootstrap key
   copy:
     src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
-    dest: "{{ item }}"
+    dest: "{{ item.name }}"
     owner: "{{ key_owner }}"
     group: "{{ key_group }}"
     mode: "{{ key_mode }}"
   with_items:
-    - { name: /var/lib/ceph/bootstrap-rgw/ceph.keyring, copy: true }
-    - { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
+    - { name: /var/lib/ceph/bootstrap-rgw/ceph.keyring, copy_key: true }
+    - { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
   when:
     cephx and
-    item.copy is true
+    item.copy_key|bool
 
 - name: create rados gateway keyring
   command: ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.{{ ansible_hostname }} osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}/keyring