1 heat_template_version: pike
4 OpenStack containerized Gnocchi Metricd service
9 default: 'tripleoupstream'
11 DockerGnocchiMetricdImage:
13 default: 'centos-binary-gnocchi-metricd: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: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ./containers-common.yaml
48 type: ../../puppet/services/gnocchi-metricd.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Gnocchi API role.
60 service_name: {get_attr: [GnocchiMetricdBase, role_data, service_name]}
61 config_settings: {get_attr: [GnocchiMetricdBase, role_data, config_settings]}
62 step_config: &step_config
63 get_attr: [GnocchiMetricdBase, role_data, step_config]
64 service_config_settings: {get_attr: [GnocchiMetricdBase, role_data, service_config_settings]}
65 # BEGIN DOCKER SETTINGS
67 config_volume: gnocchi
68 puppet_tags: gnocchi_config
69 step_config: *step_config
73 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiConfigImage} ]
75 /var/lib/kolla/config_files/gnocchi_metricd.json:
76 command: /usr/bin/gnocchi-metricd
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
83 - path: /var/log/gnocchi
84 owner: gnocchi:gnocchi
92 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiMetricdImage} ]
98 - {get_attr: [ContainersCommon, volumes]}
100 - /var/lib/kolla/config_files/gnocchi_metricd.json:/var/lib/kolla/config_files/config.json:ro
101 - /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
102 - /var/log/containers/gnocchi:/var/log/gnocchi
104 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
106 - name: create persistent logs directory
108 path: /var/log/containers/gnocchi
111 - name: Stop and disable openstack-gnocchi-metricd service
113 service: name=openstack-gnocchi-metricd.service state=stopped enabled=no