Skip to content

Instantly share code, notes, and snippets.

heat_template_version: 2013-05-23
resources:
rg:
type: 'https://gist.githubusercontent.com/pratikmallya/7fdc3eed6f9d83f1c4f3/raw/e9e156a87ca9d057f2d73914608d8638b6b2efed/drupal.yaml'
outputs:
service_ips:
description: Node Service IPs
value: { get_attr: [rg, server_ip] }
heat_template_version: 2014-10-16
description: |
Single node linux server with swift signaling.
resources:
signal_handle:
type: "OS::Heat::SwiftSignalHandle"
linux_server:
heat_template_version: 2014-10-16
description: |
Creating Rackspace cloud server with user_data.
resources:
test_server:
type: "OS::Nova::Server"
properties:
name: test-server
heat_template_version: 2014-10-16
description: |
Single node linux server with swift signaling.
resources:
signal_handle:
type: "OS::Heat::SwiftSignalHandle"
linux_server:
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:
heat_template_version: 2013-05-23
description: |
Creates a DevStack server.
parameters:
flavor:
description: Rackspace Cloud Server flavor
type: string
heat_template_version: 2013-05-23
parameters:
count:
type: number
default: 4
description: number of servers
resources:
rg:
type: OS::Heat::ResourceGroup
heat_template_version: 2013-05-23
resources:
load_balancer:
type: Rackspace::Cloud::LoadBalancer
properties:
port: 80
protocol: HTTP
algorithm: "ROUND_ROBIN"
virtualIps:
heat_template_version: 2013-05-23
description: |
Test template using all resources supported on the Rackspace Public Cloud
resources:
gentoo_server: # Should create as long as there's no user_data
type: Rackspace::Cloud::Server
properties:
flavor: 1 GB Performance
Syntax For Rack Commands
======================
rack (https://github.com/rackspace/rack) is the shiny new cli to talk to rackspace public cloud. The cli is meant to be used primarily by customers and hence should be intuitive and easy to use.
Here is the syntax I propose for the rack commands related to orchestration:
The shortened service name I'm using is "orch". We can use "heat" or anything else also.
Stacks:
Create Stack rack orch stack create --name StackName -e [File | URL]