ceph-config: write ceph_conf_overrides_temp to fetch_directory

because /tmp is not always writable, but we can assume that the
fetch_directory will be

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1804/head
Andrew Schoen 2017-08-22 14:42:32 -05:00 committed by Sébastien Han
parent 80dc5eead7
commit d0a3034857
1 changed files with 3 additions and 3 deletions

View File

@ -13,15 +13,15 @@
- /etc/ceph/ceph.d/
- name: template ceph_conf_overrides
local_action: copy content="{{ ceph_conf_overrides }}" dest=/tmp/ceph_conf_overrides_temp
local_action: copy content="{{ ceph_conf_overrides }}" dest="{{ fetch_directory }}/ceph_conf_overrides_temp"
run_once: true
- name: get rendered ceph_conf_overrides
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '/tmp/ceph_conf_overrides_temp') | from_yaml }}"
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '{{ fetch_directory }}/ceph_conf_overrides_temp') | from_yaml }}"
run_once: true
- name: remove tmp template file for ceph_conf_overrides
local_action: file path=/tmp/ceph_conf_overrides_temp state=absent
local_action: file path="{{ fetch_directory }}/ceph_conf_overrides_temp" state=absent
run_once: true
- name: "generate ceph configuration file: {{ cluster }}.conf"