1 heat_template_version: pike
4 OpenStack containerized Gnocchi Statsd service
7 DockerGnocchiStatsdImage:
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/database/mysql-client.yaml
49 type: ../../puppet/services/gnocchi-statsd.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceData: {get_param: ServiceData}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Role data for the Gnocchi API role.
62 service_name: {get_attr: [GnocchiStatsdBase, role_data, service_name]}
63 config_settings: {get_attr: [GnocchiStatsdBase, role_data, config_settings]}
64 step_config: &step_config
67 - - {get_attr: [GnocchiStatsdBase, role_data, step_config]}
68 - {get_attr: [MySQLClient, role_data, step_config]}
69 service_config_settings: {get_attr: [GnocchiStatsdBase, role_data, service_config_settings]}
70 # BEGIN DOCKER SETTINGS
72 config_volume: gnocchi
73 puppet_tags: gnocchi_config
74 step_config: *step_config
75 config_image: {get_param: DockerGnocchiConfigImage}
77 /var/lib/kolla/config_files/gnocchi_statsd.json:
78 command: /usr/bin/gnocchi-statsd
80 - source: "/var/lib/kolla/config_files/src/*"
83 preserve_properties: true
84 - source: "/var/lib/kolla/config_files/src-ceph/"
87 preserve_properties: true
89 - path: /var/log/gnocchi
90 owner: gnocchi:gnocchi
95 image: {get_param: DockerGnocchiStatsdImage}
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/gnocchi_statsd.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
105 - /var/log/containers/gnocchi:/var/log/gnocchi
106 - /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 - name: create persistent logs directory
112 path: /var/log/containers/gnocchi
114 - name: ensure ceph configurations exist
119 - name: Stop and disable openstack-gnocchi-statsd service
121 service: name=openstack-gnocchi-statsd.service state=stopped enabled=no