Add FileInclude special type.
[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       dib:
47         ramdisk_elements: deploy
48       glance:
49         db: mysql://glance:unset@localhost/glance
50         host: 127.0.0.1
51       heat:
52         admin_password: unset
53         admin_tenant_name: service
54         admin_user: heat
55         auth_encryption_key: unset___________
56         db: mysql://heat:unset@localhost/heat
57         heat_watch_server_url: http://0.0.0.0:8003
58         metadata_server_url: http://0.0.0.0:8000
59         waitcondition_server_url: http://0.0.0.0:8000/v1/waitcondition
60         access_key_id:
61           Ref: Key
62         refresh:
63         - resource: notcompute
64         secret_key:
65           Fn::GetAtt:
66           - Key
67           - SecretAccessKey
68         stack:
69           name:
70             Ref: AWS::StackName
71           region:
72             Ref: AWS::Region
73       interfaces:
74         control: eth2
75       keystone:
76         db: mysql://keystone:unset@localhost/keystone
77         host: 127.0.0.1
78       nova:
79         compute_hostname: ubuntu
80         compute_driver: baremetal.driver.BareMetalDriver
81         db: mysql://nova:unset@localhost/nova
82         host: 127.0.0.1
83         metadata-proxy: false
84         tuning:
85           ram_allocation_ratio: 1.0
86           reserved_host_memory_mb: 0
87         baremetal:
88           arch: i386
89           db: mysql://nova:unset@localhost/nova_bm
90           power_manager: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
91           pxe_deploy_timeout: 1200
92           virtual_power:
93             user:
94               Ref: PowerUserName
95             key: /opt/stack/boot-stack/virtual-power-key
96             ssh_host: 192.168.122.1
97             type: virsh
98       neutron:
99         host: 127.0.0.1
100         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
101         ovs:
102           dnsmasq_range: [192.0.2.25, 192.0.2.44]
103           public_interface: eth0
104           physical_bridge: br-ctlplane
105           physical_network: ctlplane
106           network_vlan_ranges: ctlplane
107           bridge_mappings: ctlplane:br-ctlplane
108           fixed_range: 
109             start: 192.0.2.5
110             end: 192.0.2.24
111           tenant_network_type: vlan
112           enable_tunneling: 'False'
113       rabbit:
114         host: 127.0.0.1
115         password: guest
116       swift:
117         store_user: unset
118         store_key: unset
119       service-password: unset
120     Properties:
121       ImageId:
122         Ref: Image
123       InstanceType:
124         Ref: InstanceType
125       KeyName:
126         Ref: KeyName
127     Type: AWS::EC2::Instance