ff0959a200
Username is currently assumed to be guest in the configuration files. This change makes it more explicit. Configuration files in tripleo-image-elements will be updated to use this parameter in an upcoming patch. Change-Id: Ia176f4d573a3a293560c72236a4181befa678301
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
HeatTemplateFormatVersion: '2012-12-12'
|
|
Parameters:
|
|
ComputeImage:
|
|
Type: String
|
|
RabbitUserName:
|
|
Type: String
|
|
RabbitPassword:
|
|
Type: String
|
|
NoEcho: true
|
|
Resources:
|
|
ComputeAccessPolicy:
|
|
Type: OS::Heat::AccessPolicy
|
|
Properties:
|
|
AllowedResources: [ NovaCompute0 ]
|
|
NovaCompute0Key:
|
|
Type: AWS::IAM::AccessKey
|
|
Properties:
|
|
UserName:
|
|
Ref: ComputeUser
|
|
NovaCompute0CompletionCondition:
|
|
Type: AWS::CloudFormation::WaitCondition
|
|
DependsOn: notcompute
|
|
Properties:
|
|
Handle: {Ref: NovaCompute0CompletionHandle}
|
|
Count: '1'
|
|
Timeout: '1800'
|
|
NovaCompute0CompletionHandle:
|
|
Type: AWS::CloudFormation::WaitConditionHandle
|
|
NovaCompute0:
|
|
Type: OS::Nova::Server
|
|
Properties:
|
|
image:
|
|
Ref: ComputeImage
|
|
Metadata:
|
|
os-collect-config:
|
|
cfn:
|
|
access_key_id:
|
|
Ref: NovaCompute0Key
|
|
secret_access_key:
|
|
Fn::GetAtt: [ NovaCompute0Key, SecretAccessKey ]
|
|
stack_name: {Ref: 'AWS::StackName'}
|
|
path: NovaCompute0Config.Metadata
|
|
NovaCompute0Config:
|
|
Type: AWS::AutoScaling::LaunchConfiguration
|
|
Metadata:
|
|
completion-handle:
|
|
Ref: NovaCompute0CompletionHandle
|
|
os-collect-config:
|
|
cfn:
|
|
access_key_id:
|
|
Ref: NovaCompute0Key
|
|
secret_access_key:
|
|
Fn::GetAtt: [ NovaCompute0Key, SecretAccessKey ]
|
|
stack_name: {Ref: 'AWS::StackName'}
|
|
path: NovaCompute0Config.Metadata
|
|
neutron:
|
|
ovs:
|
|
local_ip:
|
|
Fn::Select:
|
|
- 0
|
|
- Fn::Select:
|
|
- ctlplane
|
|
- Fn::GetAtt:
|
|
- NovaCompute0
|
|
- networks
|
|
rabbit:
|
|
username: {Ref: RabbitUserName}
|
|
password: {Ref: RabbitPassword}
|
|
|