Merge "Add host logging for redis service template"

This commit is contained in:
Jenkins 2017-06-08 00:00:02 +00:00 committed by Gerrit Code Review
commit 4f51e5e427
1 changed files with 14 additions and 3 deletions

View File

@ -77,6 +77,14 @@ outputs:
recurse: true
docker_config:
step_1:
redis_init_logs:
start_order: 0
image: *redis_image
privileged: false
user: root
volumes:
- /var/log/containers/redis:/var/log/redis
command: ['/bin/bash', '-c', 'chown -R redis:redis /var/log/redis']
redis:
image: *redis_image
net: host
@ -87,14 +95,17 @@ outputs:
- /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/redis/etc/:/etc/:ro
- /etc/localtime:/etc/localtime:ro
- logs:/var/log/kolla
- /var/log/containers/redis:/var/log/redis
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create /var/run/redis
- name: create persistent directories
file:
path: /var/run/redis
path: "{{ item }}"
state: directory
with_items:
- /var/log/containers/redis
- /var/run/redis
upgrade_tasks:
- name: Stop and disable redis service
tags: step2