From a4fdffdb6685b165a70f9507e92dc5202ce6abd7 Mon Sep 17 00:00:00 2001 From: John Dewey Date: Fri, 10 May 2013 11:20:14 -0700 Subject: [PATCH] Added ruby 1.9.1 packages Install ruby 1.9.1 packages to jenkins slaves. Necessary for running OpenStack ChefSpec cookbook tests. Fixes: bug #1178516 Change-Id: Ibb31ea3e24bf837a7b05a8540854410dbc921b72 Reviewed-on: https://review.openstack.org/28820 Reviewed-by: Jeremy Stanley Reviewed-by: Clark Boylan Reviewed-by: James E. Blair Approved: Clark Boylan Tested-by: Jenkins --- modules/jenkins/manifests/params.pp | 3 +++ modules/jenkins/manifests/slave.pp | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/modules/jenkins/manifests/params.pp b/modules/jenkins/manifests/params.pp index 8a678610ac..20822f792c 100644 --- a/modules/jenkins/manifests/params.pp +++ b/modules/jenkins/manifests/params.pp @@ -79,6 +79,9 @@ class jenkins::params { $python_zmq_package = 'python-zmq' $python3_dev_package = 'python3-all-dev' $rubygems_package = 'rubygems' + $ruby1_9_1_package = 'ruby1.9.1' + $ruby1_9_1_dev_package = 'ruby1.9.1-dev' + $ruby_bundler_package = 'ruby-bundler' $sqlite_package = 'sqlite3' $unzip_package = 'unzip' $xslt_package = 'xsltproc' diff --git a/modules/jenkins/manifests/slave.pp b/modules/jenkins/manifests/slave.pp index 99adda761b..26f1b4c373 100644 --- a/modules/jenkins/manifests/slave.pp +++ b/modules/jenkins/manifests/slave.pp @@ -90,6 +90,18 @@ class jenkins::slave( ensure => present, } + package { $::jenkins::params::ruby1_9_1_package: + ensure => present, + } + + package { $::jenkins::params::ruby1_9_1_dev_package: + ensure => present, + } + + package { $::jenkins::params::ruby_bundler_package: + ensure => present, + } + } default: { fail("Unsupported osfamily: ${::osfamily} The 'jenkins' module only supports osfamily Debian or RedHat (slaves only).")