glance logging: Fix description and use yaml anchor
This cleans up the file logging template by fixing up some descriptions that were left written wrongly and using an anchor to specify the volumes to avoid repetition. bp logging-stdout-rsyslog Change-Id: If0daf6a0fd47cc1e9bb8c7bef6f8f702096e8152
This commit is contained in:
parent
f037da0f36
commit
dcc415e4f9
|
@ -10,8 +10,13 @@ parameters:
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
config_settings:
|
config_settings:
|
||||||
description: The volumes needed to log to files in the host.
|
description: Extra hieradata needed to log to files in the host.
|
||||||
value: null
|
value: null
|
||||||
|
volumes:
|
||||||
|
description: The volumes needed to log to files in the host.
|
||||||
|
value: &glance_api_volumes
|
||||||
|
- /var/log/containers/glance:/var/log/glance
|
||||||
|
- /var/log/containers/httpd/glance-api:/var/log/httpd
|
||||||
docker_config:
|
docker_config:
|
||||||
description: Extra containers needed for logging to files in the host.
|
description: Extra containers needed for logging to files in the host.
|
||||||
value:
|
value:
|
||||||
|
@ -21,15 +26,8 @@ outputs:
|
||||||
image: {get_param: DockerGlanceApiImage}
|
image: {get_param: DockerGlanceApiImage}
|
||||||
privileged: false
|
privileged: false
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes: *glance_api_volumes
|
||||||
- /var/log/containers/glance:/var/log/glance
|
|
||||||
- /var/log/containers/httpd/glance-api:/var/log/httpd
|
|
||||||
command: ['/bin/bash', '-c', 'chown -R glance:glance /var/log/glance']
|
command: ['/bin/bash', '-c', 'chown -R glance:glance /var/log/glance']
|
||||||
volumes:
|
|
||||||
description: extra volumes
|
|
||||||
value:
|
|
||||||
- /var/log/containers/glance:/var/log/glance
|
|
||||||
- /var/log/containers/httpd/glance-api:/var/log/httpd
|
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue