#!/bin/bash set -ex if [ ! -z ${GEM_HOME} ]; then GEM_BIN_DIR=${GEM_HOME}/bin/ fi export SCRIPT_DIR=$(readlink -f "$(dirname $0)") export PUPPETFILE_DIR=/etc/puppet/modules install_external() { PUPPETFILE=${SCRIPT_DIR}/Puppetfile1 ${GEM_BIN_DIR}r10k puppetfile install -v } install_openstack() { cat > clonemap.yaml </dev/null; then sudo add-apt-repository -y ppa:ubuntu-cloud-archive/liberty-staging sudo apt-get update sudo apt-get install -y python-pymysql fi