#!/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=${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 # apt-get update needs to be run to be able (later) to install # ubuntu-cloud-keyring package with puppet /usr/bin/apt-get update else # disable SElinux # something is python-cffi is preventing Nova & Keystone to # correctly run when SElinux is enforced. See bug: # https://bugzilla.redhat.com/show_bug.cgi?id=1249685 # We use || true because if selinux is Disabled the following # command would fail /usr/sbin/setenforce 0 || true fi