97fca6d47d2257e0939e05b0fe9bb4a335e80fb8
[apex-tripleo-heat-templates.git] / overcloud-source.yaml
1 Description: Nova API,Keystone,Heat Engine and API,Glance,Quantum,Dedicated MySQL
2   server,Dedicated RabbitMQ Server,Group of Nova Computes
3 HeatTemplateFormatVersion: '2012-12-12'
4 Parameters:
5   InstanceType:
6     Default: baremetal
7     Description: Flavor to request when deploying.
8     Type: String
9   KeyName:
10     Default: default
11     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
12     Type: String
13   NovaComputeDriver:
14     Default: libvirt.LibvirtDriver
15     Type: String
16   NovaComputeTemplate:
17     Default: https://raw.github.com/stackforge/tripleo-heat-templates/master/nova-compute-instance.yaml
18     Type: String
19   NovaDSN:
20     Type: String
21   NovaImage:
22     Type: String
23   NovaInterfaces:
24     Default: eth0
25     Type: String
26   PowerUserName:
27     Default: stack
28     Description: What username to ssh to the virtual power host with.
29     Type: String
30   QuantumDSN:
31     Type: String
32   RabbitPassword:
33     Type: String
34   ServicePassword:
35     Description: admin_password for setting up auth in nova.
36     Type: String
37   notcomputeImage:
38     Type: String
39 Resources:
40   AccessPolicy:
41     Properties:
42       AllowedResources:
43       - notcompute
44     Type: OS::Heat::AccessPolicy
45   Key:
46     Properties:
47       UserName:
48         Ref: User
49     Type: AWS::IAM::AccessKey
50   NovaCompute0:
51     Type: FileInclude
52     Path: nova-compute-instance.yaml
53     SubKey: Resources.NovaCompute
54     Parameters:
55         NovaApiHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
56         KeystoneHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
57         RabbitHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
58         QuantumHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
59         GlanceHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
60   User:
61     Properties:
62       Policies:
63       - Ref: AccessPolicy
64     Type: AWS::IAM::User
65   notcompute:
66     Metadata:
67       OpenStack::Heat::Stack: {}
68       Openstack::ImageBuilder::Elements:
69       - boot-stack
70       - heat-cfntools
71       - heat-localip
72       - quantum-network-node
73       admin-password: unset
74       admin-token: unset
75       cinder:
76         db: mysql://cinder:unset@localhost/cinder
77         volume_size_mb: '5000'
78       controller-address: 0.0.0.0
79       db-password: unset
80       glance:
81         db: mysql://glance:unset@localhost/glance
82         host: 0.0.0.0
83       heat:
84         access_key_id:
85           Ref: Key
86         admin_password: unset
87         admin_tenant_name: service
88         admin_user: heat
89         auth_encryption_key: unset___________
90         db: mysql://heat:unset@localhost/heat
91         heat_watch_server_url: http://0.0.0.0:8003
92         metadata_server_url: http://0.0.0.0:8000
93         refresh:
94         - resource: notcompute
95         secret_key:
96           Fn::GetAtt:
97           - Key
98           - SecretAccessKey
99         stack:
100           name:
101             Ref: AWS::StackName
102           region:
103             Ref: AWS::Region
104         waitcondition_server_url: http://0.0.0.0:8000/v1/waitcondition
105       interfaces:
106         control: eth2
107       keystone:
108         db: mysql://keystone:unset@localhost/keystone
109         host: 0.0.0.0
110       nova:
111         compute_driver: libvirt.LibvirtDriver
112         db: mysql://nova:unset@localhost/nova
113         host: 0.0.0.0
114       quantum:
115         floatingip_end: 192.0.2.64
116         floatingip_range: 192.0.2.0/24
117         floatingip_start: 192.0.2.45
118         host: 0.0.0.0
119         metadata_proxy_shared_secret: unset
120         ovs:
121           enable_tunneling: 'True'
122           fixed_range:
123             end: 10.255.255.254
124             start: 10.0.0.2
125           local_ip: 0.0.0.0
126           public_interface: eth2
127           tenant_network_type: gre
128         ovs_db: mysql://quantum:unset@localhost/ovs_quantum?charset=utf8
129       rabbit:
130         host: 0.0.0.0
131         password: guest
132       service-password: unset
133     Properties:
134       ImageId:
135         Ref: notcomputeImage
136       InstanceType:
137         Ref: InstanceType
138       KeyName:
139         Ref: KeyName
140     Type: AWS::EC2::Instance