Ensure logs folder is created in prep hosts tasks.

We have non fatal errors in the upgrade
jobs execution if the logs folder is not
created when adding the readme.txt file
to clarify the possible locations of
the logs.

Closes-Bug: 1811708
Change-Id: Ibc0a266bdc6630eaf34bfadeff21f7bd72fa75ad
This commit is contained in:
Carlos Camacho 2019-01-14 16:06:21 +01:00
parent a263ac7609
commit 1e318b569e
81 changed files with 286 additions and 133 deletions

View File

@ -222,6 +222,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/aodh-api, setype: svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/aodh-api, setype: svirt_sandbox_file_t }
- { 'path': /var/log/aodh, setype: svirt_sandbox_file_t }
- name: aodh logs readme - name: aodh logs readme
copy: copy:
dest: /var/log/aodh/readme.txt dest: /var/log/aodh/readme.txt

View File

@ -112,11 +112,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/aodh path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/aodh, 'setype': svirt_sandbox_file_t }
- name: aodh logs readme - name: aodh logs readme
copy: copy:
dest: /var/log/aodh/readme.txt dest: /var/log/aodh/readme.txt

View File

@ -120,11 +120,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/aodh path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/aodh, 'setype': svirt_sandbox_file_t }
- name: aodh logs readme - name: aodh logs readme
copy: copy:
dest: /var/log/aodh/readme.txt dest: /var/log/aodh/readme.txt

View File

@ -120,11 +120,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/aodh path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/aodh, 'setype': svirt_sandbox_file_t }
- name: aodh logs readme - name: aodh logs readme
copy: copy:
dest: /var/log/aodh/readme.txt dest: /var/log/aodh/readme.txt

View File

@ -37,6 +37,7 @@ outputs:
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- { 'path': /var/log/containers/glance, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/glance, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/glance, 'setype': svirt_sandbox_file_t }
- name: glance logs readme - name: glance logs readme
copy: copy:
dest: /var/log/glance/readme.txt dest: /var/log/glance/readme.txt

View File

@ -248,7 +248,7 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -256,6 +256,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/ironic-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/ironic-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ironic, 'setype': svirt_sandbox_file_t }
- name: ironic logs readme - name: ironic logs readme
copy: copy:
dest: /var/log/ironic/readme.txt dest: /var/log/ironic/readme.txt

View File

@ -550,6 +550,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ironic, 'setype': svirt_sandbox_file_t }
- name: ironic logs readme - name: ironic logs readme
copy: copy:
dest: /var/log/ironic/readme.txt dest: /var/log/ironic/readme.txt

View File

@ -441,11 +441,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent ironic-inspector logs directory - name: create persistent directories
file: file:
path: /var/log/containers/ironic-inspector path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/ironic-inspector, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ironic-inspector, 'setype': svirt_sandbox_file_t }
- name: ironic-inspector logs readme - name: ironic-inspector logs readme
copy: copy:
dest: /var/log/ironic-inspector/readme.txt dest: /var/log/ironic-inspector/readme.txt

View File

@ -165,6 +165,7 @@ outputs:
- { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/ironic-pxe, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/ironic-pxe, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ironic, 'setype': svirt_sandbox_file_t }
- name: ironic logs readme - name: ironic logs readme
copy: copy:
dest: /var/log/ironic/readme.txt dest: /var/log/ironic/readme.txt

View File

@ -147,14 +147,17 @@ outputs:
vars: vars:
modules: modules:
- name: ip_vs - name: ip_vs
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/keepalived path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/keepalived, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/keepalived, 'setype': svirt_sandbox_file_t }
- name: keepalived logs readme - name: keepalived logs readme
copy: copy:
dest: /var/log/keepalived-readme.txt dest: /var/log/keepalived/readme.txt
content: | content: |
Log files from keepalived containers can be found under Log files from keepalived containers can be found under
/var/log/containers/keepalived. /var/log/containers/keepalived.

View File

@ -164,9 +164,16 @@ outputs:
- /var/lib/config-data/memcached/etc/sysconfig/memcached:/etc/sysconfig/memcached:ro - /var/lib/config-data/memcached/etc/sysconfig/memcached:/etc/sysconfig/memcached:ro
command: ['/bin/bash', '-c', 'source /etc/sysconfig/memcached; /usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS'] command: ['/bin/bash', '-c', 'source /etc/sysconfig/memcached; /usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS']
host_prep_tasks: host_prep_tasks:
- name: create persistent directories
file:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/memcached, 'setype': svirt_sandbox_file_t }
- name: memcached logs readme - name: memcached logs readme
copy: copy:
dest: /var/log/memcached-readme.txt dest: /var/log/memcached/readme.txt
content: | content: |
Memcached container logs to stdout/stderr only. Memcached container logs to stdout/stderr only.
ignore_errors: true ignore_errors: true

