Sha256: 22bd6bedca7bbe8adb680a34afcb8883973957ffd00192c75b1b853e4643f554

Contents?: true

Size: 1.79 KB

Versions: 9

Compression:

Stored size: 1.79 KB

Contents

# This stresses the parser, including ERB meta-logic, parameters, includes, and
# deprecated variable syntax. Also hits some esoteric AWS Autoscale features.
# Lifted (with permission) from a client and scrubbed of their specifics.
# clouds: AWS
---
appname: smoketest
parameters:
- name: instancesize
  prettyname: "Instance Size"
  default: <%= $environment == "prod" ? "m4.large" : "t2.small" %>
<%= include("poolparams-include.inc") %>
vpcs:
- name: parsemess
loadbalancers:
<% $healthcheck_target = "HTTP:8000/foo/bar/baz" %>
<%= include("elb-include.inc") %>
server_pools:
- name: svr
  cloud: AWS
  ssh_user: ec2-user
  platform: amazon
  tags:
    - key: Env
      value: <%= env %>
    - key: Application
      value: <%= myAppName %>
  termination_policies:
  - "OldestInstance"
<%= include("application_attributes.inc") %>
  vpc:
    name: parsemess
    subnet_pref: all_private
  wait_for_nodes: 2
  min_size: 2
<% if $environment == "prod" %>
  max_size: 20
<% else %>
  max_size: 2
  schedule:
  - action_name: scale-down-over-night
    recurrence: "30 6 * * *"
    min_size: 1
    max_size: 1
  - action_name: scale-up-during-the-day
    recurrence: "30 12 * * *"
    min_size: 2
    max_size: 2
<% end %>
<% $topic = "scale" %>
<% $estimated_instance_warmup = 600 %>
<% $target_value = 160 %>
<%= include("auto_scaling.inc") %>
  loadbalancers:
  - concurrent-load-balancer: elb
  ingress_rules:
  - port: 22
    hosts:
    - 10.0.0.0/16
  - port: 80
    hosts:
    - 0.0.0.0/0
  - port: 443
    hosts:
    - 0.0.0.0/0
  - port: 8000
    hosts:
    - 10.0.0.0/10
  - port: 8081
    hosts:
    - 10.0.0.0/10
  basis:
    launch_config:
      name: bookserver
      size: <%= instancesize %>
      storage:
      - device: /dev/xvdf
        size: 100
      iam_policies:
        <%= include("iam-include.json") %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cloud-mu-3.5.1 modules/tests/includes-and-params.yaml
cloud-mu-3.5.0 modules/tests/includes-and-params.yaml
cloud-mu-3.4.0 modules/tests/includes-and-params.yaml
cloud-mu-3.3.2 modules/tests/includes-and-params.yaml
cloud-mu-3.3.1 modules/tests/includes-and-params.yaml
cloud-mu-3.3.0 modules/tests/includes-and-params.yaml
cloud-mu-3.2.0 modules/tests/includes-and-params.yaml
cloud-mu-3.1.6 modules/tests/includes-and-params.yaml
cloud-mu-3.1.5 modules/tests/includes-and-params.yaml