Skip to content

Instantly share code, notes, and snippets.

View andreslagarcavilla's full-sized avatar

Andres Lagar-Cavilla andreslagarcavilla

View GitHub Profile
@andreslagarcavilla
andreslagarcavilla / yajl.spec.patch
Created October 3, 2013 03:02
Patch for yajl.SPEC in order to get a proper rpm for the XenServer 6.2 build system
--- yajl.spec.orig 2010-01-11 17:36:13.000000000 +0000
+++ yajl.spec 2013-10-03 02:37:09.416414315 +0000
@@ -36,6 +36,7 @@
%package devel
Summary: Libraries, includes, etc to develop with YAJL
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description
# 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}