]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Use cgit only if not on wheezy
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 16:43:03 +0000 (13:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 16:43:03 +0000 (13:43 -0300)
manifests/cgit.pp

index 0430190988d0ebfd596dc5d4de6940f2d1d29614..07e664ee451f3582145c21e8e4c604776ac86396 100644 (file)
@@ -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,
+    }
   }
 }