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/
|
#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
|
# INSTALL
|
||||||
#########
|
#########
|
||||||
|
|
|
@ -7,20 +7,6 @@
|
||||||
|
|
||||||
fetch_directory: fetch/
|
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 #
|
# INSTALL #
|
||||||
###########
|
###########
|
||||||
|
|
|
@ -142,18 +142,18 @@
|
||||||
file:
|
file:
|
||||||
path: /etc/ceph
|
path: /etc/ceph
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ conf_directory_owner }}"
|
owner: "{{ dir_owner }}"
|
||||||
group: "{{ conf_directory_group }}"
|
group: "{{ dir_group }}"
|
||||||
mode: "{{ conf_directory_mode }}"
|
mode: "{{ dir_mode }}"
|
||||||
|
|
||||||
- name: generate ceph configuration file
|
- name: generate ceph configuration file
|
||||||
action: config_template
|
action: config_template
|
||||||
args:
|
args:
|
||||||
src: ceph.conf.j2
|
src: ceph.conf.j2
|
||||||
dest: /etc/ceph/ceph.conf
|
dest: /etc/ceph/ceph.conf
|
||||||
owner: "{{ conf_file_owner }}"
|
owner: "{{ dir_owner }}"
|
||||||
group: "{{ conf_file_group }}"
|
group: "{{ dir_group }}"
|
||||||
mode: "{{ conf_file_mode }}"
|
mode: "{{ activate_file_mode }}"
|
||||||
config_overrides: "{{ ceph_conf_overrides }}"
|
config_overrides: "{{ ceph_conf_overrides }}"
|
||||||
config_type: ini
|
config_type: ini
|
||||||
notify:
|
notify:
|
||||||
|
|
Loading…
Reference in New Issue