Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2014 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8668694 to your computer and use it in GitHub Desktop.
Save anonymous/8668694 to your computer and use it in GitHub Desktop.
from tuskar with TEMP_RCS = {'resource_categories': {'controller': 1, 'compute': 2, 'block':2}}
Description: Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
server,Dedicated RabbitMQ Server,Group of Nova Computes,/home/m/Documents/WORK/NewEclipsey/Github/Tuskar/tripleo-heat-templates/tuskar_resource_1390919315.yaml
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
KeystoneURL:
Description: URL for the Overcloud Keystone service
Value:
Fn::Join:
- ''
- - http://
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- :5000/v2.0/
Parameters:
AdminPassword:
Default: unset
Description: The password for the keystone admin account, used for monitoring,
querying neutron etc.
NoEcho: true
Type: String
AdminToken:
Default: unset
Description: The keystone auth secret.
NoEcho: true
Type: String
CeilometerComputeAgent:
AllowedValues:
- ''
- Present
Default: ''
Description: Indicates whether the Compute agent is present and expects nova-compute
to be configured accordingly
Type: String
CeilometerMeteringSecret:
Default: unset
Description: Secret shared by the ceilometer services.
NoEcho: true
Type: String
CeilometerPassword:
Default: unset
Description: The password for the ceilometer service account.
NoEcho: true
Type: String
CinderPassword:
Default: unset
Description: The password for the cinder service account, used by cinder-api.
NoEcho: true
Type: String
Flavor:
Default: baremetal
Description: Flavor to request when deploying.
Type: String
GlancePassword:
Default: unset
Description: The password for the glance service account, used by the glance services.
NoEcho: true
Type: String
HeatPassword:
Default: unset
Description: The password for the Heat service account, used by the Heat services.
NoEcho: true
Type: String
ImageUpdatePolicy:
Default: REPLACE
Description: What policy to use when reconstructing instances. REBUILD for rebuilds,
REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
Type: String
KeyName:
Default: default
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
Type: String
NeutronBridgeMappings:
Default: ''
Description: The OVS logical->physical bridge mappings to use.
Type: String
NeutronPassword:
Default: unset
Description: The password for the neutron service account, used by neutron agents.
NoEcho: true
Type: String
NeutronPublicInterface:
Default: eth0
Description: What interface to bridge onto br-ex for network nodes.
Type: String
NeutronPublicInterfaceDefaultRoute:
Default: ''
Description: A custom default route for the NeutronPublicInterface.
Type: String
NeutronPublicInterfaceIP:
Default: ''
Description: A custom IP address to put onto the NeutronPublicInterface.
Type: String
NeutronPublicInterfaceRawDevice:
Default: ''
Description: If set, the public interface is a vlan with this device as the raw
device.
Type: String
NovaComputeDriver:
Default: libvirt.LibvirtDriver
Type: String
NovaComputeLibvirtType:
Default: ''
Type: String
NovaImage:
Default: overcloud-compute
Type: String
NovaPassword:
Default: unset
Description: The password for the nova service account, used by nova-api.
NoEcho: true
Type: String
NtpServer:
Default: ''
Type: String
PowerUserName:
Default: stack
Description: What username to ssh to the virtual power host with.
Type: String
notcomputeImage:
Default: overcloud-control
Type: String
Resources:
AccessPolicy:
Properties:
AllowedResources:
- notcompute
- notcomputeConfig
Type: OS::Heat::AccessPolicy
BlockStorage0:
Metadata:
OpenStack::ImageBuilder::Elements:
- cinder
admin-password:
Ref: AdminPassword
cinder:
db:
Fn::Join:
- ''
- - mysql://cinder:unset@
- Ref: MySQLHost
- /cinder
service-password:
Ref: CinderPassword
volume: 'true'
volume_size_mb: '5000'
interfaces:
control:
Ref: NeutronPublicInterface
keystone:
host:
Ref: KeystoneHost
os-collect-config:
cfn:
access_key_id:
Ref: BlockStorageKey
secret_access_key:
Fn::GetAtt:
- BlockStorageKey
- SecretAccessKey
stack_name:
Ref: AWS::StackName
rabbit:
host:
Ref: RabbitHost
password:
Ref: RabbitPassword
Properties:
flavor:
Ref: Flavor
image:
Ref: BlockStorageImage
key_name:
Ref: KeyName
Type: OS::Nova::Server
BlockStorage1:
Metadata:
OpenStack::ImageBuilder::Elements:
- cinder
admin-password:
Ref: AdminPassword
cinder:
db:
Fn::Join:
- ''
- - mysql://cinder:unset@
- Ref: MySQLHost
- /cinder
service-password:
Ref: CinderPassword
volume: 'true'
volume_size_mb: '5000'
interfaces:
control:
Ref: NeutronPublicInterface
keystone:
host:
Ref: KeystoneHost
os-collect-config:
cfn:
access_key_id:
Ref: BlockStorageKey
secret_access_key:
Fn::GetAtt:
- BlockStorageKey
- SecretAccessKey
stack_name:
Ref: AWS::StackName
rabbit:
host:
Ref: RabbitHost
password:
Ref: RabbitPassword
Properties:
flavor:
Ref: Flavor
image:
Ref: BlockStorageImage
key_name:
Ref: KeyName
Type: OS::Nova::Server
ComputeAccessPolicy:
Properties:
AllowedResources:
- NovaCompute0
- NovaCompute0Config
Type: OS::Heat::AccessPolicy
ComputeKey:
Properties:
UserName:
Ref: ComputeUser
Type: AWS::IAM::AccessKey
ComputeUser:
Properties:
Policies:
- Ref: ComputeAccessPolicy
Type: AWS::IAM::User
Key:
Properties:
UserName:
Ref: User
Type: AWS::IAM::AccessKey
NovaCompute0:
Metadata:
OpenStack::ImageBuilder::Elements:
- nova-compute
os-collect-config:
cfn:
access_key_id:
Ref: ComputeKey
path: NovaCompute0Config.Metadata
secret_access_key:
Fn::GetAtt:
- ComputeKey
- SecretAccessKey
stack_name:
Ref: AWS::StackName
Properties:
flavor:
Ref: Flavor
image:
Ref: NovaImage
image_update_policy:
Ref: ImageUpdatePolicy
key_name:
Ref: KeyName
Type: OS::Nova::Server
NovaCompute0Config:
Metadata:
admin-password:
Ref: AdminPassword
ceilometer:
compute_agent:
Ref: CeilometerComputeAgent
db:
Fn::Join:
- ''
- - mysql://ceilometer:unset@
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- /ceilometer
metering_secret:
Ref: CeilometerMeteringSecret
service-password:
Ref: CeilometerPassword
completion-handle:
Ref: CompletionHandle
glance:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
keystone:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
neutron:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
ovs:
bridge_mappings:
Ref: NeutronBridgeMappings
enable_tunneling: 'True'
local_ip:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- NovaCompute0
- networks
network_vlan_ranges: ''
tenant_network_type: gre
ovs_db:
Fn::Join:
- ''
- - mysql://neutron:unset@
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- /neutron
service-password:
Ref: NeutronPassword
nova:
compute_driver:
Ref: NovaComputeDriver
compute_libvirt_type:
Ref: NovaComputeLibvirtType
db:
Fn::Join:
- ''
- - mysql://nova:unset@
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- /nova
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
service-password:
Ref: NovaPassword
os-collect-config:
cfn:
access_key_id:
Ref: ComputeKey
path: NovaCompute0Config.Metadata
secret_access_key:
Fn::GetAtt:
- ComputeKey
- SecretAccessKey
stack_name:
Ref: AWS::StackName
rabbit:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
password: guest
Properties:
ImageId: '0'
InstanceType: '0'
Type: AWS::AutoScaling::LaunchConfiguration
NovaCompute1:
Metadata:
OpenStack::ImageBuilder::Elements:
- nova-compute
os-collect-config:
cfn:
access_key_id:
Ref: ComputeKey
path: NovaCompute0Config.Metadata
secret_access_key:
Fn::GetAtt:
- ComputeKey
- SecretAccessKey
stack_name:
Ref: AWS::StackName
Properties:
flavor:
Ref: Flavor
image:
Ref: NovaImage
image_update_policy:
Ref: ImageUpdatePolicy
key_name:
Ref: KeyName
Type: OS::Nova::Server
User:
Properties:
Policies:
- Ref: AccessPolicy
Type: AWS::IAM::User
notcompute:
Metadata:
os-collect-config:
cfn:
access_key_id:
Ref: Key
path: notcomputeConfig.Metadata
secret_access_key:
Fn::GetAtt:
- Key
- SecretAccessKey
stack_name:
Ref: AWS::StackName
Properties:
flavor:
Ref: Flavor
image:
Ref: notcomputeImage
image_update_policy:
Ref: ImageUpdatePolicy
key_name:
Ref: KeyName
Type: OS::Nova::Server
notcomputeConfig:
Metadata:
OpenStack::Heat::Stack: {}
OpenStack::ImageBuilder::Elements:
- boot-stack
- heat-cfntools
- heat-localip
- neutron-network-node
admin-password:
Ref: AdminPassword
admin-token:
Ref: AdminToken
bootstack:
public_interface_ip:
Ref: NeutronPublicInterfaceIP
ceilometer:
db: mysql://ceilometer:unset@localhost/ceilometer
metering_secret:
Ref: CeilometerMeteringSecret
service-password:
Ref: CeilometerPassword
cinder:
db: mysql://cinder:unset@localhost/cinder
service-password:
Ref: CinderPassword
volume_size_mb: '5000'
controller-address:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
db-password: unset
glance:
backend: swift
db: mysql://glance:unset@localhost/glance
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
service-password:
Ref: GlancePassword
swift-store-key:
Ref: GlancePassword
swift-store-user: service:glance
heat:
admin_password:
Ref: HeatPassword
admin_tenant_name: service
admin_user: heat
auth_encryption_key: unset___________
db: mysql://heat:unset@localhost/heat
metadata_server_url:
Fn::Join:
- ''
- - http://
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- :8000
waitcondition_server_url:
Fn::Join:
- ''
- - http://
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- :8000/v1/waitcondition
watch_server_url:
Fn::Join:
- ''
- - http://
- Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
- :8003
keystone:
db: mysql://keystone:unset@localhost/keystone
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
neutron:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
metadata_proxy_shared_secret: unset
ovs:
bridge_mappings:
Ref: NeutronBridgeMappings
enable_tunneling: 'True'
local_ip:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
physical_bridge: br-ex
public_interface:
Ref: NeutronPublicInterface
public_interface_raw_device:
Ref: NeutronPublicInterfaceRawDevice
public_interface_route:
Ref: NeutronPublicInterfaceDefaultRoute
tenant_network_type: gre
ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
service-password:
Ref: NeutronPassword
nova:
compute_driver: libvirt.LibvirtDriver
db: mysql://nova:unset@localhost/nova
default_floating_pool: ext-net
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
metadata-proxy: true
service-password:
Ref: NovaPassword
ntp:
servers:
- fudge: stratum 0
server:
Ref: NtpServer
os-collect-config:
cfn:
access_key_id:
Ref: Key
path: notcomputeConfig.Metadata
secret_access_key:
Fn::GetAtt:
- Key
- SecretAccessKey
stack_name:
Ref: AWS::StackName
rabbit:
host:
Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notcompute
- networks
password: guest
Properties:
ImageId: '0'
InstanceType: '0'
Type: AWS::AutoScaling::LaunchConfiguration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment