Add role specific information to the service template
[apex-tripleo-heat-templates.git] / puppet / services / nova-ironic.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Nova Compute service configured with Puppet and using Ironic
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   IronicPassword:
30     description: The password for the Ironic service and db account, used by the Ironic services
31     type: string
32     hidden: true
33
34 resources:
35   NovaBase:
36     type: ./nova-base.yaml
37     properties:
38       ServiceNetMap: {get_param: ServiceNetMap}
39       DefaultPasswords: {get_param: DefaultPasswords}
40       EndpointMap: {get_param: EndpointMap}
41       RoleName: {get_param: RoleName}
42       RoleParameters: {get_param: RoleParameters}
43
44 outputs:
45   role_data:
46     description: Role data for the Nova Compute service with Ironic.
47     value:
48       service_name: nova_ironic
49       config_settings:
50         map_merge:
51           - get_attr: [NovaBase, role_data, config_settings]
52           - nova::compute::force_config_drive: true
53             nova::compute::reserved_host_memory: '0'
54             nova::compute::vnc_enabled: false
55             nova::ironic::common::password: {get_param: IronicPassword}
56             nova::ironic::common::project_name: 'service'
57             nova::ironic::common::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
58             nova::ironic::common::username: 'ironic'
59             nova::ironic::common::api_endpoint: {get_param: [EndpointMap, IronicInternal, uri]}
60             nova::network::neutron::dhcp_domain: ''
61             nova::scheduler::filter::scheduler_host_manager: 'ironic_host_manager'
62       step_config: |
63         include tripleo::profile::base::nova::compute::ironic
64       upgrade_tasks:
65         - name: Stop openstack-nova-compute service
66           tags: step1
67           service: name=openstack-nova-compute state=stopped enabled=no