]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
Moving inoticoming definition to reprepro::inotify
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Jul 2011 00:57:23 +0000 (21:57 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Jul 2011 00:57:23 +0000 (21:57 -0300)
manifests/init.pp

index f7f0a3455379de359c36aac7302f55d51a47d830..28bf048bbbe0140cdc61dc102cca720e595a1dd0 100644 (file)
@@ -17,13 +17,11 @@ class reprepro {
     etch: { 
       package {
         "reprepro": ensure => '3.9.2-1~bpo40+1';
-        "inoticoming": ensure => '0.2.0-1~bpo40+1';
       }
     }
     default: {
       package {
         "reprepro": ensure => 'installed';
-        "inoticoming": ensure => 'installed';
       }
     }
   }
@@ -141,6 +139,19 @@ class reprepro::cron inherits reprepro {
 }
 
 class reprepro::inotify inherits reprepro {
+  case $lsbdistcodename {
+    etch: { 
+      package {
+        "inoticoming": ensure => '0.2.0-1~bpo40+1';
+      }
+    }
+    default: {
+      package {
+        "inoticoming": ensure => 'installed';
+      }
+    }
+  }
+
   file { "/etc/init.d/reprepro":
       owner => root, group => root, mode => 0755,
       source => "puppet://$server/modules/reprepro/inoticoming.init";