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
This commit is contained in:
Jeremy Stanley 2013-09-12 18:55:58 +00:00 committed by Monty Taylor
parent 4f5192e0a6
commit 3fe38a8635

View File

@ -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) {