View File

@ -198,14 +198,15 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create /var/lib/sahara - name: create persistent directories
file: file:
path: /var/lib/sahara path: "{{ item.path }}"
state: directory
- name: create persistent sahara logs directory
file:
path: /var/log/containers/sahara
state: directory state: directory
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/sahara, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/sahara, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/sahara, 'setype': svirt_sandbox_file_t }
- name: sahara logs readme - name: sahara logs readme
copy: copy:
dest: /var/log/sahara/readme.txt dest: /var/log/sahara/readme.txt

View File

@ -135,14 +135,15 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create /var/lib/sahara - name: create persistent directories
file: file:
path: /var/lib/sahara path: "{{ item.path }}"
state: directory
- name: create persistent sahara logs directory
file:
path: /var/log/containers/sahara
state: directory state: directory
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/sahara, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/sahara, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/sahara, 'setype': svirt_sandbox_file_t }
- name: sahara logs readme - name: sahara logs readme
copy: copy:
dest: /var/log/sahara/readme.txt dest: /var/log/sahara/readme.txt

View File

@ -346,13 +346,15 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item }}" path: "{{ item.path }}"
state: directory state: directory
setype: "{{ item.setype }}"
with_items: with_items:
- /var/log/containers/zaqar - { 'path': /var/log/containers/zaqar, 'setype': svirt_sandbox_file_t }
- /var/log/containers/httpd/zaqar - { 'path': /var/log/containers/httpd/zaqar, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/zaqar, 'setype': svirt_sandbox_file_t }
- name: zaqar logs readme - name: zaqar logs readme
copy: copy:
dest: /var/log/zaqar/readme.txt dest: /var/log/zaqar/readme.txt

View File

@ -137,11 +137,14 @@ outputs:
- 'ceilometer_agent_central' - 'ceilometer_agent_central'
- "su ceilometer -s /bin/bash -c 'for n in {1..10}; do /usr/bin/ceilometer-upgrade && exit 0 || sleep 30; done; exit 1'" - "su ceilometer -s /bin/bash -c 'for n in {1..10}; do /usr/bin/ceilometer-upgrade && exit 0 || sleep 30; done; exit 1'"
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/ceilometer path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/ceilometer, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t }
- name: ceilometer logs readme - name: ceilometer logs readme
copy: copy:
dest: /var/log/ceilometer/readme.txt dest: /var/log/ceilometer/readme.txt

View File

@ -105,11 +105,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/ceilometer path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ceilometer, 'setype': svirt_sandbox_file_t }
- name: ceilometer logs readme - name: ceilometer logs readme
copy: copy:
dest: /var/log/ceilometer/readme.txt dest: /var/log/ceilometer/readme.txt

View File

@ -116,11 +116,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/ceilometer path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ceilometer, 'setype': svirt_sandbox_file_t }
- name: ceilometer logs readme - name: ceilometer logs readme
copy: copy:
dest: /var/log/ceilometer/readme.txt dest: /var/log/ceilometer/readme.txt

View File

@ -143,11 +143,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/ceilometer path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ceilometer, 'setype': svirt_sandbox_file_t }
- name: ceilometer logs readme - name: ceilometer logs readme
copy: copy:
dest: /var/log/ceilometer/readme.txt dest: /var/log/ceilometer/readme.txt

View File

@ -209,7 +209,7 @@ outputs:
metadata_settings: metadata_settings:
get_attr: [CinderBase, role_data, metadata_settings] get_attr: [CinderBase, role_data, metadata_settings]
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -217,6 +217,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/cinder-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/cinder-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/cinder, 'setype': svirt_sandbox_file_t }
- name: cinder logs readme - name: cinder logs readme
copy: copy:
dest: /var/log/cinder/readme.txt dest: /var/log/cinder/readme.txt

View File

@ -66,6 +66,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/cinder, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/cinder, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/cinder, 'setype': svirt_sandbox_file_t }
- name: cinder logs readme - name: cinder logs readme
copy: copy:
dest: /var/log/cinder/readme.txt dest: /var/log/cinder/readme.txt

View File

