aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-19 18:15:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-19 18:15:21 -0300
commit4bf4de5ffa79bd0cdde7845ab37c641e43dd2e2f (patch)
tree271b9dbecb2637df1d5732cde590650270c5d99a
parente6f1bc67ca9a86dce0b17eb624c103e8ea702d2b (diff)
downloadpuppet-git-4bf4de5ffa79bd0cdde7845ab37c641e43dd2e2f.tar.gz
puppet-git-4bf4de5ffa79bd0cdde7845ab37c641e43dd2e2f.tar.bz2
Gitolite package name varies depending on lsbdistcodename
-rw-r--r--manifests/gitolite.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/gitolite.pp b/manifests/gitolite.pp
index 64220c1..d5f448d 100644
--- a/manifests/gitolite.pp
+++ b/manifests/gitolite.pp
@@ -28,7 +28,13 @@ class git::gitolite inherits git {
}
# the needed packages
- package { "gitolite3": ensure => installed }
+ package { "gitolite":
+ name => $::lsbdistcodename ? {
+ 'wheezy' => 'gitolite',
+ default => 'gitolite3',
+ },
+ ensure => installed
+ }
# make sure this is not installed
package { "gitosis": ensure => purged }