4c221be86e
Consistently use template instead of copy. This has the added advantage of allowing variables inside ceph conf files and keyrings. Closes-Bug: 1959565 Signed-off-by: Imran Hussain <ih@imranh.co.uk> Change-Id: Ibd0ff2641a54267ff06d3c89a26915a455dff1c1
34 lines
971 B
YAML
34 lines
971 B
YAML
---
|
|
- name: Copying over ceph.conf for manila
|
|
template:
|
|
src: "{{ node_custom_config }}/manila/ceph.conf"
|
|
dest: "{{ node_config_directory }}/manila-share/ceph.conf"
|
|
mode: "0660"
|
|
become: true
|
|
when:
|
|
- inventory_hostname in groups['manila-share']
|
|
notify:
|
|
- Restart manila-share container
|
|
|
|
- name: Copy over Ceph keyring files for manila
|
|
template:
|
|
src: "{{ node_custom_config }}/manila/{{ ceph_manila_keyring }}"
|
|
dest: "{{ node_config_directory }}/manila-share/{{ ceph_manila_keyring }}"
|
|
mode: "0600"
|
|
become: true
|
|
when:
|
|
- inventory_hostname in groups['manila-share']
|
|
notify:
|
|
- Restart manila-share container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
become: true
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|
|
when: inventory_hostname in groups[item]
|
|
with_items:
|
|
- "manila-share"
|