1 heat_template_version: pike
4 Containerized logrotate with crond for containerized service logs rotation
10 DockerCrondConfigImage:
11 description: The container image to use for the crond config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
44 type: ./containers-common.yaml
48 description: Role data for the crond role.
50 service_name: logrotate_crond
52 step_config: &step_config |
53 include ::tripleo::profile::base::logging::logrotate
54 # BEGIN DOCKER SETTINGS
57 step_config: *step_config
58 config_image: {get_param: DockerCrondConfigImage}
60 /var/lib/kolla/config_files/logrotate-crond.json:
61 command: /usr/sbin/crond -s -n
63 - source: "/var/lib/kolla/config_files/src/*"
66 preserve_properties: true
70 image: {get_param: DockerCrondImage}
78 - {get_attr: [ContainersCommon, volumes]}
80 - /var/lib/kolla/config_files/logrotate-crond.json:/var/lib/kolla/config_files/config.json:ro
81 - /var/lib/config-data/puppet-generated/crond/:/var/lib/kolla/config_files/src:ro
82 - /var/log/containers:/var/log/containers
84 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS