Merge "Add checks in ansible upgrade tasks for CephMon and CephOSD"
[apex-tripleo-heat-templates.git] / puppet / services / sahara-engine.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Sahara Engine 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   MonitoringSubscriptionSaharaEngine:
22     default: 'overcloud-sahara-engine'
23     type: string
24   SaharaEngineLoggingSource:
25     type: json
26     default:
27       tag: openstack.sahara.engine
28       path: /var/log/sahara/sahara-engine.log
29
30 resources:
31   SaharaBase:
32     type: ./sahara-base.yaml
33     properties:
34       ServiceNetMap: {get_param: ServiceNetMap}
35       DefaultPasswords: {get_param: DefaultPasswords}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Sahara Engine role.
41     value:
42       service_name: sahara_engine
43       monitoring_subscription: {get_param: MonitoringSubscriptionSaharaEngine}
44       logging_source: {get_param: SaharaEngineLoggingSource}
45       logging_groups:
46         - sahara
47       config_settings:
48         map_merge:
49           - get_attr: [SaharaBase, role_data, config_settings]
50       step_config: |
51         include ::tripleo::profile::base::sahara::engine
52       upgrade_tasks:
53         - name: Stop sahara_engine service
54           tags: step2
55           service: name=openstack-sahara-engine state=stopped