Skip to content

Instantly share code, notes, and snippets.

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
parameters:
count:
type: number
default: 4
description: number of servers
resources:
rg:
type: OS::Heat::ResourceGroup
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: |
Nova server
resources:
linux_server:
type: OS::Nova::Server
heat_template_version: 2015-04-30
resources:
my_server:
type: my_nova.yaml
properties:
key_name: my_key
heat_template_version: 2014-10-16
parameters:
param_string:
type: string
description: Flavor for the server to be created
default: 4353
hidden: true
param_number:
type: number
description: Flavor for the server to be created
heat_template_version: 2014-10-16
parameters:
flavor:
type: string
description: Flavor for the server to be created
default: 4353
hidden: true
resources:
test_server:
type: "OS::Nova::Server"
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]
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
heat_template_version: 2013-05-23
resources:
load_balancer:
type: Rackspace::Cloud::LoadBalancer
properties:
port: 80
protocol: HTTP
algorithm: "ROUND_ROBIN"
virtualIps: