mirror of https://github.com/ceph/ceph-ansible.git
ceph-: update group_vars to reflect previous change
Signed-off-by: Sébastien Han <seb@redhat.com>pull/567/head
parent
bb55860a7a
commit
51e4fe8e0b
|
@ -10,6 +10,11 @@ dummy:
|
||||||
|
|
||||||
#fetch_directory: fetch/
|
#fetch_directory: fetch/
|
||||||
|
|
||||||
|
# Even though MDS nodes should not have the admin key
|
||||||
|
# at their disposal, some people might want to have it
|
||||||
|
# distributed on MDS nodes. Setting 'copy_admin_key' to 'true'
|
||||||
|
# will copy the admin key to the /etc/ceph/ directory
|
||||||
|
# copy_admin_key: false
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# DOCKER #
|
# DOCKER #
|
||||||
|
|
|
@ -11,6 +11,12 @@ dummy:
|
||||||
|
|
||||||
#fetch_directory: fetch/
|
#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
|
# OSD CRUSH LOCATION
|
||||||
####################
|
####################
|
||||||
|
|
|
@ -9,6 +9,12 @@ dummy:
|
||||||
#
|
#
|
||||||
#cephx: true
|
#cephx: true
|
||||||
|
|
||||||
|
# Even though RGW nodes should not have the admin key
|
||||||
|
# at their disposal, some people might want to have it
|
||||||
|
# distributed on RGW nodes. Setting 'copy_admin_key' to 'true'
|
||||||
|
# will copy the admin key to the /etc/ceph/ directory
|
||||||
|
# copy_admin_key: false
|
||||||
|
|
||||||
# Used for the sudo exception while starting the radosgw process
|
# Used for the sudo exception while starting the radosgw process
|
||||||
# a new entry /etc/sudoers.d/ceph will be created
|
# a new entry /etc/sudoers.d/ceph will be created
|
||||||
# allowing root to not require tty
|
# allowing root to not require tty
|
||||||
|
|
|
@ -10,16 +10,16 @@
|
||||||
- name: copy mds bootstrap key
|
- name: copy mds bootstrap key
|
||||||
copy:
|
copy:
|
||||||
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
||||||
dest: "{{ item }}"
|
dest: "{{ item.name }}"
|
||||||
owner: "{{ key_owner }}"
|
owner: "{{ key_owner }}"
|
||||||
group: "{{ key_group }}"
|
group: "{{ key_group }}"
|
||||||
mode: "{{ key_mode }}"
|
mode: "{{ key_mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { name: /var/lib/ceph/bootstrap-mds/ceph.keyring, copy: true }
|
- { name: /var/lib/ceph/bootstrap-mds/ceph.keyring, copy_key: true }
|
||||||
- { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
|
- { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and
|
||||||
item.copy is true
|
item.copy_key|bool
|
||||||
|
|
||||||
- name: create mds directory
|
- name: create mds directory
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
- name: copy osd bootstrap key
|
- name: copy osd bootstrap key
|
||||||
copy:
|
copy:
|
||||||
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
||||||
dest: "{{ item }}"
|
dest: "{{ item.name }}"
|
||||||
owner: "{{ key_owner }}"
|
owner: "{{ key_owner }}"
|
||||||
group: "{{ key_group }}"
|
group: "{{ key_group }}"
|
||||||
mode: "{{ key_mode }}"
|
mode: "{{ key_mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { name: /var/lib/ceph/bootstrap-osd/ceph.keyring, copy: true }
|
- { name: /var/lib/ceph/bootstrap-osd/ceph.keyring, copy_key: true }
|
||||||
- { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
|
- { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and
|
||||||
item.copy is true
|
item.copy_key|bool
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
- name: copy rados gateway bootstrap key
|
- name: copy rados gateway bootstrap key
|
||||||
copy:
|
copy:
|
||||||
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
|
||||||
dest: "{{ item }}"
|
dest: "{{ item.name }}"
|
||||||
owner: "{{ key_owner }}"
|
owner: "{{ key_owner }}"
|
||||||
group: "{{ key_group }}"
|
group: "{{ key_group }}"
|
||||||
mode: "{{ key_mode }}"
|
mode: "{{ key_mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { name: /var/lib/ceph/bootstrap-rgw/ceph.keyring, copy: true }
|
- { name: /var/lib/ceph/bootstrap-rgw/ceph.keyring, copy_key: true }
|
||||||
- { name: /etc/ceph/client.admin.keyring, "{{ copy_admin_key }}" }
|
- { name: /etc/ceph/ceph.client.admin.keyring, copy_key: "{{ copy_admin_key }}" }
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and
|
||||||
item.copy is true
|
item.copy_key|bool
|
||||||
|
|
||||||
- name: create rados gateway keyring
|
- 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
|
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
|
||||||
|
|
Loading…
Reference in New Issue