Merge "Use the AWS instance type in the cfn_init scenario"

This commit is contained in:
Jenkins 2015-02-24 17:38:48 +00:00 committed by Gerrit Code Review
commit 095b641958
2 changed files with 10 additions and 11 deletions

View File

@ -9,7 +9,7 @@ Parameters:
Type: String
image:
Type: String
network:
subnet:
Type: String
timeout:
Type: Number
@ -28,7 +28,7 @@ Resources:
Properties:
UserName: {Ref: CfnUser}
SmokeServer:
Type: OS::Nova::Server
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
@ -48,14 +48,13 @@ Resources:
owner: root
group: root
Properties:
image: {Ref: image}
flavor: {Ref: flavor}
key_name: {Ref: key_name}
security_groups:
ImageId: {Ref: image}
InstanceType: {Ref: flavor}
KeyName: {Ref: key_name}
SubnetId: {Ref: subnet}
SecurityGroups:
- {Ref: SmokeSecurityGroup}
networks:
- uuid: {Ref: network}
user_data:
UserData:
Fn::Replace:
- WaitHandle: {Ref: WaitHandle}
- |
@ -79,4 +78,4 @@ Outputs:
SmokeServerIp:
Description: IP address of server
Value:
Fn::GetAtt: [SmokeServer, first_address]
Fn::GetAtt: [SmokeServer, PublicIp]

View File

@ -37,7 +37,7 @@ class CfnInitIntegrationTest(test.HeatIntegrationTest):
'flavor': self.conf.instance_type,
'image': self.conf.image_ref,
'timeout': self.conf.build_timeout,
'network': net['id'],
'subnet': net['subnets'][0],
}
# create the stack