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
40 MetricProcessingDelay:
42 description: Delay between processing metrics.
47 type: ./gnocchi-base.yaml
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 EndpointMap: {get_param: EndpointMap}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Gnocchi role.
60 service_name: gnocchi_metricd
61 monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiMetricd}
64 - get_attr: [GnocchiServiceBase, role_data, config_settings]
65 - gnocchi::metricd::workers: {get_param: GnocchiMetricdWorkers}
66 gnocchi::metricd::metric_processing_delay: {get_param: MetricProcessingDelay}
68 include ::tripleo::profile::base::gnocchi::metricd
70 - name: Check if gnocchi_metricd is deployed
71 command: systemctl is-enabled openstack-gnocchi-metricd
74 register: gnocchi_metricd_enabled
75 - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-metricd is running"
76 shell: /usr/bin/systemctl show 'openstack-gnocchi-metricd' --property ActiveState | grep '\bactive\b'
77 when: gnocchi_metricd_enabled.rc == 0
78 tags: step0,validation
79 - name: Stop gnocchi_metricd service
81 when: gnocchi_metricd_enabled.rc == 0
82 service: name=openstack-gnocchi-metricd state=stopped