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