1 heat_template_version: ocata
4 OpenStack containerized Gnocchi Metricd service
9 default: 'tripleoupstream'
11 DockerGnocchiMetricdImage:
13 default: 'centos-binary-gnocchi-metricd: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.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/gnocchi-metricd.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the Gnocchi API role.
46 service_name: {get_attr: [GnocchiMetricdBase, role_data, service_name]}
47 config_settings: {get_attr: [GnocchiMetricdBase, role_data, config_settings]}
48 step_config: &step_config
49 get_attr: [GnocchiMetricdBase, role_data, step_config]
50 service_config_settings: {get_attr: [GnocchiMetricdBase, role_data, service_config_settings]}
51 # BEGIN DOCKER SETTINGS
53 config_volume: gnocchi
54 puppet_tags: gnocchi_config
55 step_config: *step_config
56 config_image: &gnocchi_metricd_image
59 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiMetricdImage} ]
61 /var/lib/kolla/config_files/gnocchi-metricd.json:
62 command: /usr/bin/gnocchi-metricd
66 image: *gnocchi_metricd_image
72 expression: $.data.common.concat($.data.service)
74 common: {get_attr: [ContainersCommon, volumes]}
76 - /var/lib/kolla/config_files/gnocchi-metricd.json:/var/lib/kolla/config_files/config.json:ro
77 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
79 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
81 - name: Stop and disable openstack-gnocchi-metricd service
83 service: name=openstack-gnocchi-metricd.service state=stopped enabled=no