-
Notifications
You must be signed in to change notification settings - Fork 620
/
external_ceph.yml
33 lines (31 loc) · 967 Bytes
/
external_ceph.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- 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
copy:
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"