diff options
author | intrigeri <intrigeri@boum.org> | 2012-01-31 17:29:12 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-01-31 17:29:12 +0100 |
commit | b405c63e103fd85e5fa9e3b2e8769ca11f317870 (patch) | |
tree | c0599ffd39c39c318f0d31d4b6c0e10d074c0638 | |
parent | a7f4bd43b5aed9c1b42aed044d495e8b0d557701 (diff) |
Add $reprepro_incoming_mode variable.
This makes permissions of the reprepro incoming directory configurable.
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | manifests/init.pp | 7 |
2 files changed, 16 insertions, 1 deletions
@@ -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, |