aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud-source.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'overcloud-source.yaml')
-rw-r--r--overcloud-source.yaml143
1 files changed, 80 insertions, 63 deletions
diff --git a/overcloud-source.yaml b/overcloud-source.yaml
index bfec872c..7cce21a3 100644
--- a/overcloud-source.yaml
+++ b/overcloud-source.yaml
@@ -273,6 +273,10 @@ Resources:
network_id: {Ref: NeutronControlPlaneID}
fixed_ips:
Ref: ControlFixedIPs
+ MysqlClusterUniquePart:
+ Type: OS::Heat::RandomString
+ Properties:
+ length: 10
RabbitCookie:
Type: OS::Heat::RandomString
Properties:
@@ -286,7 +290,6 @@ Resources:
Parameters:
NovaApiHost: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
KeystoneHost: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
- RabbitHost: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
NeutronHost: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
GlanceHost: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
NovaDSN: {"Fn::Join": ['', ['mysql://nova:unset@', {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}, '/nova']]}
@@ -303,62 +306,12 @@ Resources:
Ref: HypervisorNeutronPublicInterface
NeutronBridgeMappings:
Ref: NeutronBridgeMappings
- StaticHosts:
- Fn::Join:
- - "\n"
- - - Fn::Join:
- - "\n"
- - Merge::Map:
- NovaCompute0:
- Fn::Join:
- - ' '
- - - Fn::Select:
- - 0
- - Fn::Select:
- - ctlplane
- - Fn::GetAtt:
- - NovaCompute0
- - networks
- - Fn::Select:
- - name
- - Fn::GetAtt:
- - NovaCompute0
- - show
- - Fn::Join:
- - '.'
- - - Fn::Select:
- - name
- - Fn::GetAtt:
- - NovaCompute0
- - show
- - 'novalocal'
- - Fn::Join:
- - "\n"
- - Merge::Map:
- controller0:
- Fn::Join:
- - ' '
- - - Fn::Select:
- - 0
- - Fn::Select:
- - ctlplane
- - Fn::GetAtt:
- - controller0
- - networks
- - Fn::Select:
- - name
- - Fn::GetAtt:
- - controller0
- - show
- - Fn::Join:
- - '.'
- - - Fn::Select:
- - name
- - Fn::GetAtt:
- - controller0
- - show
- - 'novalocal'
- - {Ref: CloudName}
+ NovaCompute0AllNodes:
+ Type: FileInclude
+ Path: nova-compute-instance.yaml
+ SubKey: Resources.NovaCompute0AllNodesDeploy
+ Parameters:
+ AllNodesConfig: {Ref: allNodesConfig}
NovaCompute0Passthrough:
Type: OS::Heat::StructuredDeployment
Properties:
@@ -376,7 +329,6 @@ Resources:
Properties:
group: os-apply-config
config:
- completion-signal: {get_input: deploy_signal_id}
admin-password:
Ref: AdminPassword
admin-token:
@@ -440,7 +392,6 @@ Resources:
watch_server_url: {get_input: heat.watch_server_url}
metadata_server_url: {get_input: heat.metadata_server_url}
waitcondition_server_url: {get_input: heat.waitcondition_server_url}
- hosts: {get_input: hosts}
keystone:
db: mysql://keystone:unset@localhost/keystone
host:
@@ -450,6 +401,15 @@ Resources:
signing_certificate: {Ref: KeystoneSigningCertificate}
mysql:
innodb_buffer_pool_size: {Ref: MysqlInnodbBufferPoolSize}
+ nodes:
+ Merge::Map:
+ controller0:
+ ip: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
+ cluster_name:
+ Fn::Join:
+ - '-'
+ - - 'tripleo'
+ - {Ref: MysqlClusterUniquePart}
neutron:
flat-networks: {Ref: NeutronFlatNetworks}
host: {get_input: controller_virtual_ip}
@@ -493,8 +453,6 @@ Resources:
service-password:
Ref: NovaPassword
rabbit:
- host:
- get_input: controller_host
username:
Ref: RabbitUserName
password:
@@ -515,6 +473,45 @@ Resources:
ip: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
interface:
Ref: ControlVirtualInterface
+ haproxy:
+ nodes:
+ Merge::Map:
+ controller0:
+ ip: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
+ name: {"Fn::Select": [ name, {"Fn::GetAtt": [controller0, show]} ] }
+ net_binds:
+ - ip: {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
+ services:
+ - name: keystone_admin
+ port: 35357
+ - name: keystone_public
+ port: 5000
+ - name: horizon
+ port: 80
+ - name: neutron
+ port: 9696
+ - name: cinder
+ port: 8776
+ - name: glance_api
+ port: 9292
+ - name: glance_registry
+ port: 9191
+ - name: heat_api
+ port: 8004
+ - name: heat_cloudwatch
+ port: 8003
+ - name: heat_cfn
+ port: 8000
+ - name: nova_ec2
+ port: 8773
+ - name: nova_osapi
+ port: 8774
+ - name: nova_metadata
+ port: 8775
+ - name: ceilometer
+ port: 8777
+ - name: swift_proxy_server
+ port: 8080
controllerPassthrough:
Type: OS::Heat::StructuredConfig
Properties:
@@ -531,10 +528,18 @@ Resources:
Ref: OvercloudControlFlavor
key_name:
Ref: KeyName
+ networks:
+ - network: ctlplane
user_data_format: SOFTWARE_CONFIG
+ controller0AllNodesConfig:
+ Type: OS::Heat::StructuredDeployment
+ Properties:
+ config: {Ref: allNodesConfig}
+ server: {Ref: controller0}
controller0Deployment:
Type: OS::Heat::StructuredDeployment
Properties:
+ signal_transport: NO_SIGNAL
config: {Ref: controllerConfig}
server: {Ref: controller0}
input_values:
@@ -552,6 +557,8 @@ Resources:
- Fn::GetAtt:
- controller0
- networks
+ controller_virtual_ip:
+ {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
heat.watch_server_url:
Fn::Join:
- ''
@@ -570,6 +577,11 @@ Resources:
- - 'http://'
- {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
- ':8000/v1/waitcondition'
+ allNodesConfig:
+ Type: OS::Heat::StructuredConfig
+ Properties:
+ config:
+ completion-signal: {get_input: deploy_signal_id}
hosts:
Fn::Join:
- "\n"
@@ -626,8 +638,13 @@ Resources:
- show
- 'novalocal'
- {Ref: CloudName}
- controller_virtual_ip:
- {'Fn::Select': [ip_address, 'Fn::Select': [0, 'Fn::GetAtt': [ControlVirtualIP, fixed_ips]]]}
+ rabbit:
+ nodes:
+ Fn::Join:
+ - ','
+ - Merge::Map:
+ controller0:
+ {"Fn::Select": [ name, {"Fn::GetAtt": [controller0, show]} ] }
controller0SSLDeployment:
Type: OS::Heat::StructuredDeployment
Properties: