This file contains 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
#!/usr/bin/python | |
# USAGE: python domipaddr.py qemu:///system HOSTNAME DISTRO INTERFACE USERNAME PASSWORD | |
import sys, pexpect | |
import pprint | |
SUPPORTED_DISTROS = [ | |
'ubuntu1404', | |
'centos6', | |
'centos7'] |
This file contains 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
version: '2' | |
services: | |
consul1: | |
image: "consul:latest" | |
container_name: "consul1" | |
hostname: "consul1" | |
ports: | |
- "8301:8301" | |
- "8400:8400" | |
- "8500:8500" |
I hereby claim:
- I am doriftoshoes on github.
- I am patrickhoolboom (https://keybase.io/patrickhoolboom) on keybase.
- I have a public key ASCZOXem3Qkj36yNhbtFQoaEsATC88zqhn1kfxjOxuJcfwo
To claim this, I am signing this object:
This file contains 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
virt-install --name ubuntu1604 \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/images/ubuntu1604.qcow2,size=20 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant ubuntutrusty \ | |
--network bridge=br0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ | |
--location 'http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/' \ |
This file contains 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 | |
MISTRAL_STABLE_BRANCH=$1 | |
DEBTEST=`lsb_release -a 2> /dev/null | grep Distributor | awk '{print $3}'` | |
if [[ "$DEBTEST" == "Ubuntu" ]]; then | |
TYPE="debs" | |
PYTHONPACK="/usr/lib/python2.7/dist-packages" | |
echo "###########################################################################################" |
This file contains 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
{ | |
"description": "Touches a file on a 15 minute interval", | |
"enabled": true, | |
"trigger": { | |
"type": "core.st2.IntervalTimer", | |
"parameters": { | |
"unit": "minutes", | |
"delta": 15 | |
}, | |
"pack": "core" |
This file contains 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
cp -R FOO_PACK /opt/stackstorm/packs/ | |
st2 run packs.setup_virtualenv packs=FOO_PACK -a | |
st2 run packs.load register=actions -a | |
st2 run packs.load register=sensors -a |
This file contains 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
--- | |
name: "sensu.event_to_email" | |
description: "Email all sensu events" | |
trigger: | |
type: "sensu.event_handler" | |
parameters: {} | |
criteria: {} | |
action: | |
ref: "core.sendmail" | |
parameters: |
This file contains 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
{ | |
"client":{ | |
"name": "host01", | |
"address": "10.2.1.11", | |
"subscriptions": [ | |
"all", | |
"frontend", | |
"proxy" | |
], | |
"timestamp": 1326390159 |
NewerOlder