Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
---
|
|
- name: Starting heka container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
environment:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
SKIP_LOG_SETUP: "true"
|
|
image: "{{ heka_image_full }}"
|
|
name: "heka"
|
|
volumes:
|
|
- "{{ node_config_directory }}/heka/:{{ container_config_directory }}/:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "heka:/var/cache/hekad"
|
|
- "heka_socket:/var/lib/kolla/heka/"
|
|
|
|
- name: Starting kolla-toolbox container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
environment:
|
|
ANSIBLE_NOCOLOR: "1"
|
|
ANSIBLE_LIBRARY: "/usr/share/ansible"
|
|
image: "{{ ansible_image_full }}"
|
|
name: "kolla_toolbox"
|
|
privileged: True
|
|
volumes:
|
|
- "/dev/:/dev/"
|
|
- "/run/:/run/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- name: Starting cron container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ cron_image_full }}"
|
|
name: "cron"
|
|
volumes:
|
|
- "{{ node_config_directory }}/cron/:{{ container_config_directory }}/:ro"
|
|
- "heka_socket:/var/lib/kolla/heka/"
|
|
- "kolla_logs:/var/log/kolla/"
|