From 3fe38a86358304a1c52bf45ed734e51b2c565a9f Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 12 Sep 2013 18:55:58 +0000 Subject: [PATCH] Puppet the Gerrit bcprov and mysql-connector deps * modules/gerrit/manifests/init.pp: The gerrit installer adds jarfiles for bcprov and mysql-connector into its lib directory, but puppet needs to know how to add them itself. Change-Id: Id61260d0d28f1aadf85dc8604688b0131cddf682 --- modules/gerrit/manifests/init.pp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modules/gerrit/manifests/init.pp b/modules/gerrit/manifests/init.pp index 630d60b939..b5f9eccac3 100644 --- a/modules/gerrit/manifests/init.pp +++ b/modules/gerrit/manifests/init.pp @@ -523,6 +523,38 @@ class gerrit( ensure => absent, } + package { 'libmysql-java': + ensure => present, + } + file { '/home/gerrit2/review_site/lib/mysql-connector-java.jar': + ensure => link, + target => '/usr/share/java/mysql-connector-java.jar', + require => [ + package['libmysql-java'], + file['/home/gerrit2/review_site/lib'], + ], + } + file { '/home/gerrit2/review_site/lib/mysql-connector-java-5.1.10.jar': + ensure => absent, + require => file['/home/gerrit2/review_site/lib/mysql-connector-java.jar'], + } + + package { 'libbcprov-java': + ensure => present, + } + file { '/home/gerrit2/review_site/lib/bcprov.jar': + ensure => link, + target => '/usr/share/java/bcprov.jar', + require => [ + package['libbcprov-java'], + file['/home/gerrit2/review_site/lib'], + ], + } + file { '/home/gerrit2/review_site/lib/bcprov-jdk16-144.jar': + ensure => absent, + require => file['/home/gerrit2/review_site/lib/bcprov.jar'], + } + # Install Bouncy Castle's OpenPGP plugin and populate the contact store # public key file if we're using that feature. if ($contactstore == true) {