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