Skip to content

Instantly share code, notes, and snippets.

@pratikmallya
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratikmallya/f7f9811b066f26c0b621 to your computer and use it in GitHub Desktop.
Save pratikmallya/f7f9811b066f26c0b621 to your computer and use it in GitHub Desktop.
heat_template_version: 2013-05-23
resources:
rg:
type: OS::Heat::ResourceGroup
properties:
count: 5
resource_def: {type: "https://gist.githubusercontent.com/pratikmallya/b6be647475a5f0aa2172/raw/bfa4eb693b7259275b835eb3c7e9590cf2aeae73/server_with_volume.yaml"}
load_balancer:
type: Rackspace::Cloud::LoadBalancer
properties:
port: 80
protocol: HTTP
algorithm: "LEAST_CONNECTIONS"
virtualIps:
- type: PUBLIC
ipVersion: IPV4
nodes:
- addresses: { get_attr: [rg, service_ip] }
port: 80
condition: ENABLED
healthMonitor:
attemptsBeforeDeactivation: 3
delay: 1
timeout: 30
type: HTTP
path: "/"
statusRegex: "."
bodyRegex: "."
outputs:
service_ips:
description: Node Service IPs
value: { get_attr: [rg, service_ip] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment