1 heat_template_version: pike
4 Gnocchi service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
33 MonitoringSubscriptionGnocchiMetricd:
34 default: 'overcloud-gnocchi-metricd'
36 GnocchiMetricdWorkers:
37 default: '%{::os_workers}'
38 description: Number of workers for Gnocchi MetricD
43 type: ./gnocchi-base.yaml
45 ServiceData: {get_param: ServiceData}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EndpointMap: {get_param: EndpointMap}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Gnocchi role.
56 service_name: gnocchi_metricd
57 monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiMetricd}
60 - get_attr: [GnocchiServiceBase, role_data, config_settings]
61 - gnocchi::metricd::workers: {get_param: GnocchiMetricdWorkers}
63 include ::tripleo::profile::base::gnocchi::metricd
65 - name: Check if gnocchi_metricd is deployed
66 command: systemctl is-enabled openstack-gnocchi-metricd
69 register: gnocchi_metricd_enabled
70 - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-metricd is running"
71 shell: /usr/bin/systemctl show 'openstack-gnocchi-metricd' --property ActiveState | grep '\bactive\b'
72 when: gnocchi_metricd_enabled.rc == 0
73 tags: step0,validation
74 - name: Stop gnocchi_metricd service
76 when: gnocchi_metricd_enabled.rc == 0
77 service: name=openstack-gnocchi-metricd state=stopped