Skip to content

Instantly share code, notes, and snippets.

@DoriftoShoes
Forked from kordless/splunk.json
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DoriftoShoes/cbd27eae1f4c735a6dee to your computer and use it in GitHub Desktop.
Save DoriftoShoes/cbd27eae1f4c735a6dee to your computer and use it in GitHub Desktop.
{
"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": [
""
],
"post_create": [
"#cloud-config",
"hostname: stackstorm",
"manage_etc_hosts: true",
"runcmd:",
" - [ wget, 'https://gist.githubusercontent.com/DoriftoShoes/cbd27eae1f4c735a6dee/raw/stackstorm_install.sh', -O, /tmp/install.sh ]",
" - chmod 755 /tmp/install.sh",
" - /tmp/install.sh"
]
}

StackStorm Demo Installer

This is the demo launcher for StackStorm used by StackMonkey. This URL is used by the demo:

https://gist.githubusercontent.com/DoriftoShoes/cbd27eae1f4c735a6dee/raw/stackstorm_install.sh

If you would like to start a StackStorm instance from the launcher, you will need to fork this gist and then use a URL for it that looks like this:

https://gist.githubusercontent.com/DoriftoShoes/cbd27eae1f4c735a6dee/raw/stackstorm.json

Be sure to put your SSH key in the first ssh_keys array string after you fork the gist!

#!/bin/bash
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "You need to be 'root' dude." 1>&2
exit 1
fi
clear
echo;
echo "##########################################################################################
This script is installing and configuring StackStorm for demo purposes.
##########################################################################################
";
echo;
cd /tmp
curl -sS -k -O https://ops.stackstorm.net/releases/st2/scripts/st2_deploy.sh
bash st2_deploy.sh
st2ctl restart
sleep 10
# update the meta data on the pool directly
. /etc/utterio
curl -X PUT -d '{"stackstorm": "installed"}' $MY_POOL_API_ADDRESS
echo;
echo "##########################################################################################
StackStorm setup complete.
##########################################################################################
";
echo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment