1 heat_template_version: pike
4 OpenStack containerized Gnocchi Metricd service
7 DockerGnocchiMetricdImage:
10 DockerGnocchiConfigImage:
11 description: The container image to use for the gnocchi config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
43 type: ./containers-common.yaml
46 type: ../../puppet/services/gnocchi-metricd.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 RoleName: {get_param: RoleName}
53 RoleParameters: {get_param: RoleParameters}
57 description: Role data for the Gnocchi API role.
59 service_name: {get_attr: [GnocchiMetricdBase, role_data, service_name]}
60 config_settings: {get_attr: [GnocchiMetricdBase, role_data, config_settings]}
61 step_config: &step_config
62 get_attr: [GnocchiMetricdBase, role_data, step_config]
63 service_config_settings: {get_attr: [GnocchiMetricdBase, role_data, service_config_settings]}
64 # BEGIN DOCKER SETTINGS
66 config_volume: gnocchi
67 puppet_tags: gnocchi_config
68 step_config: *step_config
69 config_image: {get_param: DockerGnocchiConfigImage}
71 /var/lib/kolla/config_files/gnocchi_metricd.json:
72 command: /usr/bin/gnocchi-metricd
74 - source: "/var/lib/kolla/config_files/src/*"
77 preserve_properties: true
79 - path: /var/log/gnocchi
80 owner: gnocchi:gnocchi
85 image: {get_param: DockerGnocchiMetricdImage}
91 - {get_attr: [ContainersCommon, volumes]}
93 - /var/lib/kolla/config_files/gnocchi_metricd.json:/var/lib/kolla/config_files/config.json:ro
94 - /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
95 - /var/log/containers/gnocchi:/var/log/gnocchi
97 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
99 - name: create persistent logs directory
101 path: /var/log/containers/gnocchi
104 - name: Stop and disable openstack-gnocchi-metricd service
106 service: name=openstack-gnocchi-metricd.service state=stopped enabled=no