summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-01-31 17:29:12 +0100
committerintrigeri <intrigeri@boum.org>2012-01-31 17:29:12 +0100
commitb405c63e103fd85e5fa9e3b2e8769ca11f317870 (patch)
treec0599ffd39c39c318f0d31d4b6c0e10d074c0638 /manifests/init.pp
parenta7f4bd43b5aed9c1b42aed044d495e8b0d557701 (diff)
Add $reprepro_incoming_mode variable.
This makes permissions of the reprepro incoming directory configurable.
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f7f0a34..4547538 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -28,6 +28,11 @@ class reprepro {
}
}
+ $incoming_mode = $reprepro_incoming_mode ? {
+ '' => 1777,
+ default => $reprepro_incoming_mode,
+ }
+
user { "reprepro":
ensure => "present",
home => "$basedir",
@@ -66,7 +71,7 @@ class reprepro {
"$basedir/incoming":
ensure => directory,
- mode => 1777, owner => reprepro, group => reprepro;
+ mode => $incoming_mode, owner => reprepro, group => reprepro;
"$basedir/logs":
ensure => directory,