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
{ | |
"image": { | |
"url": "http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img", | |
"name": "Ubuntu Trusty", | |
"container_format": "bare", | |
"disk_format": "qcow2" | |
}, | |
"callback_url": "", | |
"ssh_keys": [ | |
"" |
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
bash-3.2$ docker build -t stackstorm/st2 . | |
Sending build context to Docker daemon 5.632 kB | |
Sending build context to Docker daemon | |
Step 0 : FROM dockerfile/ubuntu | |
---> b4e54ddfb2af | |
Step 1 : RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d | |
---> Running in e69fc8816dcf | |
---> e77a260d3bea | |
Removing intermediate container e69fc8816dcf | |
Step 2 : RUN apt-get update && apt-get install -y python python-dev python-pip python-virtualenv openssh-server && rm -rf /var/lib/apt/lists/* |
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
{ | |
"handlers": { | |
"default": { | |
"type": "pipe", | |
"command": "python /etc/sensu/handlers/st2_handler.py" | |
} | |
} | |
} |
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 |
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
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
{ | |
"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
#!/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
#!/usr/bin/python | |
# USAGE: python domipaddr.py qemu:///system HOSTNAME DISTRO INTERFACE USERNAME PASSWORD | |
import sys, pexpect | |
import pprint | |
SUPPORTED_DISTROS = [ | |
'ubuntu1404', | |
'centos6', | |
'centos7'] |
OlderNewer