Use native server resource in overcloud
[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   AdminPassword:
5     Default: unset
6     Description: The password for the keystone admin account, used for monitoring, querying neutron etc.
7     Type: String
8   AdminToken:
9     Default: unset
10     Description: The keystone auth secret.
11     Type: String
12   Flavor:
13     Default: baremetal
14     Description: Flavor to request when deploying.
15     Type: String
16   KeyName:
17     Default: default
18     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
19     Type: String
20   Image:
21     Default: undercloud
22     Type: String
23   NeutronPassword:
24     Default: unset
25     Description: The password for the neutron service account, used by neutron agents.
26     Type: String
27   PowerUserName:
28     Default: stack
29     Description: What username to ssh to the virtual power host with.
30     Type: String
31 Resources:
32   AccessPolicy:
33     Properties:
34       AllowedResources:
35       - notcomputeConfig
36     Type: OS::Heat::AccessPolicy
37   Key:
38     Properties:
39       UserName:
40         Ref: User
41     Type: AWS::IAM::AccessKey
42   User:
43     Properties:
44       Policies:
45       - Ref: AccessPolicy
46     Type: AWS::IAM::User
47   notcomputeConfig:
48     Type: AWS::AutoScaling::LaunchConfiguration
49     Properties:
50       ImageId: '0'
51       InstanceType: foo
52     Metadata:
53       OpenStack::Heat::Stack: {}
54       Openstack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, neutron-network-node ]
55       admin-password:
56         Ref: AdminPassword
57       admin-token:
58         Ref: AdminToken
59       controller-address:
60         Fn::GetAtt:
61           - notcompute
62           - PrivateIp
63       cinder:
64         db: mysql://cinder:unset@localhost/cinder
65         volume_size_mb: '5000'
66       db-password: unset
67       glance:
68         db: mysql://glance:unset@localhost/glance
69         host: 127.0.0.1
70       heat:
71         admin_password: unset
72         admin_tenant_name: service
73         admin_user: heat
74         auth_encryption_key: unset___________
75         db: mysql://heat:unset@localhost/heat
76         heat_watch_server_url:
77           Fn::Join:
78             - ''
79             - - http://
80               - {"Fn::GetAtt": [ notcompute, PrivateIp ]}
81               - ":8003"
82         metadata_server_url:
83           Fn::Join:
84             - ''
85             - - http://
86               - {"Fn::GetAtt": [ notcompute, PrivateIp ]}
87               - ":8000"
88         waitcondition_server_url:
89           Fn::Join:
90             - ''
91             - - http://
92               - {"Fn::GetAtt": [ notcompute, PrivateIp ]}
93               - ":8000/v1/waitcondition"
94       os-collect-config:
95         cfn:
96           access_key_id:
97             Ref: Key
98           path: notcomputeConfig.Metadata
99           secret_access_key:
100             Fn::GetAtt:
101             - Key
102             - SecretAccessKey
103           stack_name:
104             Ref: AWS::StackName
105       interfaces:
106         control: eth2
107       keystone:
108         db: mysql://keystone:unset@localhost/keystone
109         host: 127.0.0.1
110       nova:
111         compute_hostname: ubuntu
112         compute_driver: baremetal.driver.BareMetalDriver
113         db: mysql://nova:unset@localhost/nova
114         host: 127.0.0.1
115         metadata-proxy: false
116         tuning:
117           ram_allocation_ratio: 1.0
118           reserved_host_memory_mb: 0
119         baremetal:
120           arch: i386
121           db: mysql://nova:unset@localhost/nova_bm
122           power_manager: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
123           pxe_deploy_timeout: 2400
124           virtual_power:
125             user:
126               Ref: PowerUserName
127             key: /opt/stack/boot-stack/virtual-power-key
128             ssh_host: 192.168.122.1
129             type: virsh
130       neutron:
131         host: 127.0.0.1
132         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
133         ovs:
134           dnsmasq_range: [192.0.2.25, 192.0.2.44]
135           public_interface: eth0
136           physical_bridge: br-ctlplane
137           physical_network: ctlplane
138           network_vlan_ranges: ctlplane
139           bridge_mappings: ctlplane:br-ctlplane
140           tenant_network_type: vlan
141           enable_tunneling: 'False'
142         service-password:
143           Ref: NeutronPassword
144       rabbit:
145         host: 127.0.0.1
146         password: guest
147       swift:
148         store_user: unset
149         store_key: unset
150       service-password: unset
151   notcompute:
152     Type: OS::Nova::Server
153     Properties:
154       image:
155         Ref: Image
156       flavor:
157         Ref: Flavor
158       key_name:
159         Ref: KeyName
160     Metadata:
161       os-collect-config:
162         cfn:
163           access_key_id:
164             Ref: Key
165           path: notcomputeConfig.Metadata
166           secret_access_key:
167             Fn::GetAtt:
168             - Key
169             - SecretAccessKey
170           stack_name:
171             Ref: AWS::StackName