summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-11-03 17:53:50 +0100
committerintrigeri <intrigeri@boum.org>2012-11-03 17:53:50 +0100
commit4b32cd454a6b3c6f553763efd764b87a7b1bfe5e (patch)
treeac6feab5a9ca190d6a1d24a36d5685a030cfaf77
parent2544b03095474f956c14e3a19537e4b5c793a402 (diff)
Have Puppet check mandatory class parameter is passed, rather than doing it by hand.
-rw-r--r--manifests/init.pp6
1 files changed, 1 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8ca8c37..a9b130d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,5 @@
class reprepro (
- $uploaders = 'undefined',
+ $uploaders,
$basedir = '/srv/reprepro',
$origin = $::domain,
$basedir_mode = '0771',
@@ -13,10 +13,6 @@ class reprepro (
"reprepro": ensure => 'installed';
}
- if $uploaders == 'undefined' {
- fail("The uploaders parameter is required by the reprepro class.")
- }
-
user { "reprepro":
ensure => "present",
home => "$basedir",