Refers to #2697
This change creates a copy of `ceph.conf` in ansible server.
Signed-off-by: Ha Phan <thanhha.work@gmail.com>
#ceph_rbdmirror_firewall_zone: public
#ceph_iscsi_firewall_zone: public
+# Generate local ceph.conf in fetch directory
+#ceph_conf_local: false
############
# PACKAGES #
#ceph_rbdmirror_firewall_zone: public
#ceph_iscsi_firewall_zone: public
+# Generate local ceph.conf in fetch directory
+#ceph_conf_local: false
############
# PACKAGES #
- restart ceph rgws
- restart ceph mgrs
- restart ceph rbdmirrors
+
+ - name: "ensure fetch directory exists"
+ run_once: true
+ become: false
+ local_action:
+ module: file
+ path: "{{ fetch_directory }}/{{ fsid }}/etc/ceph"
+ state: directory
+ mode: "0755"
+ when:
+ - ceph_conf_local
+
+ - name: "generate {{ cluster }}.conf configuration file locally"
+ local_action: config_template
+ become: false
+ run_once: true
+ args:
+ src: "ceph.conf.j2"
+ dest: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.conf"
+ config_overrides: "{{ ceph_conf_overrides }}"
+ config_type: ini
+ when:
+ - inventory_hostname in groups[mon_group_name]
+ - ceph_conf_local
when:
- not containerized_deployment|bool
ceph_rbdmirror_firewall_zone: public
ceph_iscsi_firewall_zone: public
+# Generate local ceph.conf in fetch directory
+ceph_conf_local: false
############
# PACKAGES #