@ -141,6 +141,7 @@ outputs:
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/cinder, 'setype': svirt_sandbox_file_t }
- name: cinder logs readme - name: cinder logs readme
copy: copy:
dest: /var/log/cinder/readme.txt dest: /var/log/cinder/readme.txt

View File

@ -134,11 +134,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/congress path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/congress, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/congress, 'setype': svirt_sandbox_file_t }
- name: congress logs readme - name: congress logs readme
copy: copy:
dest: /var/log/congress/readme.txt dest: /var/log/congress/readme.txt

View File

@ -231,8 +231,9 @@ outputs:
state: directory state: directory
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- {'path':/var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'} - {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'}
- {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'} - {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'}
- {'path': /var/log/mariadb, 'setype': 'svirt_sandbox_file_t'}
- name: mysql logs readme - name: mysql logs readme
copy: copy:
dest: /var/log/mariadb/readme.txt dest: /var/log/mariadb/readme.txt

View File

@ -158,6 +158,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/redis, 'setype': svirt_sandbox_file_t }
- name: redis logs readme - name: redis logs readme
copy: copy:
dest: /var/log/redis/readme.txt dest: /var/log/redis/readme.txt

View File

@ -139,11 +139,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -157,11 +157,14 @@ outputs:
- /var/log/containers/designate:/var/log/designate:z - /var/log/containers/designate:/var/log/designate:z
command: "/usr/bin/bootstrap_host_exec designate_central su designate -s /bin/bash -c '/bin/designate-manage pool update'" command: "/usr/bin/bootstrap_host_exec designate_central su designate -s /bin/bash -c '/bin/designate-manage pool update'"
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -119,11 +119,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -120,11 +120,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -120,11 +120,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -161,11 +161,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/designate path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t }
- name: designate logs readme - name: designate logs readme
copy: copy:
dest: /var/log/designate/readme.txt dest: /var/log/designate/readme.txt

View File

@ -205,6 +205,8 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/ec2_api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/ec2_api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/ec2_api_metadata, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/ec2_api_metadata, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ec2_api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/ec2_api_metadata, 'setype': svirt_sandbox_file_t }
- name: ec2_api logs readme - name: ec2_api logs readme
copy: copy:
dest: /var/log/{{ item }}/readme.txt dest: /var/log/{{ item }}/readme.txt

View File

@ -107,11 +107,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory for fluentd - name: create persistent directories
file: file:
path: /var/log/containers/fluentd path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/fluentd, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/fluentd, 'setype': svirt_sandbox_file_t }
- name: fluentd logs readme - name: fluentd logs readme
copy: copy:
dest: /var/log/fluentd/readme.txt dest: /var/log/fluentd/readme.txt

View File

@ -236,6 +236,7 @@ outputs:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/gnocchi-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/gnocchi-api, 'setype': svirt_sandbox_file_t }
- { 'path': {get_param: GnocchiFileBasePath}, 'setype': svirt_sandbox_file_t } - { 'path': {get_param: GnocchiFileBasePath}, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/gnocchi, 'setype': svirt_sandbox_file_t }
- name: gnocchi logs readme - name: gnocchi logs readme
copy: copy:
dest: /var/log/gnocchi/readme.txt dest: /var/log/gnocchi/readme.txt

View File

@ -137,11 +137,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/gnocchi path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/gnocchi, 'setype': svirt_sandbox_file_t }
- name: gnocchi logs readme - name: gnocchi logs readme
copy: copy:
dest: /var/log/gnocchi/readme.txt dest: /var/log/gnocchi/readme.txt

View File

@ -137,11 +137,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/gnocchi path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/gnocchi, 'setype': svirt_sandbox_file_t }
- name: gnocchi logs readme - name: gnocchi logs readme
copy: copy:
dest: /var/log/gnocchi/readme.txt dest: /var/log/gnocchi/readme.txt

View File

@ -326,6 +326,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/haproxy, 'setype': var_log_t } - { 'path': /var/log/containers/haproxy, 'setype': var_log_t }
- { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/haproxy, 'setype': svirt_sandbox_file_t }
- name: haproxy logs readme - name: haproxy logs readme
copy: copy:
dest: /var/log/haproxy/readme.txt dest: /var/log/haproxy/readme.txt

View File

