Reinstate architecture binding for nova-bm.
[apex-tripleo-heat-templates.git] / undercloud-vm.yaml
1 Description: All-in-one baremetal OpenStack and all dependencies.
2 HeatTemplateFormatVersion: '2012-12-12'
3 Parameters:
4   InstanceType:
5     Default: baremetal
6     Description: Flavor to request when deploying.
7     Type: String
8   KeyName:
9     Default: default
10     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
11     Type: String
12   Image:
13     Default: undercloud
14     Type: String
15   PowerUserName:
16     Default: stack
17     Description: What username to ssh to the virtual power host with.
18     Type: String
19 Resources:
20   AccessPolicy:
21     Properties:
22       AllowedResources:
23       - notcompute
24     Type: OS::Heat::AccessPolicy
25   Key:
26     Properties:
27       UserName:
28         Ref: User
29     Type: AWS::IAM::AccessKey
30   User:
31     Properties:
32       Policies:
33       - Ref: AccessPolicy
34     Type: AWS::IAM::User
35   notcompute:
36     Metadata:
37       OpenStack::Heat::Stack: {}
38       Openstack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, neutron-network-node ]
39       admin-password: unset
40       admin-token: unset
41       controller-address: 0.0.0.0
42       cinder:
43         db: mysql://cinder:unset@localhost/cinder
44         volume_size_mb: '5000'
45       db-password: unset
46       glance:
47         db: mysql://glance:unset@localhost/glance
48         host: 127.0.0.1
49       heat:
50         admin_password: unset
51         admin_tenant_name: service
52         admin_user: heat
53         auth_encryption_key: unset___________
54         db: mysql://heat:unset@localhost/heat
55         heat_watch_server_url: http://0.0.0.0:8003
56         metadata_server_url: http://0.0.0.0:8000
57         waitcondition_server_url: http://0.0.0.0:8000/v1/waitcondition
58         access_key_id:
59           Ref: Key
60         refresh:
61         - resource: notcompute
62         secret_key:
63           Fn::GetAtt:
64           - Key
65           - SecretAccessKey
66         stack:
67           name:
68             Ref: AWS::StackName
69           region:
70             Ref: AWS::Region
71       interfaces:
72         control: eth2
73       keystone:
74         db: mysql://keystone:unset@localhost/keystone
75         host: 127.0.0.1
76       nova:
77         compute_hostname: ubuntu
78         compute_driver: baremetal.driver.BareMetalDriver
79         db: mysql://nova:unset@localhost/nova
80         host: 127.0.0.1
81         metadata-proxy: false
82         tuning:
83           ram_allocation_ratio: 1.0
84           reserved_host_memory_mb: 0
85         baremetal:
86           arch: i386
87           db: mysql://nova:unset@localhost/nova_bm
88           power_manager: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
89           pxe_deploy_timeout: 1200
90           virtual_power:
91             user:
92               Ref: PowerUserName
93             key: /opt/stack/boot-stack/virtual-power-key
94             ssh_host: 192.168.122.1
95             type: virsh
96       neutron:
97         host: 127.0.0.1
98         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
99         ovs:
100           dnsmasq_range: [192.0.2.25, 192.0.2.44]
101           public_interface: eth0
102           physical_bridge: br-ctlplane
103           physical_network: ctlplane
104           network_vlan_ranges: ctlplane
105           bridge_mappings: ctlplane:br-ctlplane
106           fixed_range: 
107             start: 192.0.2.5
108             end: 192.0.2.24
109           tenant_network_type: vlan
110           enable_tunneling: 'False'
111       rabbit:
112         host: 127.0.0.1
113         password: guest
114       swift:
115         store_user: unset
116         store_key: unset
117       service-password: unset
118     Properties:
119       ImageId:
120         Ref: Image
121       InstanceType:
122         Ref: InstanceType
123       KeyName:
124         Ref: KeyName
125     Type: AWS::EC2::Instance