summaryrefslogtreecommitdiff
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
parent9b0b7e0505d9bc5adeea389a9c8aeb833c4fc13d (diff)
downloadpuppet-reprepro-8541128ae289f2be0a5a3a4955204d801ad95717.tar.gz
puppet-reprepro-8541128ae289f2be0a5a3a4955204d801ad95717.tar.bz2
Checking for $reprepro_uploaders
-rw-r--r--manifests/init.pp4
-rw-r--r--templates/uploaders.erb2
2 files changed, 5 insertions, 1 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,
diff --git a/templates/uploaders.erb b/templates/uploaders.erb
index 560e3ce..ce5897d 100644
--- a/templates/uploaders.erb
+++ b/templates/uploaders.erb
@@ -1,4 +1,4 @@
# reprepro uploaders, file managed by puppet
-<% reprepro_upladers.each do |uploader| -%>
+<% reprepro_uploaders.each do |uploader| -%>
allow * by key <%= uploader %>
<% end -%>