@ -167,7 +167,7 @@ outputs:
- ENABLE_ZAQAR=no - ENABLE_ZAQAR=no
- ENABLE_ZUN=no - ENABLE_ZUN=no
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -176,6 +176,7 @@ outputs:
- { 'path': /var/log/containers/horizon, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/horizon, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/horizon, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/horizon, 'setype': svirt_sandbox_file_t }
- { 'path': /var/www, 'setype': svirt_sandbox_file_t } - { 'path': /var/www, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/horizon, 'setype': svirt_sandbox_file_t }
- name: horizon logs readme - name: horizon logs readme
copy: copy:
dest: /var/log/horizon/readme.txt dest: /var/log/horizon/readme.txt

View File

@ -32,7 +32,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -40,6 +40,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/barbican, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/barbican, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/barbican-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/barbican-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/barbican, 'setype': svirt_sandbox_file_t }
- name: barbican logs readme - name: barbican logs readme
copy: copy:
dest: /var/log/barbican/readme.txt dest: /var/log/barbican/readme.txt

View File

@ -19,7 +19,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -27,6 +27,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/heat-api-cfn, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/heat-api-cfn, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/heat, 'setype': svirt_sandbox_file_t }
- name: heat logs readme - name: heat logs readme
copy: copy:
dest: /var/log/heat/readme.txt dest: /var/log/heat/readme.txt

View File

@ -19,7 +19,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -27,6 +27,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/heat-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/heat-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/heat, 'setype': svirt_sandbox_file_t }
- name: heat logs readme - name: heat logs readme
copy: copy:
dest: /var/log/heat/readme.txt dest: /var/log/heat/readme.txt

View File

@ -33,11 +33,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/heat path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/heat, 'setype': svirt_sandbox_file_t }
- name: heat logs readme - name: heat logs readme
copy: copy:
dest: /var/log/heat/readme.txt dest: /var/log/heat/readme.txt

View File

@ -33,7 +33,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -41,6 +41,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/keystone, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/keystone, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/keystone, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/keystone, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/keystone, 'setype': svirt_sandbox_file_t }
- name: keystone logs readme - name: keystone logs readme
copy: copy:
dest: /var/log/keystone/readme.txt dest: /var/log/keystone/readme.txt

View File

@ -41,7 +41,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -49,6 +49,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/neutron-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/neutron-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/neutron, 'setype': svirt_sandbox_file_t }
- name: neutron logs readme - name: neutron logs readme
copy: copy:
dest: /var/log/neutron/readme.txt dest: /var/log/neutron/readme.txt

View File

@ -30,13 +30,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/neutron, 'setype': svirt_sandbox_file_t }
- name: neutron logs readme - name: neutron logs readme
copy: copy:
dest: /var/log/neutron/readme.txt dest: /var/log/neutron/readme.txt

View File

@ -31,7 +31,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
@ -39,6 +39,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/nova-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/nova-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/nova, 'setype': svirt_sandbox_file_t }
- name: nova logs readme - name: nova logs readme
copy: copy:
dest: /var/log/nova/readme.txt dest: /var/log/nova/readme.txt

View File

@ -51,11 +51,14 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/nova path: "{{ item.path }}"
setype: "{{ item.setype }}"
state: directory state: directory
setype: svirt_sandbox_file_t with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/nova, 'setype': svirt_sandbox_file_t }
- name: nova logs readme - name: nova logs readme
copy: copy:
dest: /var/log/nova/readme.txt dest: /var/log/nova/readme.txt

View File

@ -30,7 +30,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -38,6 +38,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/nova-metadata, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/nova-metadata, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/nova, 'setype': svirt_sandbox_file_t }
- name: nova logs readme - name: nova logs readme
copy: copy:
dest: /var/log/nova/readme.txt dest: /var/log/nova/readme.txt

View File

@ -30,7 +30,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -38,6 +38,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/nova-placement, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/nova-placement, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/nova, 'setype': svirt_sandbox_file_t }
- name: nova logs readme - name: nova logs readme
copy: copy:
dest: /var/log/nova/readme.txt dest: /var/log/nova/readme.txt

View File

@ -17,7 +17,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory

View File

@ -32,7 +32,7 @@ outputs:
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -40,6 +40,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/panko, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/panko, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/panko-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/panko-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/panko, 'setype': svirt_sandbox_file_t }
- name: panko logs readme - name: panko logs readme
copy: copy:
dest: /var/log/panko/readme.txt dest: /var/log/panko/readme.txt

View File

@ -122,7 +122,7 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: Create persistent manila logs directory - name: Create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -130,6 +130,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/manila-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/manila-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/manila, 'setype': svirt_sandbox_file_t }
- name: manila logs readme - name: manila logs readme
copy: copy:
dest: /var/log/manila/readme.txt dest: /var/log/manila/readme.txt

