From 041f04a8368d0a36865766e92ed027a2860bfd0c Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Wed, 12 Dec 2012 21:20:12 -0800 Subject: [PATCH] Add an element to install the HEAT JEOS tools. Change-Id: Id1d96479142dbfbba2265ab8ec5f242146a03b19 --- elements/heat-jeos/README.md | 3 +++ elements/heat-jeos/install.d/05-heat-jeos | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 elements/heat-jeos/README.md create mode 100755 elements/heat-jeos/install.d/05-heat-jeos diff --git a/elements/heat-jeos/README.md b/elements/heat-jeos/README.md new file mode 100644 index 00000000..d8c3142d --- /dev/null +++ b/elements/heat-jeos/README.md @@ -0,0 +1,3 @@ +Install the Heat JEOS "cfn" (for CloudFormation) tools to enable HEAT +templates to make use of advanced features of HEAT such as watches and +AWS::CloudFormation::Init diff --git a/elements/heat-jeos/install.d/05-heat-jeos b/elements/heat-jeos/install.d/05-heat-jeos new file mode 100755 index 00000000..ff2d906a --- /dev/null +++ b/elements/heat-jeos/install.d/05-heat-jeos @@ -0,0 +1,20 @@ +#!/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