summaryrefslogtreecommitdiff
path: root/manifests
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
parent9b0b7e0505d9bc5adeea389a9c8aeb833c4fc13d (diff)
downloadpuppet-reprepro-8541128ae289f2be0a5a3a4955204d801ad95717.tar.gz
puppet-reprepro-8541128ae289f2be0a5a3a4955204d801ad95717.tar.bz2
Checking for $reprepro_uploaders
Diffstat (limited to 'manifests')
-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,