diskimage-builder/elements/heat-jeos/install.d/05-heat-jeos
Clint Byrum 041f04a836 Add an element to install the HEAT JEOS tools.
Change-Id: Id1d96479142dbfbba2265ab8ec5f242146a03b19
2012-12-19 06:09:39 -08:00

21 lines
426 B
Bash
Executable File

#!/bin/sh
set -uex
CFN_TOOLS_ROOT=/opt/aws/bin # Heat hard codes this
HEAT_API_SOURCE=https://github.com/heat-api/heat-jeos.git
OS_ROOT=/opt/stack
JEOS_ROOT=$OS_ROOT/heat-jeos
DEBIAN_FRONTEND=noninteractive apt-get -y install git-core python-psutil
mkdir -p $OS_ROOT
git clone $HEAT_API_SOURCE $JEOS_ROOT
cd $JEOS_ROOT
git checkout master
mkdir -p $CFN_TOOLS_ROOT
ln -sf $JEOS_ROOT/heat_jeos/cfntools/* $CFN_TOOLS_ROOT