Stop passing no longer honoured keys in.
[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           db: mysql://nova:unset@localhost/nova_bm
87           power_manager: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
88           pxe_deploy_timeout: 1200
89           virtual_power:
90             user:
91               Ref: PowerUserName
92             key: /opt/stack/boot-stack/virtual-power-key
93             ssh_host: 192.168.122.1
94             type: virsh
95       neutron:
96         host: 127.0.0.1
97         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
98         ovs:
99           dnsmasq_range: [192.0.2.25, 192.0.2.44]
100           public_interface: eth0
101           physical_bridge: br-ctlplane
102           physical_network: ctlplane
103           network_vlan_ranges: ctlplane
104           bridge_mappings: ctlplane:br-ctlplane
105           fixed_range: 
106             start: 192.0.2.5
107             end: 192.0.2.24
108           tenant_network_type: vlan
109           enable_tunneling: 'False'
110       rabbit:
111         host: 127.0.0.1
112         password: guest
113       swift:
114         store_user: unset
115         store_key: unset
116       service-password: unset
117     Properties:
118       ImageId:
119         Ref: Image
120       InstanceType:
121         Ref: InstanceType
122       KeyName:
123         Ref: KeyName
124     Type: AWS::EC2::Instance