Merge "Add network_data.yaml to encapsulate list of networks for j2"
[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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   IronicPassword:
22     description: The password for the Ironic service and db account, used by the Ironic services
23     type: string
24     hidden: true
25
26 resources:
27   NovaBase:
28     type: ./nova-base.yaml
29     properties:
30       ServiceNetMap: {get_param: ServiceNetMap}
31       DefaultPasswords: {get_param: DefaultPasswords}
32       EndpointMap: {get_param: EndpointMap}
33
34 outputs:
35   role_data:
36     description: Role data for the Nova Compute service with Ironic.
37     value:
38       service_name: nova_ironic
39       config_settings:
40         map_merge:
41           - get_attr: [NovaBase, role_data, config_settings]
42           - nova::compute::force_config_drive: true
43             nova::compute::reserved_host_memory: '0'
44             nova::compute::vnc_enabled: false
45             nova::ironic::common::password: {get_param: IronicPassword}
46             nova::ironic::common::project_name: 'service'
47             nova::ironic::common::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
48             nova::ironic::common::username: 'ironic'
49             nova::ironic::common::api_endpoint: {get_param: [EndpointMap, IronicInternal, uri]}
50             nova::network::neutron::dhcp_domain: ''
51             nova::scheduler::filter::scheduler_host_manager: 'ironic_host_manager'
52       step_config: |
53         include tripleo::profile::base::nova::compute::ironic
54       upgrade_tasks:
55         - name: Stop openstack-nova-compute service
56           tags: step1
57           service: name=openstack-nova-compute state=stopped enabled=no