sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
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
#!/usr/bin/env bash | |
SSH_KEYFILE=`tempfile` | |
SSL_KEYFILE=`tempfile` | |
if ! curl -s -f http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key > $SSH_KEYFILE; then | |
echo "Failed to get key" | |
fi | |
cat $SSH_KEYFILE | |
PASSWORD=`openssl rand -base64 48 | tr -d '/+' | cut -c1-16` | |
sudo usermod ubuntu -p `openssl passwd -1 $PASSWORD` |
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
# Neutron | |
# To use nova-network, comment out the following | |
PRIVATE_NETWORK_NAME=net1 | |
PUBLIC_NETWORK_NAME=ext_net | |
Q_PLUGIN=ml2 | |
disable_service n-net | |
enable_service neutron q-svc q-agt | |
enable_service q-dhcp | |
enable_service q-l3 | |
enable_service q-meta |
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
from optparse import OptionParser | |
from threading import Thread | |
import subprocess | |
from Queue import Queue | |
def pinger(q): | |
while True: | |
_ip = q.get() | |
ret = subprocess.call("timeout 1 ping -c 1 %s >/dev/null && echo $_;" % _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
#!/bin/bash | |
echo "Network speed testing..." | |
cachefly=$( wget -O /dev/null http://cachefly.cachefly.net/100mb.test 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from CacheFly: $cachefly " | |
linodeatl=$( wget -O /dev/null http://atlanta1.linode.com/100MB-atlanta.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from Linode, Atlanta GA: $linodeatl " | |
linodedltx=$( wget -O /dev/null http://dallas1.linode.com/100MB-dallas.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from Linode, Dallas, TX: $linodedltx " | |
linodejp=$( wget -O /dev/null http://tokyo1.linode.com/100MB-tokyo.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) |
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
# If you are running more than one instances of graylog2-server you have to select one of these | |
# instances as master. The master will perform some periodical tasks that non-masters won't perform. | |
is_master = true | |
# The auto-generated node ID will be stored in this file and read after restarts. It is a good idea | |
# to use an absolute file path here if you are starting graylog2-server from init scripts or similar. | |
node_id_file = /etc/graylog2/server/node-id | |
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters. | |
# Generate one by using for example: pwgen -s 96 |
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
#System language | |
lang en_AU | |
#Language modules to install | |
langsupport en_AU | |
#System keyboard | |
keyboard us | |
#System mouse |
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 | |
fqdn=devstackctl | |
user=uvdc | |
# Install the OpenID Connect apache module | |
# not necessary, but will resolve any config errors when installing the module | |
sudo apt-get install libjansson4 libhiredis0.10 libcurl3 -y | |
sudo apt-get install -f -y | |
# TODO: figure out why v1.8.4 and 1.8.5 won't install |
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
[[local|localrc]] | |
#OFFLINE=True | |
RECLONE=True | |
HORIZON_BRANCH=stable/mitaka | |
KEYSTONE_BRANCH=stable/mitaka | |
NOVA_BRANCH=stable/mitaka | |
NEUTRON_BRANCH=stable/mitaka | |
GLANCE_BRANCH=stable/mitaka | |
CINDER_BRANCH=stable/mitaka |
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
[[local|localrc]] | |
#OFFLINE=True | |
RECLONE=True | |
#disable_service mysql | |
#enable_service postgresql | |
#disable_service cinder c-sch c-api c-vol | |
#disable_service tempest | |
#disable_service horizon |