Merge "Make sensu-client log to file"

This commit is contained in:
Jenkins 2017-06-26 13:18:36 +00:00 committed by Gerrit Code Review
commit f950cf860f
1 changed files with 11 additions and 1 deletions

View File

@ -104,7 +104,11 @@ outputs:
- [ {get_param: DockerNamespace}, {get_param: DockerSensuClientImage} ]
kolla_config:
/var/lib/kolla/config_files/sensu-client.json:
command: /usr/bin/sensu-client -d /etc/sensu/conf.d/
command: /usr/bin/sensu-client -d /etc/sensu/conf.d/ -l /var/log/sensu/sensu-client.log
permissions:
- path: /var/log/sensu
owner: sensu:sensu
recurse: true
docker_config:
step_3:
sensu_client:
@ -123,8 +127,14 @@ outputs:
- /var/run/docker.sock:/var/run/docker.sock:rw
- /var/lib/kolla/config_files/sensu-client.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/sensu/etc/sensu/:/etc/sensu/:ro
- /var/log/containers/sensu:/var/log/sensu:rw
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create persistent logs directory
file:
path: /var/log/containers/sensu
state: directory
upgrade_tasks:
- name: Stop and disable sensu-client service
tags: step2