From 0d19eef530a7b61158c614890ca2cf0d761638fa Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 20 Aug 2014 13:04:39 -0700 Subject: [PATCH] Install bundler from gems. Previously on Debian based machines we attempted to install bundler from apt and from gems. This worked on precise because the two package names are different. It does not work on trusty because the package names are the same and puppet complains that the namevar is duplicated and fails. Fix this by removing all apt based bundler instalations. We will install it only from gems and only on "thick" slaves. We do not need this on devstack slaves because devstack can install it for itself if it needs it. Note, this changes the path to the `bundle` executable. We were using it out of /usr/bin/bundle but a gem install will go in /usr/local/bin/bundle on ubuntu and /usr/bin/bundle on centos. To keep the chef jobs happy with this remove the explicit paths to bundle and rely on $PATH to find it for us regardless of the platform. Change-Id: Ic1f2158b923c5116f473f5d21250da69809b292d --- manifests/params.pp | 9 --------- manifests/slave.pp | 4 ---- 2 files changed, 13 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 97b70a0..210bfcc 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -55,15 +55,6 @@ class jenkins::params { $memcached_package = 'memcached' $ruby1_9_1_package = 'ruby1.9.1' $ruby1_9_1_dev_package = 'ruby1.9.1-dev' - - # will install ruby-bundler for Ubuntu Precise - # and bundler for Debian or newer Ubuntu distros - if $::lsbdistcodename == 'precise' { - $ruby_bundler_package = 'ruby-bundler' - } - else { - $ruby_bundler_package = 'bundler' - } $php5_mcrypt_package = 'php5-mcrypt' # For [tooz, taskflow, nova] using zookeeper in unit tests $zookeeper_package = 'zookeeperd' diff --git a/manifests/slave.pp b/manifests/slave.pp index 10a648e..3400c9f 100644 --- a/manifests/slave.pp +++ b/manifests/slave.pp @@ -81,10 +81,6 @@ class jenkins::slave( ensure => present, } - package { $::jenkins::params::ruby_bundler_package: - ensure => present, - } - package { 'openjdk-6-jre-headless': ensure => purged, require => Package[$::jenkins::params::jdk_package],