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