Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / ceilometer-agent-notification.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Ceilometer Notification Agent service configured with Puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
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.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   MonitoringSubscriptionCeilometerNotification:
34     default: 'overcloud-ceilometer-agent-notification'
35     type: string
36   CeilometerAgentNotificationLoggingSource:
37     type: json
38     default:
39       tag: openstack.ceilometer.agent.notification
40       path: /var/log/ceilometer/agent-notification.log
41
42
43 resources:
44   CeilometerServiceBase:
45     type: ./ceilometer-base.yaml
46     properties:
47       ServiceData: {get_param: ServiceData}
48       ServiceNetMap: {get_param: ServiceNetMap}
49       DefaultPasswords: {get_param: DefaultPasswords}
50       EndpointMap: {get_param: EndpointMap}
51       RoleName: {get_param: RoleName}
52       RoleParameters: {get_param: RoleParameters}
53
54 outputs:
55   role_data:
56     description: Role data for the Ceilometer Notification Agent role.
57     value:
58       service_name: ceilometer_agent_notification
59       monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerNotification}
60       logging_source: {get_param: CeilometerAgentNotificationLoggingSource}
61       logging_groups:
62         - ceilometer
63       config_settings:
64         get_attr: [CeilometerServiceBase, role_data, config_settings]
65       service_config_settings:
66         get_attr: [CeilometerServiceBase, role_data, service_config_settings]
67       step_config: |
68         include ::tripleo::profile::base::ceilometer::agent::notification
69       upgrade_tasks:
70         - name: Check if ceilometer_agent_notification is deployed
71           command: systemctl is-enabled openstack-ceilometer-notification
72           tags: common
73           ignore_errors: True
74           register: ceilometer_agent_notification_enabled
75         - name: "PreUpgrade step0,validation: Check service openstack-ceilometer-notification is running"
76           shell: /usr/bin/systemctl show 'openstack-ceilometer-notification' --property ActiveState | grep '\bactive\b'
77           when: ceilometer_agent_notification_enabled.rc == 0
78           tags: step0,validation
79         - name: Stop ceilometer_agent_notification service
80           tags: step1
81           when: ceilometer_agent_notification_enabled.rc == 0
82           service: name=openstack-ceilometer-notification state=stopped