summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,