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
41 type: ./containers-common.yaml
44 type: ../../puppet/services/gnocchi-statsd.yaml
46 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Gnocchi API role.
56 service_name: {get_attr: [GnocchiStatsdBase, role_data, service_name]}
57 config_settings: {get_attr: [GnocchiStatsdBase, role_data, config_settings]}
58 step_config: &step_config
59 get_attr: [GnocchiStatsdBase, role_data, step_config]
60 service_config_settings: {get_attr: [GnocchiStatsdBase, role_data, service_config_settings]}
61 # BEGIN DOCKER SETTINGS
63 config_volume: gnocchi
64 puppet_tags: gnocchi_config
65 step_config: *step_config
66 config_image: &gnocchi_statsd_image
69 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiStatsdImage} ]
71 /var/lib/kolla/config_files/gnocchi-statsd.json:
72 command: /usr/bin/gnocchi-statsd
74 - path: /var/log/gnocchi
75 owner: gnocchi:gnocchi
80 image: *gnocchi_statsd_image
86 - {get_attr: [ContainersCommon, volumes]}
88 - /var/lib/kolla/config_files/gnocchi-statsd.json:/var/lib/kolla/config_files/config.json:ro
89 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
90 - /var/log/containers/gnocchi:/var/log/gnocchi
92 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
94 - name: create persistent logs directory
96 path: /var/log/containers/gnocchi
99 - name: Stop and disable openstack-gnocchi-statsd service
101 service: name=openstack-gnocchi-statsd.service state=stopped enabled=no