Add role specific information to the service template
[apex-tripleo-heat-templates.git] / puppet / services / nova-consoleauth.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Nova Consoleauth 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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   MonitoringSubscriptionNovaConsoleauth:
30     default: 'overcloud-nova-consoleauth'
31     type: string
32   NovaConsoleauthLoggingSource:
33     type: json
34     default:
35       tag: openstack.nova.consoleauth
36       path: /var/log/nova/nova-consoleauth.log
37
38 resources:
39   NovaBase:
40     type: ./nova-base.yaml
41     properties:
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45       RoleName: {get_param: RoleName}
46       RoleParameters: {get_param: RoleParameters}
47
48 outputs:
49   role_data:
50     description: Role data for the Nova Consoleauth service.
51     value:
52       service_name: nova_consoleauth
53       monitoring_subscription: {get_param: MonitoringSubscriptionNovaConsoleauth}
54       logging_source: {get_param: NovaConsoleauthLoggingSource}
55       logging_groups:
56         - nova
57       config_settings:
58         get_attr: [NovaBase, role_data, config_settings]
59       step_config: |
60         include tripleo::profile::base::nova::consoleauth
61       upgrade_tasks:
62         - name: Stop nova_consoleauth service
63           tags: step1
64           service: name=openstack-nova-consoleauth state=stopped