mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: use saner defaults for ceph dir
re-use the logic introduced in #512 for the ceph directory and the `ceph.conf` file. Signed-off-by: Sébastien Han <seb@redhat.com>pull/575/head
parent
dbc5704f23
commit
4e14b47174
|
@ -10,20 +10,6 @@ dummy:
|
|||
|
||||
#fetch_directory: fetch/
|
||||
|
||||
###############
|
||||
# PERMISSIONS #
|
||||
###############
|
||||
|
||||
# Permissions for /etc/ceph configuration directory
|
||||
#conf_directory_owner: root
|
||||
#conf_directory_group: root
|
||||
#conf_directory_mode: 644
|
||||
|
||||
# Permissions for /etc/ceph/ceph.conf configuration file
|
||||
#conf_file_owner: root
|
||||
#conf_file_group: root
|
||||
#conf_file_mode: 644
|
||||
|
||||
#########
|
||||
# INSTALL
|
||||
#########
|
||||
|
|
|
@ -7,20 +7,6 @@
|
|||
|
||||
fetch_directory: fetch/
|
||||
|
||||
###############
|
||||
# PERMISSIONS #
|
||||
###############
|
||||
|
||||
# Permissions for /etc/ceph configuration directory
|
||||
conf_directory_owner: root
|
||||
conf_directory_group: root
|
||||
conf_directory_mode: 644
|
||||
|
||||
# Permissions for /etc/ceph/ceph.conf configuration file
|
||||
conf_file_owner: root
|
||||
conf_file_group: root
|
||||
conf_file_mode: 644
|
||||
|
||||
###########
|
||||
# INSTALL #
|
||||
###########
|
||||
|
|
|
@ -142,18 +142,18 @@
|
|||
file:
|
||||
path: /etc/ceph
|
||||
state: directory
|
||||
owner: "{{ conf_directory_owner }}"
|
||||
group: "{{ conf_directory_group }}"
|
||||
mode: "{{ conf_directory_mode }}"
|
||||
owner: "{{ dir_owner }}"
|
||||
group: "{{ dir_group }}"
|
||||
mode: "{{ dir_mode }}"
|
||||
|
||||
- name: generate ceph configuration file
|
||||
action: config_template
|
||||
args:
|
||||
src: ceph.conf.j2
|
||||
dest: /etc/ceph/ceph.conf
|
||||
owner: "{{ conf_file_owner }}"
|
||||
group: "{{ conf_file_group }}"
|
||||
mode: "{{ conf_file_mode }}"
|
||||
owner: "{{ dir_owner }}"
|
||||
group: "{{ dir_group }}"
|
||||
mode: "{{ activate_file_mode }}"
|
||||
config_overrides: "{{ ceph_conf_overrides }}"
|
||||
config_type: ini
|
||||
notify:
|
||||
|
|
Loading…
Reference in New Issue