Merge "Ensure some directories are created with the correct SELinux label"
This commit is contained in:
commit
300c366701
@ -42,6 +42,7 @@
|
||||
file:
|
||||
path: /var/lib/docker-config-scripts
|
||||
state: directory
|
||||
setype: svirt_sandbox_file_t
|
||||
|
||||
|
||||
# The container config files
|
||||
@ -58,6 +59,7 @@
|
||||
dest: "/var/lib/docker-config-scripts/{{ item.key }}"
|
||||
force: yes
|
||||
mode: "{{ item.value.mode | default('0600', true) }}"
|
||||
setype: svirt_sandbox_file_t
|
||||
with_dict: "{{ role_data_docker_config_scripts }}"
|
||||
vars:
|
||||
role_data_docker_config_scripts: "{{ lookup('file', tripleo_role_name + '/docker_config_scripts.yaml', errors='ignore') | default({}, True) | from_yaml }}"
|
||||
@ -104,12 +106,21 @@
|
||||
selevel: s0
|
||||
recurse: true
|
||||
|
||||
- name: Create /var/lib/config-data directory
|
||||
file:
|
||||
path: /var/lib/config-data
|
||||
state: directory
|
||||
setype: svirt_sandbox_file_t
|
||||
selevel: s0
|
||||
recurse: true
|
||||
|
||||
- name: Write kolla config json files
|
||||
copy:
|
||||
content: "{{ item.value | to_json }}"
|
||||
dest: "{{ item.key }}"
|
||||
force: yes
|
||||
mode: '0600'
|
||||
setype: svirt_sandbox_file_t
|
||||
with_dict: "{{ lookup('file', tripleo_role_name + '/kolla_config.yaml', errors='ignore') | default([], True) | from_yaml }}"
|
||||
|
||||
########################################################
|
||||
|
Loading…
Reference in New Issue
Block a user