1 heat_template_version: pike
4 Gnocchi service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
29 MonitoringSubscriptionGnocchiMetricd:
30 default: 'overcloud-gnocchi-metricd'
32 GnocchiMetricdWorkers:
33 default: '%{::os_workers}'
34 description: Number of workers for Gnocchi MetricD
39 type: ./gnocchi-base.yaml
41 ServiceNetMap: {get_param: ServiceNetMap}
42 DefaultPasswords: {get_param: DefaultPasswords}
43 EndpointMap: {get_param: EndpointMap}
44 RoleName: {get_param: RoleName}
45 RoleParameters: {get_param: RoleParameters}
49 description: Role data for the Gnocchi role.
51 service_name: gnocchi_metricd
52 monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiMetricd}
55 - get_attr: [GnocchiServiceBase, role_data, config_settings]
56 - gnocchi::metricd::workers: {get_param: GnocchiMetricdWorkers}
58 include ::tripleo::profile::base::gnocchi::metricd
60 - name: Check if gnocchi_metricd is deployed
61 command: systemctl is-enabled openstack-gnocchi-metricd
64 register: gnocchi_metricd_enabled
65 - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-metricd is running"
66 shell: /usr/bin/systemctl show 'openstack-gnocchi-metricd' --property ActiveState | grep '\bactive\b'
67 when: gnocchi_metricd_enabled.rc == 0
68 tags: step0,validation
69 - name: Stop gnocchi_metricd service
71 when: gnocchi_metricd_enabled.rc == 0
72 service: name=openstack-gnocchi-metricd state=stopped