From 5bfb2c0b90ccf4c3be801042a8ffea6d4aa30b04 Mon Sep 17 00:00:00 2001
From: Daneyon Hansen <danehans@cisco.com>
Date: Mon, 18 May 2015 21:52:28 +0000
Subject: [PATCH] Updates Heat template to Support Magnum

Previously, the Heat module did not support Magnum. Installing
from source until pkgs are available.

Change-Id: Ia83af5b811e5a113be91205671809960b24e8eff
---
 devenv/kollanode.yaml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/devenv/kollanode.yaml b/devenv/kollanode.yaml
index e213ef3c22..3116e34a33 100644
--- a/devenv/kollanode.yaml
+++ b/devenv/kollanode.yaml
@@ -159,7 +159,7 @@ resources:
             chkconfig network on
 
             # Install base packages
-            yum -y install wget ntp git tcpdump python-pip
+            yum -y install wget ntp git tcpdump python-pip python-devel
 
             # Install Docker from binaries due to:
             # https://github.com/docker/docker/issues/11760#issuecomment-88288278
@@ -196,6 +196,15 @@ resources:
             service firewalld stop
             chkconfig firewalld off
 
+            # Install Magnum Client
+            git clone http://github.com/openstack/python-magnumclient
+            cd python-magnumclient
+            sudo pip install -e .
+
+            # Install Magnum Client Deps
+            # TODO remove when fixed: https://bugs.launchpad.net/python-magnumclient/+bug/1456360
+            sudo pip install oslo.serialization
+
             # Send the CFN signal
             cfn-signal -e0 --data 'OK' -r 'Setup complete' '$WAIT_HANDLE'
           params: