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
(cherry picked from commit 1e318b569e
)
This commit is contained in:
parent
fe11adecfc
commit
93285264e7
|
@ -155,13 +155,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/aodh
|
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/aodh-api
|
- { '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
|
||||||
|
|
|
@ -111,10 +111,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: "{{ 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
|
||||||
|
|
|
@ -118,10 +118,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: "{{ 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
|
||||||
|
|
|
@ -118,10 +118,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: "{{ 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
|
||||||
|
|
|
@ -139,10 +139,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: "{{ 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
|
||||||
|
|
|
@ -107,10 +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
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/ceilometer
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -118,10 +118,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: "{{ 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
|
||||||
|
|
|
@ -135,10 +135,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: "{{ 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
|
||||||
|
|
|
@ -211,13 +211,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/cinder
|
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/cinder-api
|
- { '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
|
||||||
|
|
|
@ -166,11 +166,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/cinder
|
- { 'path': /var/lib/cinder, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/cinder
|
- { '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
|
||||||
|
|
|
@ -60,11 +60,13 @@ outputs:
|
||||||
value:
|
value:
|
||||||
- name: create persistent directories
|
- 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/cinder
|
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/cinder
|
- { '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
|
||||||
|
|
|
@ -138,10 +138,12 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/cinder
|
- { '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
|
||||||
|
|
|
@ -136,10 +136,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: "{{ 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
|
||||||
|
|
|
@ -150,11 +150,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/mongodb
|
- { 'path': /var/log/mongodb, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/mongodb
|
- { 'path': /var/lib/mongodb, 'setype': svirt_sandbox_file_t }
|
||||||
|
- { 'path': /var/log/containers/mongodb, 'setype': svirt_sandbox_file_t }
|
||||||
- name: mongodb logs readme
|
- name: mongodb logs readme
|
||||||
copy:
|
copy:
|
||||||
dest: /var/log/mongodb/readme.txt
|
dest: /var/log/mongodb/readme.txt
|
||||||
|
|
|
@ -233,11 +233,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/mysql
|
- {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'}
|
||||||
- /var/lib/mysql
|
- {'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
|
||||||
|
|
|
@ -157,9 +157,11 @@ outputs:
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/redis
|
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/run/redis
|
- { 'path': /var/run/redis, 'setype': container_var_run_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
|
||||||
|
|
|
@ -141,10 +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/designate
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -159,10 +159,14 @@ outputs:
|
||||||
- /var/log/containers/designate:/var/log/designate
|
- /var/log/containers/designate:/var/log/designate
|
||||||
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: "{{ 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
|
||||||
|
|
|
@ -121,10 +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/designate
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -122,10 +122,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: "{{ 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
|
||||||
|
|
|
@ -122,10 +122,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: "{{ 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
|
||||||
|
|
|
@ -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/designate
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -199,13 +199,16 @@ outputs:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
- {}
|
- {}
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent log directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/{{ item }}
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- ec2_api
|
- { 'path': /var/log/containers/ec2_api, 'setype': svirt_sandbox_file_t }
|
||||||
- ec2_api_metadata
|
- { '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
|
||||||
|
|
|
@ -105,10 +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 for fluentd
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/fluentd
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -230,11 +230,13 @@ outputs:
|
||||||
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/gnocchi
|
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/gnocchi-api
|
- { 'path': /var/log/containers/httpd/gnocchi-api, '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
|
||||||
|
|
|
@ -139,10 +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/gnocchi
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -139,10 +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/gnocchi
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -295,11 +295,13 @@ outputs:
|
||||||
- {get_attr: [HAProxyBase, role_data, host_prep_tasks]}
|
- {get_attr: [HAProxyBase, role_data, host_prep_tasks]}
|
||||||
- name: create persistent directories
|
- 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/haproxy
|
- { 'path': /var/log/containers/haproxy, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/haproxy
|
- { '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
|
||||||
|
|
|
@ -172,13 +172,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/horizon
|
- { 'path': /var/log/containers/horizon, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/horizon
|
- { 'path': /var/log/containers/httpd/horizon, '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
|
||||||
|
|
|
@ -140,13 +140,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/ironic
|
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/ironic-api
|
- { '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
|
||||||
|
|
|
@ -198,11 +198,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/ironic
|
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/ironic
|
- { '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
|
||||||
|
|
|
@ -220,10 +220,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: "{{ 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
|
||||||
|
|
|
@ -158,12 +158,14 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/ironic
|
- { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/ironic
|
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/ironic-pxe
|
- { '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
|
||||||
|
|
|
@ -108,11 +108,15 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent logs directory
|
- name: create persistent logs directory
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/keepalived
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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.
|
||||||
|
|
|
@ -32,13 +32,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/barbican
|
- { 'path': /var/log/containers/barbican, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/barbican-api
|
- { '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
|
||||||
|
|
|
@ -32,10 +32,12 @@ outputs:
|
||||||
value:
|
value:
|
||||||
- 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/glance
|
- { '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
|
||||||
|
|
|
@ -19,13 +19,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/heat
|
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/heat-api-cfn
|
- { '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
|
||||||
|
|
|
@ -19,13 +19,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/heat
|
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/heat-api
|
- { '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
|
||||||
|
|
|
@ -33,10 +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: "{{ 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
|
||||||
|
|
|
@ -33,13 +33,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/keystone
|
- { 'path': /var/log/containers/keystone, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/keystone
|
- { '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
|
||||||
|
|
|
@ -41,13 +41,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/neutron
|
- { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/neutron-api
|
- { '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
|
||||||
|
|
|
@ -30,12 +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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/neutron
|
- { '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
|
||||||
|
|
|
@ -31,13 +31,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/nova
|
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/nova-api
|
- { '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
|
||||||
|
|
|
@ -51,10 +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
|
||||||
|
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
|
||||||
|
|
|
@ -30,13 +30,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/nova
|
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/nova-metadata
|
- { '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
|
||||||
|
|
|
@ -30,13 +30,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/nova
|
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/nova-placement
|
- { '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
|
||||||
|
|
|
@ -17,16 +17,17 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/opendaylight/karaf/logs
|
- { 'path': /var/log/containers/opendaylight/karaf/logs, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/opendaylight
|
- { 'path': /var/log/opendaylight, 'setype': svirt_sandbox_file_t }
|
||||||
- name: opendaylight logs readme
|
- name: opendaylight logs readme
|
||||||
copy:
|
copy:
|
||||||
dest: /var/log/opendaylight/readme.txt
|
dest: /var/log/opendaylight/readme.txt
|
||||||
content: |
|
content: |
|
||||||
Logs from OpenDaylight container can be found at /var/log/containers/opendaylight/karaf/logs/karaf.log
|
Logs from OpenDaylight container can be found at /var/log/containers/opendaylight/karaf/logs/karaf.log
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
|
@ -32,13 +32,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/panko
|
- { 'path': /var/log/containers/panko, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/panko-api
|
- { '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
|
||||||
|
|
|
@ -124,13 +124,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/manila
|
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/manila-api
|
- { '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
|
||||||
|
|
|
@ -109,10 +109,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: "{{ 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
|
||||||
|
|
|
@ -124,11 +124,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/manila
|
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/manila
|
- { '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
|
||||||
|
|
|
@ -89,9 +89,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
|
||||||
|
|
|
@ -213,11 +213,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/rabbitmq
|
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -213,11 +213,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/rabbitmq
|
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -116,10 +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/collectd
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -153,10 +153,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: "{{ 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
|
||||||
|
|
|
@ -123,10 +123,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: "{{ 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
|
||||||
|
|
|
@ -123,10 +123,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: "{{ 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
|
||||||
|
|
|
@ -166,10 +166,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: "{{ 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
|
||||||
|
|
|
@ -148,11 +148,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/nova
|
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/nova
|
- { '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
|
||||||
|
|
|
@ -210,6 +210,21 @@ outputs:
|
||||||
set_fact:
|
set_fact:
|
||||||
ipa_otp: {get_param: NovajoinIpaOtp}
|
ipa_otp: {get_param: NovajoinIpaOtp}
|
||||||
no_log: true
|
no_log: true
|
||||||
|
- name: create persistent directories
|
||||||
|
file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
|
with_items:
|
||||||
|
- { 'path': /var/log/containers/novajoin, 'setype': svirt_sandbox_file_t }
|
||||||
|
- { 'path': /var/log/novajoin, 'setype': svirt_sandbox_file_t }
|
||||||
|
- name: novajoin logs readme
|
||||||
|
copy:
|
||||||
|
dest: /var/log/novajoin/readme.txt
|
||||||
|
content: |
|
||||||
|
Log files from novajoin containers can be found under
|
||||||
|
/var/log/containers/novajoin
|
||||||
|
ignore_errors: true
|
||||||
- name: Enroll to FreeIPA
|
- name: Enroll to FreeIPA
|
||||||
command: ipa-client-install -U --password={{ ipa_otp }}
|
command: ipa-client-install -U --password={{ ipa_otp }}
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -209,13 +209,15 @@ 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: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/octavia
|
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/httpd/octavia-api
|
- { '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
|
||||||
|
|
|
@ -135,10 +135,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: "{{ 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
|
||||||
|
|
|
@ -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/octavia
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -143,10 +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/octavia
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
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
|
||||||
|
|
|
@ -128,10 +128,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: "{{ 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
|
||||||
|
|
|
@ -194,11 +194,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/openvswitch
|
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/openvswitch/ovn
|
- { '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
|
||||||
|
|
|
@ -246,11 +246,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/cinder
|
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/cinder
|
- { '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
|
||||||
|
|
|
@ -306,11 +306,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- 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/mysql
|
- {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t'}
|
||||||
- /var/lib/mysql
|
- {'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
|
||||||
|
|
|
@ -288,12 +288,14 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/redis
|
- { 'path': /var/lib/redis, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/redis
|
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/run/redis
|
- { '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
|
||||||
|
|
|
@ -213,11 +213,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/manila
|
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/manila
|
- { '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
|
||||||
|
|
|
@ -255,11 +255,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/rabbitmq
|
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -199,11 +199,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/openvswitch
|
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/openvswitch/ovn
|
- { '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
|
||||||
|
|
|
@ -254,11 +254,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/rabbitmq
|
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -257,11 +257,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/rabbitmq
|
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/log/containers/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -107,13 +107,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 }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/qdrouterd
|
- { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/qdrouterd
|
- { '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
|
||||||
|
|
|
@ -212,11 +212,13 @@ outputs:
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent directories
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/containers/rabbitmq
|
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t }
|
||||||
- /var/lib/rabbitmq
|
- { '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
|
||||||
|
|
|
@ -143,14 +143,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
|
||||||
|
|
|
@ -133,14 +133,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
|
||||||
|
|
|
@ -151,10 +151,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
|
||||||
|
|
|
@ -133,10 +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/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
|
||||||
|
|
|
@ -55,13 +55,14 @@ outputs:
|
||||||
- /var/log/containers/tempest:/var/log/tempest
|
- /var/log/containers/tempest:/var/log/tempest
|
||||||
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest']
|
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest']
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
- name: create persistent logs directory
|
- name: create persistent directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.path }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
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 }
|
||||||
- name: Tempest logs readme
|
- name: Tempest logs readme
|
||||||
copy:
|
copy:
|
||||||
dest: /var/log/tempest/readme.txt
|
dest: /var/log/tempest/readme.txt
|
||||||
|
|
|
@ -184,13 +184,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 }}"
|
||||||
|
setype: "{{ item.setype }}"
|
||||||
state: directory
|
state: directory
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue