This change allows for configurable Ceph Conf Directory permissions. This
is required for integrators of Ceph, like OpenStack Cinder, which needs to
read from /etc/ceph for operation.
#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
#########
\r
fetch_directory: fetch/\r
\r
+###############\r
+# PERMISSIONS #\r
+###############\r
+\r
+# Permissions for /etc/ceph configuration directory\r
+conf_directory_owner: root\r
+conf_directory_group: root\r
+conf_directory_mode: 644\r
+\r
+# Permissions for /etc/ceph/ceph.conf configuration file\r
+conf_file_owner: root\r
+conf_file_group: root\r
+conf_file_mode: 644\r
+\r
###########\r
# INSTALL #\r
###########\r
file:
path: /etc/ceph
state: directory
- owner: root
- group: root
- mode: 0644
+ owner: "{{ conf_directory_owner }}"
+ group: "{{ conf_directory_group }}"
+ mode: "{{ conf_directory_mode }}"
- name: generate ceph configuration file
config_template:
src: ceph.conf.j2
dest: /etc/ceph/ceph.conf
- owner: "root"
- group: "root"
- mode: "0644"
+ owner: "{{ conf_file_owner }}"
+ group: "{{ conf_file_group }}"
+ mode: "{{ conf_file_mode }}"
config_overrides: "{{ ceph_conf_overrides }}"
config_type: ini
notify: