Add tempest workspace volume for tempest
* It also set proper setype for tempest service directories This will allow proper access from the containers without any new SELinux policy. * /var/lib/tempest will be used for creating tempest workspace. Change-Id: Iedd397784c8b8d1bb891272542bd242c0ea60340
This commit is contained in:
parent
ae7beb716b
commit
9a1effd90d
@ -52,16 +52,20 @@ outputs:
|
|||||||
privileged: false
|
privileged: false
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- /var/log/containers/tempest:/var/log/tempest
|
- /var/log/containers/tempest:/var/log/tempest:z
|
||||||
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest']
|
- /var/lib/tempestdata:/var/lib/tempest:z
|
||||||
|
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest /var/lib/tempest']
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent logs directory
|
- name: create persistent logs directory
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/tempest
|
- { 'path': /var/log/containers/tempest, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/tempest
|
- { 'path': /var/log/tempest, 'setype': svirt_sandbox_file_t }
|
||||||
|
- { 'path': /var/lib/tempestdata, 'setype': svirt_sandbox_file_t }
|
||||||
|
- { 'path': /var/lib/tempest, 'setype': svirt_sandbox_file_t }
|
||||||
- name: Tempest logs readme
|
- name: Tempest logs readme
|
||||||
copy:
|
copy:
|
||||||
dest: /var/log/tempest/readme.txt
|
dest: /var/log/tempest/readme.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user