summaryrefslogtreecommitdiff
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
parenta7f4bd43b5aed9c1b42aed044d495e8b0d557701 (diff)
Add $reprepro_incoming_mode variable.
This makes permissions of the reprepro incoming directory configurable.
-rw-r--r--README10
-rw-r--r--manifests/init.pp7
2 files changed, 16 insertions, 1 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..b045065
--- /dev/null
+++ b/README
@@ -0,0 +1,10 @@
+Variables
+=========
+
+$reprepro_incoming_mode
+-----------------------
+
+This module manages the reprepro incoming directory and sets its
+permissions to $reprepro_incoming_mode.
+
+Default: 1777
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,