heat-templates/cfn/F17/InstanceGroup.template
Steven Dake a2ad92fa58 Add F17, F18, F19, U12 subdirectories for templates
This change makes it possible for us to properly maintain example templates
for various distributions by organizing them into subdirectories.

Change-Id: I06e4d24cae83330af97870bab1e6795999218d1e
2013-08-04 18:55:34 -07:00

57 lines
1.7 KiB
Plaintext

{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to create multiple instances.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String"
},
"InstanceType" : {
"Description" : "Instance type",
"Type" : "String",
"Default" : "m1.small",
"AllowedValues" : [ "m1.tiny", "m1.small", "m1.medium", "m1.large", "m1.xlarge" ],
"ConstraintDescription" : "must be a valid EC2 instance type."
},
"ImageId" : {
"Description" : "Name of the image to use",
"Type" : "String",
"Default" : "F17-x86_64-cfntools"
},
"NumInstances": {
"Default": "1",
"MinValue": "1",
"MaxValue": "100",
"Description" : "Number of instances to create",
"Type": "Number"
}
},
"Resources" : {
"JobServerGroup" : {
"Type" : "OS::Heat::InstanceGroup",
"Properties" : {
"LaunchConfigurationName" : { "Ref" : "JobServerConfig" },
"Size" : {"Ref": "NumInstances"},
"AvailabilityZones" : { "Fn::GetAZs" : "" }
}
},
"JobServerConfig" : {
"Type" : "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
"ImageId" : { "Ref" : "ImageId" },
"InstanceType" : { "Ref" : "InstanceType" },
"KeyName" : { "Ref" : "KeyName" },
"NovaSchedulerHints": [ {"Key": "part", "Value": "long"},
{"Key": "ready", "Value": "short"} ],
"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -v\n"
]]}}
}
}
}
}