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 <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Monty Taylor 2012-11-29 09:48:44 -08:00 committed by Jenkins
parent 52db16762b
commit 5c5033cbc7
3 changed files with 23 additions and 9 deletions

View File

@ -3,13 +3,17 @@
class jeepyb (
$git_source_repo = 'https://github.com/openstack-ci/jeepyb.git',
) {
$packages = [
'python-mysqldb',
'python-paramiko',
]
package { $packages:
ensure => present,
if ! defined(Package['python-mysqldb']) {
package { 'python-mysqldb':
ensure => present,
}
}
if ! defined(Package['python-paramiko']) {
package { 'python-paramiko':
ensure => present,
}
}
if ! defined(Package['Pygithub']) {

View File

@ -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,

View File

@ -15,7 +15,6 @@ class zuul (
'python-webob',
'python-daemon',
'python-lockfile',
'python-paramiko',
'python-paste',
]
@ -31,6 +30,12 @@ class zuul (
}
}
if ! defined(Package['python-paramiko']) {
package { 'python-paramiko':
ensure => present,
}
}
# Packages that need to be installed from pip
$pip_packages = [
'GitPython',