Remove uses of functions in parameter defaults

This doesn't work in recent versions of Heat and it shouldn't really
have ever worked.

Change-Id: I60772173f8d5baa5768b5626266b2e61cd93fbe2
Closes-Bug: #1282594
This commit is contained in:
Clint Byrum
2014-02-20 15:40:01 +00:00
committed by James Slagle
parent ff0959a200
commit b6ee51161e
3 changed files with 52 additions and 43 deletions

View File

@@ -4,15 +4,6 @@ Parameters:
BlockStorageImage: BlockStorageImage:
Type: String Type: String
Default: overcloud-cinder-volume Default: overcloud-cinder-volume
KeystoneHost:
Type: String
Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
MySQLHost:
Type: String
Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
RabbitHost:
Type: String
Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
RabbitUserName: RabbitUserName:
Type: String Type: String
Default: "guest" Default: "guest"
@@ -52,16 +43,16 @@ Resources:
stack_name: {Ref: 'AWS::StackName'} stack_name: {Ref: 'AWS::StackName'}
OpenStack::ImageBuilder::Elements: [ cinder ] OpenStack::ImageBuilder::Elements: [ cinder ]
keystone: keystone:
host: {Ref: KeystoneHost} host: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
cinder: cinder:
db: {"Fn::Join": ['', ['mysql://cinder:unset@', {Ref: MySQLHost}, '/cinder']]} db: {"Fn::Join": ['', ['mysql://cinder:unset@', {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] } , '/cinder']]}
volume_size_mb: '5000' volume_size_mb: '5000'
service-password: service-password:
Ref: CinderPassword Ref: CinderPassword
volume: 'true' volume: 'true'
admin-password: {Ref: AdminPassword} admin-password: {Ref: AdminPassword}
rabbit: rabbit:
host: {Ref: RabbitHost} host: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
username: {Ref: RabbitUserName} username: {Ref: RabbitUserName}
password: {Ref: RabbitPassword} password: {Ref: RabbitPassword}
interfaces: interfaces:

View File

@@ -124,20 +124,6 @@ Parameters:
Description: The password for RabbitMQ Description: The password for RabbitMQ
Type: String Type: String
NoEcho: true NoEcho: true
StaticHosts:
Default:
Fn::Join:
- ' '
- - Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notCompute0
- networks
- {Ref: CloudName}
Description: Static content to append to /etc/hosts
Type: String
Resources: Resources:
AccessPolicy: AccessPolicy:
Properties: Properties:
@@ -207,7 +193,16 @@ Resources:
NeutronBridgeMappings: NeutronBridgeMappings:
Ref: NeutronBridgeMappings Ref: NeutronBridgeMappings
StaticHosts: StaticHosts:
Ref: StaticHosts Fn::Join:
- ' '
- - Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notCompute0
- networks
- {Ref: CloudName}
NovaCompute0: NovaCompute0:
Type: FileInclude Type: FileInclude
Path: nova-compute-instance.yaml Path: nova-compute-instance.yaml
@@ -311,7 +306,17 @@ Resources:
- notCompute0 - notCompute0
- networks - networks
- ':8000/v1/waitcondition' - ':8000/v1/waitcondition'
hosts: {Ref: StaticHosts} hosts:
Fn::Join:
- ' '
- - Fn::Select:
- 0
- Fn::Select:
- ctlplane
- Fn::GetAtt:
- notCompute0
- networks
- {Ref: CloudName}
keystone: keystone:
db: mysql://keystone:unset@localhost/keystone db: mysql://keystone:unset@localhost/keystone
host: host:

View File

@@ -15,17 +15,6 @@ Parameters:
Default: i386 Default: i386
Description: The architecture to use in Nova-BM - i386 or amd64. Description: The architecture to use in Nova-BM - i386 or amd64.
Type: String Type: String
ControllerAddress:
Default:
Fn::Select:
- 0
- Fn::Select:
- "ctlplane"
- Fn::GetAtt:
- undercloud
- networks
Description: The IP address for controller endpoints in config files.
Type: String
Flavor: Flavor:
Default: baremetal Default: baremetal
Description: Flavor to request when deploying. Description: Flavor to request when deploying.
@@ -105,7 +94,13 @@ Resources:
admin-token: admin-token:
Ref: AdminToken Ref: AdminToken
controller-address: controller-address:
Ref: ControllerAddress Fn::Select:
- 0
- Fn::Select:
- "ctlplane"
- Fn::GetAtt:
- undercloud
- networks
cinder: cinder:
db: mysql://cinder:unset@localhost/cinder db: mysql://cinder:unset@localhost/cinder
volume_size_mb: '5000' volume_size_mb: '5000'
@@ -129,19 +124,37 @@ Resources:
Fn::Join: Fn::Join:
- '' - ''
- - http:// - - http://
- {Ref: ControllerAddress} - Fn::Select:
- 0
- Fn::Select:
- "ctlplane"
- Fn::GetAtt:
- undercloud
- networks
- ":8003" - ":8003"
metadata_server_url: metadata_server_url:
Fn::Join: Fn::Join:
- '' - ''
- - http:// - - http://
- {Ref: ControllerAddress} - Fn::Select:
- 0
- Fn::Select:
- "ctlplane"
- Fn::GetAtt:
- undercloud
- networks
- ":8000" - ":8000"
waitcondition_server_url: waitcondition_server_url:
Fn::Join: Fn::Join:
- '' - ''
- - http:// - - http://
- {Ref: ControllerAddress} - Fn::Select:
- 0
- Fn::Select:
- "ctlplane"
- Fn::GetAtt:
- undercloud
- networks
- ":8000/v1/waitcondition" - ":8000/v1/waitcondition"
os-collect-config: os-collect-config:
cfn: cfn: