common: add a default value for ceph_directories_mode

Since this variable makes it possible to customize the mode for ceph
directories, let's make it a bit more explicit by adding a default value
in ceph-defaults.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 483adb5d79)
pull/6066/head
Guillaume Abrioux 2020-01-21 15:30:16 +01:00 committed by Dimitri Savineau
parent 0efc347a67
commit fe699897ed
10 changed files with 11 additions and 11 deletions

View File

@ -106,7 +106,7 @@ dummy:
#upgrade_ceph_packages: False
#ceph_use_distro_backports: false # DEBIAN ONLY
#ceph_directories_mode: "0755"
###########
# INSTALL #

View File

@ -106,7 +106,7 @@ fetch_directory: ~/ceph-ansible-keys
#upgrade_ceph_packages: False
#ceph_use_distro_backports: false # DEBIAN ONLY
#ceph_directories_mode: "0755"
###########
# INSTALL #

View File

@ -97,7 +97,7 @@
state: directory
owner: "ceph"
group: "ceph"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
- name: "generate ceph configuration file: {{ cluster }}.conf"
action: config_template
@ -124,7 +124,7 @@
file:
path: "{{ fetch_directory }}/{{ fsid }}/etc/ceph"
state: directory
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
delegate_to: localhost
when: ceph_conf_local | bool

View File

@ -98,7 +98,7 @@ ntp_daemon_type: chronyd
upgrade_ceph_packages: False
ceph_use_distro_backports: false # DEBIAN ONLY
ceph_directories_mode: "0755"
###########
# INSTALL #

View File

@ -5,7 +5,7 @@
state: directory
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
with_items:
- /var/lib/ceph/bootstrap-mds/
- /var/lib/ceph/mds/{{ cluster }}-{{ mds_name }}

View File

@ -5,7 +5,7 @@
state: directory
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
- name: fetch ceph mgr keyring
ceph_key:

View File

@ -57,7 +57,7 @@
state: directory
owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
# We don't do the recursion in the task above to avoid setting `mode` (which
# defaults to 0755) on files.

View File

@ -31,7 +31,7 @@
state: directory
owner: "ceph"
group: "ceph"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
with_items:
- { name: "/var/lib/ceph/bootstrap-rgw", create: "{{ nfs_obj_gw }}" }
- { name: "/var/lib/ceph/radosgw", create: "{{ nfs_obj_gw }}" }

View File

@ -5,7 +5,7 @@
state: directory
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
when: cephx | bool
with_items:
- /var/lib/ceph/bootstrap-osd/

View File

@ -5,7 +5,7 @@
state: directory
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "{{ ceph_directories_mode | default('0755') }}"
mode: "{{ ceph_directories_mode }}"
with_items: "{{ rbd_client_admin_socket_path }}"
- name: get keys from monitors