f8916ea076fa834273b69136b32ea2b90aeb8148
[apex-tripleo-heat-templates.git] / overcloud-source.yaml
1 Description: Nova API,Keystone,Heat Engine and API,Glance,Neutron,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   NovaImage:
17     Type: String
18     Default: overcloud-compute
19   NovaInterfaces:
20     Default: eth0
21     Type: String
22   PowerUserName:
23     Default: stack
24     Description: What username to ssh to the virtual power host with.
25     Type: String
26   notcomputeImage:
27     Type: String
28     Default: overcloud-control
29 Resources:
30   AccessPolicy:
31     Properties:
32       AllowedResources:
33       - notcompute
34     Type: OS::Heat::AccessPolicy
35   Key:
36     Properties:
37       UserName:
38         Ref: User
39     Type: AWS::IAM::AccessKey
40   NovaCompute0:
41     Type: FileInclude
42     Path: nova-compute-instance.yaml
43     SubKey: Resources.NovaCompute
44     Parameters:
45         NovaApiHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
46         KeystoneHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
47         RabbitHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
48         NeutronHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
49         GlanceHost: {"Fn::GetAtt": [notcompute, PrivateIp]}
50         NovaDSN: {"Fn::Join": ['', ['mysql://nova:unset@', {"Fn::GetAtt": [notcompute, PrivateIp]}, '/nova']]}
51         NeutronDSN: {"Fn::Join": ['', ['mysql://neutron:unset@', {"Fn::GetAtt": [notcompute, PrivateIp]}, '/neutron']]}
52         NeutronNetworkType: "gre"
53         NeutronEnableTunnelling: "True"
54         NeutronNetworkVLANRanges: ""
55         NeutronBridgeMappings: ""
56         RabbitPassword: "guest"
57         ServicePassword: "unset"
58   User:
59     Properties:
60       Policies:
61       - Ref: AccessPolicy
62     Type: AWS::IAM::User
63   notcompute:
64     Metadata:
65       OpenStack::Heat::Stack: {}
66       Openstack::ImageBuilder::Elements:
67       - boot-stack
68       - heat-cfntools
69       - heat-localip
70       - neutron-network-node
71       admin-password: unset
72       admin-token: unset
73       cinder:
74         db: mysql://cinder:unset@localhost/cinder
75         volume_size_mb: '5000'
76       controller-address: 0.0.0.0
77       db-password: unset
78       glance:
79         db: mysql://glance:unset@localhost/glance
80         host: 0.0.0.0
81       heat:
82         access_key_id:
83           Ref: Key
84         admin_password: unset
85         admin_tenant_name: service
86         admin_user: heat
87         auth_encryption_key: unset___________
88         db: mysql://heat:unset@localhost/heat
89         heat_watch_server_url: http://0.0.0.0:8003
90         metadata_server_url: http://0.0.0.0:8000
91         refresh:
92         - resource: notcompute
93         secret_key:
94           Fn::GetAtt:
95           - Key
96           - SecretAccessKey
97         stack:
98           name:
99             Ref: AWS::StackName
100           region:
101             Ref: AWS::Region
102         waitcondition_server_url: http://0.0.0.0:8000/v1/waitcondition
103       interfaces:
104         control: eth0
105       keystone:
106         db: mysql://keystone:unset@localhost/keystone
107         host: 0.0.0.0
108       nova:
109         compute_driver: libvirt.LibvirtDriver
110         db: mysql://nova:unset@localhost/nova
111         host: 0.0.0.0
112         metadata-proxy: true
113       neutron:
114         host: 0.0.0.0
115         metadata_proxy_shared_secret: unset
116         ovs:
117           enable_tunneling: 'True'
118           local_ip: 0.0.0.0
119           public_interface: eth0
120           tenant_network_type: gre
121         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
122       rabbit:
123         host: 0.0.0.0
124         password: guest
125       service-password: unset
126     Properties:
127       ImageId:
128         Ref: notcomputeImage
129       InstanceType:
130         Ref: InstanceType
131       KeyName:
132         Ref: KeyName
133     Type: AWS::EC2::Instance