]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding reprepro::disabled and reprepro::purged
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 12:35:35 +0000 (10:35 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 12:35:35 +0000 (10:35 -0200)
manifests/web.pp

index 66350aa275197441b4b0557772f21ab3386f5155..746aacd5f92a7281dc3920128c954562d017dd62 100644 (file)
@@ -18,15 +18,24 @@ class nodo::web inherits nodo::vserver {
 
       include reprepro::cron
     }
-    false: { }
-    default: {
-      class { 'reprepro':
+    'disabled': {
+      class { 'reprepro::disabled':
+        basedir   => '/var/reprepro',
+        uploaders => hiera('nodo::web::reprepro_uploaders', [ ]),
+      }
+
+      include reprepro::cron::disabled
+    }
+    'purged': {
+      class { 'reprepro::purged':
         basedir   => '/var/reprepro',
         uploaders => hiera('nodo::web::reprepro_uploaders', [ ]),
       }
 
       include reprepro::cron::disabled
     }
+    false,default: { }
+    }
   }
 
   $git_daemon = hiera('nodo::web::git_daemon', True)