~ubuntu-branches/ubuntu/wily/heat/wily-proposed

« back to all changes in this revision

Viewing changes to heat_integrationtests/scenario/templates/test_neutron_autoscaling.yaml

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-03-30 11:11:18 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150330111118-2qpycylx6swu4yhj
Tags: 2015.1~b3-0ubuntu1
[ Corey Bryant ]
* New upstream milestone release for OpenStack kilo:
  - d/control: Align with upstream dependencies.
  - d/p/sudoers_patch.patch: Rebased.
  - d/p/fix-requirements.patch: Rebased.

[ James Page ]
* d/p/fixup-assert-regex.patch: Tweak test to use assertRegexpMatches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
heat_template_version: 2014-10-16
 
2
 
 
3
description: Auto-scaling Test
 
4
 
 
5
parameters:
 
6
  image_id:
 
7
    type: string
 
8
    label: Image ID
 
9
    description: Image ID from configurations
 
10
  capacity:
 
11
    type: string
 
12
    label: Capacity
 
13
    description: Auto-scaling group desired capacity
 
14
  fixed_subnet_name:
 
15
    type: string
 
16
    label: fixed subnetwork ID
 
17
    description: subnetwork ID used for autoscaling
 
18
  instance_type:
 
19
    type: string
 
20
    label: instance_type
 
21
    description: type of instance to launch
 
22
 
 
23
resources:
 
24
  test_pool:
 
25
    type: OS::Neutron::Pool
 
26
    properties:
 
27
      description: Test Pool
 
28
      lb_method: ROUND_ROBIN
 
29
      name: test_pool
 
30
      protocol: HTTP
 
31
      subnet: { get_param: fixed_subnet_name }
 
32
      vip: {
 
33
        "description": "Test VIP",
 
34
        "protocol_port": 80,
 
35
        "name": "test_vip"
 
36
      }
 
37
  load_balancer:
 
38
    type: OS::Neutron::LoadBalancer
 
39
    properties:
 
40
      protocol_port: 80
 
41
      pool_id: { get_resource: test_pool }
 
42
  launch_config:
 
43
    type: AWS::AutoScaling::LaunchConfiguration
 
44
    properties:
 
45
      ImageId: { get_param: image_id }
 
46
      InstanceType: { get_param: instance_type }
 
47
  server_group:
 
48
    type: AWS::AutoScaling::AutoScalingGroup
 
49
    properties:
 
50
      AvailabilityZones : ["nova"]
 
51
      LaunchConfigurationName : { get_resource : launch_config }
 
52
      MinSize : 1
 
53
      MaxSize : 5
 
54
      DesiredCapacity: { get_param: capacity }
 
55
      LoadBalancerNames : [ { get_resource : load_balancer } ]