From 5fe0618c40e2d10a221ca38d8746c36db83ac58a Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 29 Nov 2012 09:48:44 -0800 Subject: [PATCH] Protect install of every jeepyb package. Because puppet sucks at installing packages, wrap the installation of everything that jeepyb needs in both jeepyb and in other places with if blocks. *facepalm* Change-Id: I69c73dabc3ea5d68bd057141b1ad758cdd68eafc Reviewed-on: https://review.openstack.org/17130 Reviewed-by: James E. Blair Reviewed-by: Clark Boylan Approved: Monty Taylor Tested-by: Jenkins --- manifests/init.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index f9023b8..fddbec3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,8 +7,7 @@ class lodgeit { 'python-werkzeug', 'python-simplejson', 'python-pygments', - 'drizzle', - 'python-mysqldb' ] + 'drizzle'] include apache @@ -24,6 +23,12 @@ class lodgeit { ensure => present, } + if ! defined(Package['python-mysqldb']) { + package { 'python-mysqldb': + ensure => present, + } + } + package { 'SQLAlchemy': ensure => present, provider => pip,