Skip to content

Instantly share code, notes, and snippets.

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
description: |
This is a Heat template to deploy a single Linux server running WordPress.
parameter_groups:
- label: Server Settings
parameters:
- server_hostname
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]
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"
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