Merge "Keystone token flush cron job should log to a file"
[apex-tripleo-heat-templates.git] / puppet / services / aodh-notifier.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Aodh Notifier service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
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.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   MonitoringSubscriptionAodhNotifier:
22     default: 'overcloud-ceilometer-aodh-notifier'
23     type: string
24
25 resources:
26   AodhBase:
27     type: ./aodh-base.yaml
28     properties:
29       ServiceNetMap: {get_param: ServiceNetMap}
30       DefaultPasswords: {get_param: DefaultPasswords}
31       EndpointMap: {get_param: EndpointMap}
32
33 outputs:
34   role_data:
35     description: Role data for the Aodh Notifier service.
36     value:
37       service_name: aodh_notifier
38       monitoring_subscription: {get_param: MonitoringSubscriptionAodhNotifier}
39       config_settings:
40         get_attr: [AodhBase, role_data, config_settings]
41       step_config: |
42         include tripleo::profile::base::aodh::notifier
43       upgrade_tasks:
44         - name: Check if aodh_notifier is deployed
45           command: systemctl is-enabled openstack-aodh-notifier
46           tags: common
47           ignore_errors: True
48           register: aodh_notifier_enabled
49         - name: "PreUpgrade step0,validation: Check service openstack-aodh-notifier is running"
50           shell: /usr/bin/systemctl show 'openstack-aodh-notifier' --property ActiveState | grep '\bactive\b'
51           when: aodh_notifier_enabled.rc == 0
52           tags: step0,validation
53         - name: Stop aodh_notifier service
54           tags: step1
55           when: aodh_notifier_enabled.rc == 0
56           service: name=openstack-aodh-notifier state=stopped