Skip to content

Instantly share code, notes, and snippets.

@therve
therve / docker_sd.yaml
Last active August 29, 2015 14:04
Heat Docker template using software deployments
heat_template_version: 2013-05-23
description: >
Heat Docker template using software deployments.
parameters:
key_name:
type: string
description : Name of a KeyPair to enable SSH access to the instance
heat_template_version: 2013-05-23
parameters:
subnet_id:
type: string
resources:
mydb:
type: OS::DBInstance
properties:
database_name: wordpress
database_user: wordpress
heat_template_version: 2013-05-23
resources:
mydb:
type: OS::DBInstance
properties:
database_name: wordpress
database_user: wordpress
database_password: wordpress_password
database_root_password: root_password
heat_template_version: 2013-05-23
parameters:
database_name:
type: string
database_user:
type: string
database_password:
type: string
database_root_password:
heat_template_version: 2013-05-23
parameters:
volume_size:
type: number
description: The size of the created volume
resources:
myvolume:
type: OS::Cinder::Volume
heat_template_version: 2013-05-23
parameters:
volume_size:
type: number
description: The size of the created volume
resources:
myvolume:
type: OS::Cinder::Volume
heat_template_version: 2013-05-23
parameters:
volume_size:
type: number
description: The size of the created volume
resources:
myvolume:
type: OS::Cinder::Volume
heat_template_version: 2013-05-23
resources:
myvolume:
type: OS::Cinder::Volume
properties:
size: 1
import sys
from twisted.python import log
from twisted.internet import reactor
from twotp import Process, readCookie, buildNodeName
def receive(process):
def cb(resp):
print "Got response", resp
def eb(error):