aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-20 13:43:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-20 13:43:03 -0300
commit10aebd67db68de28986bae28311347653c01d0d4 (patch)
tree80c7a39a3eb0f7b5bdcfb0a27df297d6016f09db
parent4fd6d4d1ae74fb2f53d3bb986691a5b0f87e1cd1 (diff)
downloadpuppet-git-10aebd67db68de28986bae28311347653c01d0d4.tar.gz
puppet-git-10aebd67db68de28986bae28311347653c01d0d4.tar.bz2
Use cgit only if not on wheezy
-rw-r--r--manifests/cgit.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/cgit.pp b/manifests/cgit.pp
index 0430190..07e664e 100644
--- a/manifests/cgit.pp
+++ b/manifests/cgit.pp
@@ -2,6 +2,9 @@
# http://ao2.it/en/blog/2011/05/06/migrate-gitweb-cgit-url-rewrite-rules
class git::cgit {
package { 'cgit':
- ensure => present,
+ ensure => $::lsbdistcodename ? {
+ 'wheezy' => absent,
+ default => present,
+ }
}
}