Skip to content

Instantly share code, notes, and snippets.

heat_template_version: 2015-04-30
resources:
my_server:
type: my_nova.yaml
properties:
key_name: my_key
heat_template_version: 2014-10-16
description: |
Nova server
resources:
linux_server:
type: OS::Nova::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
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:
@pratikmallya
pratikmallya / format_test.go
Last active September 18, 2015 01:12
Simple test which fails if code is not in the go format. Include this code in your package and code contributions will fail if not submitted with the correct format.
// include package name here
import (
"bytes"
"fmt"
"os/exec"
"testing"
)
func TestCodeFormattedCorrectly(t *testing.T) {
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
#cloud-config
write_files:
- path: /root/hello-world.txt
content: |
#!/bin/bash
username=XXXXXX
APIkey=XXXXXX
dc=hkg
container=dn-container
file=xyz.tar.gz
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::Heat::None"