[openstack-dev] [heat][neutron] OS::Heat::AutoScalingGroup and OS::Neutron::PoolMember?
Stephen Gran
stephen.gran at guardian.co.uk
Thu Mar 13 09:32:01 UTC 2014
On 03/12/2014 06:34 PM, Mike Spreitzer wrote:
> Has anybody exercised the case of OS::Heat::AutoScalingGroup scaling a
> nested stack that includes a OS::Neutron::PoolMember? Should I expect
> this to work?
This sort of thing works fine for us. It needs some patches that missed
Havana, though.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Sample webserver config",
"Resources": {
"LBMonitor": {
"Type": "OS::Neutron::HealthMonitor",
"Properties": {
"delay": 3,
"max_retries": 5,
"url_path": "/_",
"type": "HTTP",
"timeout": 10
}
},
"LaunchConfig": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
},
"SecurityGroups": [ { "Ref": "SecGroup" } ],
"InstanceType": "m1.small",
"ImageId": "CentOS65-1312-1"
}
},
"ELB": {
"Type": "OS::Neutron::LoadBalancer",
"Properties": {
"protocol_port": "8080",
"pool_id": { "Ref": "LBPool" }
}
},
"ASG": {
"Version": "2009-05-15",
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"LaunchConfigurationName": { "Ref": "LaunchConfig" },
"MinSize": "1",
"MaxSize": "2",
"VPCZoneIdentifier": [ "mumbleuuid" ],
"LoadBalancerNames": [ { "Ref": "ELB" } ],
"AvailabilityZones": { "Fn::GetAZs": "" }
}
},
"LBPool": {
"Type": "OS::Neutron::Pool",
"Properties": {
"lb_method": "ROUND_ROBIN",
"protocol": "HTTP",
"description": "Test Pool",
"subnet_id": "mumbleuuid",
"vip": {
"protocol_port": "8080",
"connection_limit": 1000,
"description": "Test",
"name": "Test"
},
"monitors": [ { "Ref": "LBMonitor" } ],
"name": "test"
}
},
"SecGroup": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"SecurityGroupIngress": [
{
"SourceSecurityGroupId": "mumbleuuid",
"IpProtocol": "tcp",
"ToPort": "8080",
"FromPort": "8080"
},
],
"GroupDescription": "Test"
}
}
}
}
Cheers,
--
Stephen Gran
Senior Systems Integrator - theguardian.com
Please consider the environment before printing this email.
------------------------------------------------------------------
Visit theguardian.com
On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad
Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access.
Visit subscribe.theguardian.com
This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.
Guardian News & Media Limited
A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP
Registered in England Number 908396
--------------------------------------------------------------------------
More information about the OpenStack-dev
mailing list