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:
Juan Antonio Osorio Robles 2017-10-27 08:26:53 +03:00
parent f037da0f36
commit dcc415e4f9
1 changed files with 7 additions and 9 deletions

View File

@ -10,8 +10,13 @@ parameters:
outputs:
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
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:
description: Extra containers needed for logging to files in the host.
value:
@ -21,15 +26,8 @@ outputs:
image: {get_param: DockerGlanceApiImage}
privileged: false
user: root
volumes:
- /var/log/containers/glance:/var/log/glance
- /var/log/containers/httpd/glance-api:/var/log/httpd
volumes: *glance_api_volumes
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:
description: Extra ansible tasks needed for logging to files in the host.
value: