Skip to content

Instantly share code, notes, and snippets.

View andreslagarcavilla's full-sized avatar

Andres Lagar-Cavilla andreslagarcavilla

View GitHub Profile
# Setup for multi-node system with glance as storage backend
echo "gridcentric_use_image_service=true" | sudo tee -a /etc/nova/nova.conf
@andreslagarcavilla
andreslagarcavilla / setup.sh
Last active December 21, 2015 17:59 — forked from rui-lin/setup.sh
#!/bin/bash
function err { echo -e "error.\n$1" && exit 1; }
function usage {
echo "usage: sudo ./setup.sh <key> [full | no-horizon | compute-only]"
echo
echo "Required arguments:"
echo " <key> Gridcentric repository key"
echo
echo "Optional arguments:"
echo " full (Default) All in one installation"
#!/bin/bash
# How to use: Pass to cloud-init as user data, or run as a script. When
# port 80 is open, your cloud is ready.
set -e
MYIP=`ifconfig eth1 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
HEADNODE=${1:-$MYIP}