Skip to content

Commit 5994e49

Browse files
committed
Add use_chroot option to modules
1 parent 295cfce commit 5994e49

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

manifests/server/module.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# for logging file transfers when transfer logging is enabled. See the
2626
# rsyncd.conf documentation for more details.
2727
# $refuse_options - list of rsync command line options that will be refused by your rsync daemon.
28+
# $use_chroot - yes||no, defaults to undef
2829
#
2930
# sets up an rsync server
3031
#
@@ -59,7 +60,8 @@
5960
$transfer_logging = undef,
6061
$log_format = undef,
6162
$refuse_options = undef,
62-
$ignore_nonreadable = undef) {
63+
$ignore_nonreadable = undef,
64+
$use_chroot = undef) {
6365

6466
concat::fragment { "frag-${name}":
6567
content => template('rsync/module.erb'),

templates/module.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ write only = <%= @write_only %>
88
list = <%= @list %>
99
uid = <%= @uid %>
1010
gid = <%= @gid %>
11+
<% if @use_chroot -%>
12+
use chroot = <%= @use_chroot %>
13+
<% end -%>
1114
<% if @incoming_chmod -%>
1215
incoming chmod = <%= @incoming_chmod %>
1316
<% end -%>

0 commit comments

Comments
 (0)