1 heat_template_version: pike
4 OpenStack containerized Gnocchi Statsd service
9 default: 'tripleoupstream'
11 DockerGnocchiStatsdImage:
13 default: 'centos-binary-gnocchi-statsd:latest'
15 DockerGnocchiConfigImage:
16 description: The container image to use for the gnocchi config_volume
17 default: 'centos-binary-gnocchi-api: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
49 type: ./containers-common.yaml
52 type: ../../puppet/services/gnocchi-statsd.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceData: {get_param: ServiceData}
56 ServiceNetMap: {get_param: ServiceNetMap}
57 DefaultPasswords: {get_param: DefaultPasswords}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
63 description: Role data for the Gnocchi API role.
65 service_name: {get_attr: [GnocchiStatsdBase, role_data, service_name]}
66 config_settings: {get_attr: [GnocchiStatsdBase, role_data, config_settings]}
67 step_config: &step_config
68 get_attr: [GnocchiStatsdBase, role_data, step_config]
69 service_config_settings: {get_attr: [GnocchiStatsdBase, role_data, service_config_settings]}
70 # BEGIN DOCKER SETTINGS
72 config_volume: gnocchi
73 puppet_tags: gnocchi_config
74 step_config: *step_config
78 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiConfigImage} ]
80 /var/lib/kolla/config_files/gnocchi_statsd.json:
81 command: /usr/bin/gnocchi-statsd
83 - source: "/var/lib/kolla/config_files/src/*"
86 preserve_properties: true
88 - path: /var/log/gnocchi
89 owner: gnocchi:gnocchi
97 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiStatsdImage} ]
103 - {get_attr: [ContainersCommon, volumes]}
105 - /var/lib/kolla/config_files/gnocchi_statsd.json:/var/lib/kolla/config_files/config.json:ro
106 - /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
107 - /var/log/containers/gnocchi:/var/log/gnocchi
109 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
111 - name: create persistent logs directory
113 path: /var/log/containers/gnocchi
116 - name: Stop and disable openstack-gnocchi-statsd service
118 service: name=openstack-gnocchi-statsd.service state=stopped enabled=no