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/77d3abf6d9be4dd1dd18 to your computer and use it in GitHub Desktop.
Save pratikmallya/77d3abf6d9be4dd1dd18 to your computer and use it in GitHub Desktop.
heat_template_version: 2013-05-23
resources:
rg:
type: OS::Heat::ResourceGroup
properties:
count: 3
resource_def: {type: "https://raw.githubusercontent.com/rackspace-orchestration-templates/lamp/master/lamp.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, server_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, server_ip] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment