summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-08 13:02:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-08 13:02:41 -0300
commit8541128ae289f2be0a5a3a4955204d801ad95717 (patch)
tree4c9cf0695868d7e3c3507006a9157ce28498e7b0 /manifests/init.pp
parent9b0b7e0505d9bc5adeea389a9c8aeb833c4fc13d (diff)
Checking for $reprepro_uploaders
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 02a8794..92fc786 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,9 @@
class reprepro {
+ case $reprepro_uploaders {
+ '': { fail("You need the repository uploaders! Please set \$reprepro_uploaders in your config") }
+ }
+
$basedir = $reprepro_basedir ? {
'' => '/srv/reprepro',
default => $reprepro_basedir,