View File

@ -107,11 +107,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: Create persistent manila logs directory - name: create persistent directories
file: file:
path: /var/log/containers/manila path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/manila, 'setype': svirt_sandbox_file_t }
- name: manila logs readme - name: manila logs readme
copy: copy:
dest: /var/log/manila/readme.txt dest: /var/log/manila/readme.txt

View File

@ -128,6 +128,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/manila, 'setype': svirt_sandbox_file_t }
- name: manila logs readme - name: manila logs readme
copy: copy:
dest: /var/log/manila/readme.txt dest: /var/log/manila/readme.txt

View File

@ -217,6 +217,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -217,6 +217,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -114,11 +114,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/collectd path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/collectd, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/collectd, 'setype': svirt_sandbox_file_t }
- name: collectd logs readme - name: collectd logs readme
copy: copy:
dest: /var/log/collectd/readme.txt dest: /var/log/collectd/readme.txt

View File

@ -151,11 +151,14 @@ outputs:
# the Mistral API image so that we get tripleo* actions # the Mistral API image so that we get tripleo* actions
command: "/usr/bin/bootstrap_host_exec mistral_api su mistral -s /bin/bash -c 'mistral-db-manage --config-file /etc/mistral/mistral.conf populate'" command: "/usr/bin/bootstrap_host_exec mistral_api su mistral -s /bin/bash -c 'mistral-db-manage --config-file /etc/mistral/mistral.conf populate'"
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/mistral path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/mistral, 'setype': svirt_sandbox_file_t }
- name: mistral logs readme - name: mistral logs readme
copy: copy:
dest: /var/log/mistral/readme.txt dest: /var/log/mistral/readme.txt

View File

@ -121,11 +121,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/mistral path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/mistral, 'setype': svirt_sandbox_file_t }
- name: mistral logs readme - name: mistral logs readme
copy: copy:
dest: /var/log/mistral/readme.txt dest: /var/log/mistral/readme.txt

View File

@ -121,11 +121,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/mistral path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/mistral, 'setype': svirt_sandbox_file_t }
- name: mistral logs readme - name: mistral logs readme
copy: copy:
dest: /var/log/mistral/readme.txt dest: /var/log/mistral/readme.txt

View File

@ -176,7 +176,7 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent data directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -184,6 +184,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/mistral, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/mistral, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/mistral, 'setype': svirt_sandbox_file_t }
- name: mistral logs readme - name: mistral logs readme
copy: copy:
dest: /var/log/mistral/readme.txt dest: /var/log/mistral/readme.txt

View File

@ -155,6 +155,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/nova, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/nova, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/nova, 'setype': svirt_sandbox_file_t }
- name: nova logs readme - name: nova logs readme
copy: copy:
dest: /var/log/nova/readme.txt dest: /var/log/nova/readme.txt

View File

@ -219,6 +219,7 @@ outputs:
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- { 'path': /var/log/containers/novajoin, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/novajoin, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/novajoin, 'setype': svirt_sandbox_file_t }
- name: novajoin logs readme - name: novajoin logs readme
copy: copy:
dest: /var/log/novajoin/readme.txt dest: /var/log/novajoin/readme.txt

View File

@ -207,7 +207,7 @@ outputs:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
- {} - {}
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -215,6 +215,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/httpd/octavia-api, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/httpd/octavia-api, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/octavia, 'setype': svirt_sandbox_file_t }
- name: octavia logs readme - name: octavia logs readme
copy: copy:
dest: /var/log/octavia/readme.txt dest: /var/log/octavia/readme.txt

View File

@ -133,11 +133,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/octavia path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/octavia, 'setype': svirt_sandbox_file_t }
- name: octavia logs readme - name: octavia logs readme
copy: copy:
dest: /var/log/octavia/readme.txt dest: /var/log/octavia/readme.txt

View File

@ -129,11 +129,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/octavia path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/octavia, 'setype': svirt_sandbox_file_t }
- name: octavia logs readme - name: octavia logs readme
copy: copy:
dest: /var/log/octavia/readme.txt dest: /var/log/octavia/readme.txt

View File

@ -141,11 +141,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/octavia path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/octavia, 'setype': svirt_sandbox_file_t }
- name: octavia logs readme - name: octavia logs readme
copy: copy:
dest: /var/log/octavia/readme.txt dest: /var/log/octavia/readme.txt

