Update stackforge references to openstack
[apex-tripleo-heat-templates.git] / bootstack-vm.yaml
1 Description: Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
2   server,Dedicated RabbitMQ Server
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   Image:
14     Default: overcloud-control
15     Type: String
16   PowerUserName:
17     Default: stack
18     Description: What username to ssh to the virtual power host with.
19     Type: String
20 Resources:
21   AccessPolicy:
22     Properties:
23       AllowedResources:
24       - notcompute
25     Type: OS::Heat::AccessPolicy
26   Key:
27     Properties:
28       UserName:
29         Ref: User
30     Type: AWS::IAM::AccessKey
31   User:
32     Properties:
33       Policies:
34       - Ref: AccessPolicy
35     Type: AWS::IAM::User
36   notcompute:
37     Metadata:
38       OpenStack::Heat::Stack: {}
39       Openstack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, heat-localip, neutron-network-node ]
40       admin-password: unset
41       admin-token: unset
42       controller-address: 0.0.0.0
43       cinder:
44         db: mysql://cinder:unset@localhost/cinder
45         volume_size_mb: '5000'
46       db-password: unset
47       glance:
48         db: mysql://glance:unset@localhost/glance
49         host: 0.0.0.0
50       heat:
51         admin_password: unset
52         admin_tenant_name: service
53         admin_user: heat
54         auth_encryption_key: unset___________
55         db: mysql://heat:unset@localhost/heat
56         heat_watch_server_url: http://0.0.0.0:8003
57         metadata_server_url: http://0.0.0.0:8000
58         waitcondition_server_url: http://0.0.0.0:8000/v1/waitcondition
59         access_key_id:
60           Ref: Key
61         refresh:
62         - resource: notcompute
63         secret_key:
64           Fn::GetAtt:
65           - Key
66           - SecretAccessKey
67         stack:
68           name:
69             Ref: AWS::StackName
70           region:
71             Ref: AWS::Region
72       interfaces:
73         control: eth2
74       keystone:
75         db: mysql://keystone:unset@localhost/keystone
76         host: 0.0.0.0
77       nova:
78         compute_driver: libvirt.LibvirtDriver
79         db: mysql://nova:unset@localhost/nova
80         host: 0.0.0.0
81       neutron:
82         floatingip_end: 192.0.2.64
83         floatingip_range: 192.0.2.0/24
84         floatingip_start: 192.0.2.45
85         host: 0.0.0.0
86         metadata_proxy_shared_secret: unset
87         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
88         ovs:
89           public_interface: eth0
90           fixed_range:
91             start: 10.0.0.2
92             end: 10.255.255.254
93           tenant_network_type: gre
94           enable_tunneling: 'True'
95           local_ip: 0.0.0.0
96       rabbit:
97         host: 0.0.0.0
98         password: guest
99       service-password: unset
100     Properties:
101       ImageId:
102         Ref: Image
103       InstanceType:
104         Ref: InstanceType
105       KeyName:
106         Ref: KeyName
107     Type: AWS::EC2::Instance