1 heat_template_version: pike
4 Containerized collectd service
9 default: 'tripleoupstream'
13 default: 'centos-binary-collectd:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
42 type: ./containers-common.yaml
45 type: ../../puppet/services/metrics/collectd.yaml
47 EndpointMap: {get_param: EndpointMap}
48 ServiceNetMap: {get_param: ServiceNetMap}
49 DefaultPasswords: {get_param: DefaultPasswords}
50 RoleName: {get_param: RoleName}
51 RoleParameters: {get_param: RoleParameters}
55 description: Role data for the collectd role.
57 service_name: {get_attr: [CollectdBase, role_data, service_name]}
58 config_settings: {get_attr: [CollectdBase, role_data, config_settings]}
59 step_config: &step_config
60 get_attr: [CollectdBase, role_data, step_config]
61 service_config_settings: {get_attr: [CollectdBase, role_data, service_config_settings]}
62 # BEGIN DOCKER SETTINGS
64 config_volume: collectd
65 puppet_tags: collectd_client_config
66 step_config: *step_config
67 config_image: &collectd_image
70 - [ {get_param: DockerNamespace}, {get_param: DockerCollectdImage} ]
72 /var/lib/kolla/config_files/collectd.json:
73 command: /usr/sbin/collectd -f
77 image: *collectd_image
83 - {get_attr: [ContainersCommon, volumes]}
85 - /var/run/docker.sock:/var/run/docker.sock:rw
86 - /var/lib/kolla/config_files/collectd.json:/var/lib/kolla/config_files/config.json:ro
87 - /var/lib/config-data/collectd/etc/collectd/:/etc/collectd/:ro
89 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
91 - name: Stop and disable collectd service
93 service: name=collectd.service state=stopped enabled=no