Nested stack of nova-compute-instance.yaml

This commit is contained in:
Clint Byrum 2013-05-23 15:49:41 -07:00
parent 5eadb8b0ad
commit a96fefd92f
2 changed files with 78 additions and 0 deletions

61
nova-compute-group.yaml Normal file
View File

@ -0,0 +1,61 @@
HeatTemplateFormatVersion: '2012-12-12'
Description: 'Group of Nova Computes'
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
Type: String
Default: default
InstanceType:
Description: Use this flavor
Type: String
Default: baremetal
NovaImage:
Type: String
KeystoneHost:
Type: String
ServicePassword:
Description: admin_password for setting up auth in nova.
Type: String
QuantumHost:
Type: String
RabbitHost:
Type: String
RabbitPassword:
Type: String
NovaInterfaces:
Type: String
Default: eth0
NovaComputeDriver:
Type: String
Default: libvirt.LibvirtDriver
NovaApiHost:
Type: String
GlanceHost:
Type: String
NovaComputeTemplate:
Type: String
Default: https://raw.github.com/SpamapS/templates/MERGE/nova-compute-instance.yaml
NovaDSN:
Type: String
QuantumDSN:
Type: String
Resources:
NovaCompute0:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
NovaImage: {Ref: NovaImage}
InstanceType: {Ref: InstanceType}
KeyName: {Ref: KeyName}
KeystoneHost: {Ref: KeystoneHost}
ServicePassword: {Ref: ServicePassword}
QuantumHost: {Ref: QuantumHost}
RabbitHost: {Ref: RabbitHost}
RabbitPassword: {Ref: RabbitPassword}
NovaInterfaces: {Ref: NovaInterfaces}
NovaComputeDriver: {Ref: NovaComputeDriver}
NovaApiHost: {Ref: NovaApiHost}
GlanceHost: {Ref: GlanceHost}
NovaDSN: {Ref: NovaDSN}
QuantumDSN: {Ref: QuantumDSN}
TemplateURL: {Ref: NovaComputeTemplate}

View File

@ -28,8 +28,14 @@ Parameters:
NovaComputeDriver:
Type: String
Default: libvirt.LibvirtDriver
NovaApiHost:
Type: String
GlanceHost:
Type: String
NovaDSN:
Type: String
QuantumDSN:
Type: String
Resources:
AccessPolicy:
Type: OS::Heat::AccessPolicy
@ -65,12 +71,23 @@ Resources:
- resource: NovaCompute
nova:
compute_driver: {Ref: NovaComputeDriver}
db: {Ref: NovaDSN}
host: {Ref: NovaApiHost}
glance:
host: {Ref: GlanceHost}
keystone:
host: {Ref: KeystoneHost}
quantum:
host: {Ref: QuantumHost}
ovs_db: {Ref: QuantumDSN}
ovs:
local_ip:
Fn::GetAtt: [ NovaCompute, PrivateIp ]
tenant_network_type: gre
network_vlan_ranges: ''
bridge_mappings: ''
enable_tunneling: 'True'
service-password: {Ref: ServicePassword}
admin-password: {Ref: ServicePassword}
rabbit: