This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Sample Heat template that spins up multiple instances and a private network (JSON)", | |
"Resources" : { | |
"heat_network_01" : { | |
"Type" : "OS::Neutron::Net", | |
"Properties" : { | |
"name" : "heat-network-01" | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
A simple Heat template that spins up multiple instances and a private network (HOT template in YAML). | |
resources: | |
heat_network_01: | |
type: OS::Neutron::Net | |
properties: | |
admin_state_up: true | |
name: heat-network-01 | |
heat_subnet_01: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
A simple Heat template to create a distributed logical router. | |
resources: | |
router0: | |
type: OS::Neutron::Router | |
properties: | |
admin_state_up: True | |
name: distributed-router | |
value_specs: { distributed: "True" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm'> | |
<name>veos</name> | |
<memory unit='KiB'>2097152</memory> | |
<currentMemory unit='KiB'>2097152</currentMemory> | |
<vcpu placement='static'>1</vcpu> | |
<resource> | |
<partition>/machine</partition> | |
</resource> | |
<os> | |
<type arch='x86_64' machine='pc-i440fx-1.5'>hvm</type> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
A simple Heat template to deploy CoreOS into an existing cluster. | |
parameters: | |
network_id: | |
type: string | |
label: Network ID | |
description: ID of existing Neutron network to use | |
default: <ID of Neutron network to which instances should connect> | |
image_id: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Nginx web front-end | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker pull nginx | |
ExecStart=/usr/bin/docker run --rm --name nginx -p 80:80 nginx | |
ExecStop=/usr/bin/docker stop nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Nginx web front-end | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker pull nginx | |
ExecStart=/usr/bin/docker run --rm --name nginx-01 -p 80:80 nginx | |
ExecStop=/usr/bin/docker stop nginx-01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
Heat template to deploy Docker containers to an existing host | |
resources: | |
nginx-01: | |
type: DockerInc::Docker::Container | |
properties: | |
image: nginx | |
docker_endpoint: 'tcp://192.168.1.207:2345' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Box | |
config.vm.box = "ubuntu/precise64" | |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" | |
# Shared folders | |
config.vm.synced_folder ".", "/vagrant" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
A Heat template to add CoreOS instances to an existing network and configure them via cloud-init/cloud-config | |
parameters: | |
network_id: | |
type: string | |
label: Neutron network ID | |
description: ID of existing Neutron network to use | |
default: dd6de1d2-735e-4b94-963b-b79aae7bcf1a | |
image_id: |