add a service dependency on the reprepro package, without it, the following can occur:
authorMicah Anderson <micah@riseup.net>
Wed, 6 Feb 2013 19:42:04 +0000 (14:42 -0500)
committerMicah Anderson <micah@riseup.net>
Wed, 6 Feb 2013 19:42:04 +0000 (14:42 -0500)
err: /Stage[main]/Reprepro/Service[reprepro]: Could not evaluate: Could not find init script for 'reprepro'

manifests/init.pp

index 9b76884..39201ef 100644 (file)
@@ -181,7 +181,7 @@ class reprepro (
     ensure  => $inoticoming_enabled,
     enable  => $inoticoming_enabled,
     pattern => 'inoticoming.*reprepro.*processincoming',
-    require => [ Package['inoticoming'],
+    require => [ Package['reprepro'], Package['inoticoming'],
                  File['/etc/default/reprepro'],
                  File['/etc/init.d/reprepro'],
                  File["$basedir/incoming"] ],