Last active
August 29, 2015 14:25
-
-
Save pratikmallya/b3c8a9489e425d8398ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
parameters: | |
count: | |
type: number | |
default: 4 | |
description: number of servers | |
resources: | |
rg: | |
type: OS::Heat::ResourceGroup | |
properties: | |
count: { get_param: count} | |
resource_def: {type: 'https://gist.githubusercontent.com/pratikmallya/b6be647475a5f0aa2172/raw/36e7e681733797fcf20c8172ccbe6280fd5d1624/server_with_volume.yaml'} | |
load_balancer: | |
type: Rackspace::Cloud::LoadBalancer | |
properties: | |
port: 80 | |
protocol: HTTP | |
algorithm: "ROUND_ROBIN" | |
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_ip: | |
description: IP of the service | |
value: { get_attr: [load_balancer, PublicIp] } | |
node_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