1 heat_template_version: pike
4 Containerized collectd service
9 default: 'tripleoupstream'
13 default: 'centos-binary-collectd:latest'
15 DockerCollectdConfigImage:
16 description: The container image to use for the collectd config_volume
17 default: 'centos-binary-collectd:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
50 type: ./containers-common.yaml
53 type: ../../puppet/services/metrics/collectd.yaml
55 EndpointMap: {get_param: EndpointMap}
56 ServiceData: {get_param: ServiceData}
57 ServiceNetMap: {get_param: ServiceNetMap}
58 DefaultPasswords: {get_param: DefaultPasswords}
59 RoleName: {get_param: RoleName}
60 RoleParameters: {get_param: RoleParameters}
64 description: Role data for the collectd role.
66 service_name: {get_attr: [CollectdBase, role_data, service_name]}
69 - get_attr: [CollectdBase, role_data, config_settings]
70 - tripleo::profile::base::metrics::collectd::enable_file_logging: true
71 collectd::plugin::logfile::log_file: /var/log/collectd/collectd.log
72 step_config: &step_config
73 get_attr: [CollectdBase, role_data, step_config]
74 service_config_settings: {get_attr: [CollectdBase, role_data, service_config_settings]}
75 # BEGIN DOCKER SETTINGS
77 config_volume: collectd
78 puppet_tags: collectd_client_config
79 step_config: *step_config
83 - [ {get_param: DockerNamespace}, {get_param: DockerCollectdConfigImage} ]
85 /var/lib/kolla/config_files/collectd.json:
86 command: /usr/sbin/collectd -f
88 - source: "/var/lib/kolla/config_files/src/*"
91 preserve_properties: true
93 - path: /var/log/collectd
94 owner: collectd:collectd
102 - [ {get_param: DockerNamespace}, {get_param: DockerCollectdImage} ]
108 - {get_attr: [ContainersCommon, volumes]}
110 - /var/run/docker.sock:/var/run/docker.sock:rw
111 - /var/lib/kolla/config_files/collectd.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/puppet-generated/collectd/:/var/lib/kolla/config_files/src:ro
114 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - name: create persistent logs directory
118 path: /var/log/containers/collectd
121 - name: Stop and disable collectd service
123 service: name=collectd.service state=stopped enabled=no