1 heat_template_version: pike
4 OpenStack containerized Gnocchi Statsd service
9 default: 'tripleoupstream'
11 DockerGnocchiStatsdImage:
13 default: 'centos-binary-gnocchi-statsd: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
40 type: ./containers-common.yaml
43 type: ../../puppet/services/gnocchi-statsd.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 RoleName: {get_param: RoleName}
49 RoleParameters: {get_param: RoleParameters}
53 description: Role data for the Gnocchi API role.
55 service_name: {get_attr: [GnocchiStatsdBase, role_data, service_name]}
56 config_settings: {get_attr: [GnocchiStatsdBase, role_data, config_settings]}
57 step_config: &step_config
58 get_attr: [GnocchiStatsdBase, role_data, step_config]
59 service_config_settings: {get_attr: [GnocchiStatsdBase, role_data, service_config_settings]}
60 # BEGIN DOCKER SETTINGS
62 config_volume: gnocchi
63 puppet_tags: gnocchi_config
64 step_config: *step_config
65 config_image: &gnocchi_statsd_image
68 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiStatsdImage} ]
70 /var/lib/kolla/config_files/gnocchi-statsd.json:
71 command: /usr/bin/gnocchi-statsd
73 - path: /var/log/gnocchi
74 owner: gnocchi:gnocchi
79 image: *gnocchi_statsd_image
85 - {get_attr: [ContainersCommon, volumes]}
87 - /var/lib/kolla/config_files/gnocchi-statsd.json:/var/lib/kolla/config_files/config.json:ro
88 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
89 - /var/log/containers/gnocchi:/var/log/gnocchi
91 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
93 - name: create persistent logs directory
95 path: /var/log/containers/gnocchi
98 - name: Stop and disable openstack-gnocchi-statsd service
100 service: name=openstack-gnocchi-statsd.service state=stopped enabled=no