View File

@ -126,11 +126,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/openvswitch path: "{{ item.path }}"
state: directory state: directory
setype: svirt_sandbox_file_t setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/openvswitch, 'setype': svirt_sandbox_file_t }
- name: openvswitch logs readme - name: openvswitch logs readme
copy: copy:
dest: /var/log/openvswitch/readme.txt dest: /var/log/openvswitch/readme.txt

View File

@ -198,6 +198,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/openvswitch, 'setype': svirt_sandbox_file_t }
- name: openvswitch logs readme - name: openvswitch logs readme
copy: copy:
dest: /var/log/openvswitch/readme.txt dest: /var/log/openvswitch/readme.txt

View File

@ -294,8 +294,9 @@ outputs:
state: directory state: directory
setype: "{{ item.setype }}" setype: "{{ item.setype }}"
with_items: with_items:
- {'path':/var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'} - {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'}
- {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'} - {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'}
- {'path': /var/log/mariadb, 'setype': 'svirt_sandbox_file_t'}
- name: mysql logs readme - name: mysql logs readme
copy: copy:
dest: /var/log/mariadb/readme.txt dest: /var/log/mariadb/readme.txt

View File

@ -277,6 +277,7 @@ outputs:
- { 'path': /var/lib/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t } - { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/redis, 'setype': svirt_sandbox_file_t }
- name: redis logs readme - name: redis logs readme
copy: copy:
dest: /var/log/redis/readme.txt dest: /var/log/redis/readme.txt

View File

@ -324,6 +324,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/haproxy, 'setype': var_log_t } - { 'path': /var/log/containers/haproxy, 'setype': var_log_t }
- { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/haproxy, 'setype': svirt_sandbox_file_t }
- name: haproxy logs readme - name: haproxy logs readme
copy: copy:
dest: /var/log/haproxy/readme.txt dest: /var/log/haproxy/readme.txt

View File

@ -201,6 +201,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/manila, 'setype': svirt_sandbox_file_t }
- name: manila logs readme - name: manila logs readme
copy: copy:
dest: /var/log/manila/readme.txt dest: /var/log/manila/readme.txt

View File

@ -244,6 +244,7 @@ outputs:
with_items: with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -187,6 +187,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/openvswitch, 'setype': svirt_sandbox_file_t }
- name: openvswitch logs readme - name: openvswitch logs readme
copy: copy:
dest: /var/log/openvswitch/readme.txt dest: /var/log/openvswitch/readme.txt

View File

@ -243,6 +243,7 @@ outputs:
with_items: with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -246,6 +246,7 @@ outputs:
with_items: with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -107,7 +107,7 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory
@ -115,6 +115,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/qdrouterd, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/qdrouterd, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/qdrouterd, 'setype': svirt_sandbox_file_t }
- name: qrouterd logs readme - name: qrouterd logs readme
copy: copy:
dest: /var/log/qrouterd/readme.txt dest: /var/log/qrouterd/readme.txt

View File

@ -216,6 +216,7 @@ outputs:
with_items: with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t } - { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/rabbitmq, 'setype': svirt_sandbox_file_t }
- name: rabbitmq logs readme - name: rabbitmq logs readme
copy: copy:
dest: /var/log/rabbitmq/readme.txt dest: /var/log/rabbitmq/readme.txt

View File

@ -163,10 +163,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/sensu path: "{{ item.path }}"
state: directory state: directory
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/containers/sensu, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/sensu, 'setype': svirt_sandbox_file_t }
- name: sensu logs readme - name: sensu logs readme
copy: copy:
dest: /var/log/sensu/readme.txt dest: /var/log/sensu/readme.txt

View File

@ -131,10 +131,14 @@ outputs:
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: host_prep_tasks:
- name: create persistent logs directory - name: create persistent directories
file: file:
path: /var/log/containers/tacker path: "{{ item.path }}"
state: directory state: directory
setype: "{{ item.setype }}"
with_items:
- { 'path': /var/log/tacker, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/tacker, 'setype': svirt_sandbox_file_t }
- name: tacker logs readme - name: tacker logs readme
copy: copy:
dest: /var/log/tacker/readme.txt dest: /var/log/tacker/readme.txt

View File

@ -56,7 +56,7 @@ outputs:
- /var/lib/tempestdata:/var/lib/tempest:z - /var/lib/tempestdata:/var/lib/tempest:z
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest /var/lib/tempest'] 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 directories
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: directory