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
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
{ | |
"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
<network> | |
<name>default</name> | |
<uuid>259bc60d-0ed4-4924-8537-6bccb979843e</uuid> | |
<forward mode='nat'/> | |
<bridge name='virbr0' stp='on' delay='0'/> | |
<ip address='192.168.122.1' netmask='255.255.255.0'> | |
<dhcp> | |
<range start='192.168.122.2' end='192.168.122.254'/> | |
</dhcp> | |
</ip> |
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
{ | |
"display_name": "test-lswitch", | |
"port_isolation_enabled": false, | |
"transport_zones": [ | |
{ | |
"zone_uuid": "dca3d854-b329-5458-b711-0df2d5762d7a", | |
"binding_config": {}, | |
"transport_type": "stt" | |
} | |
], |
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
#!/bin/bash | |
BRIDGE="br-int" | |
ovs-vsctl --may-exist add-br $BRIDGE | |
ovs-vsctl --if-exists del-port $BRIDGE $5 | |
ovs-vsctl --may-exist add-port $BRIDGE $5 |
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
-- This script moves messages to a spam training folder | |
-- Set some default values to be used later in the script; not all values may be used | |
property destMailbox : "Spam Training" | |
property destAccount : "example.com" | |
-- Handler called when running script from script menu | |
on run | |
tell application "Mail" | |
set theSelectedMessages to selection | |
if ((count of theSelectedMessages) < 1) then |
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
apt::source { 'ubuntu-cloud': | |
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu', | |
repos => 'main', | |
release => 'precise-updates/havana', | |
include_src => false, | |
required_packages => 'ubuntu-cloud-keyring', | |
} |
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
<network> | |
<name>bridged</name> | |
<uuid>ff5f8075-31a7-4cc9-21bf-5c8d144f58f0</uuid> | |
<forward mode='bridge'/> | |
<bridge name='br-ex' /> | |
<virtualport type='openvswitch'/> | |
<portgroup name='untagged' default='yes'> | |
</portgroup> | |
</network> |
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='lxc'> | |
<name>REPLACE</name> | |
<memory>327680</memory> | |
<os> | |
<type>exe</type> | |
<init>/sbin/init</init> | |
</os> | |
<vcpu>1</vcpu> | |
<clock offset='utc'/> | |
<on_poweroff>destroy</on_poweroff> |