diff --git a/docker/services/logging/files/glance-api.yaml b/docker/services/logging/files/glance-api.yaml index 52c2f2a781..3c50e8b7a7 100644 --- a/docker/services/logging/files/glance-api.yaml +++ b/docker/services/logging/files/glance-api.yaml @@ -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: