Skip to content

Commit

Permalink
Add use_chroot option to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
benohara committed May 31, 2017
1 parent 295cfce commit 5994e49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/server/module.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# for logging file transfers when transfer logging is enabled. See the
# rsyncd.conf documentation for more details.
# $refuse_options - list of rsync command line options that will be refused by your rsync daemon.
# $use_chroot - yes||no, defaults to undef
#
# sets up an rsync server
#
Expand Down Expand Up @@ -59,7 +60,8 @@
$transfer_logging = undef,
$log_format = undef,
$refuse_options = undef,
$ignore_nonreadable = undef) {
$ignore_nonreadable = undef,
$use_chroot = undef) {

concat::fragment { "frag-${name}":
content => template('rsync/module.erb'),
Expand Down
3 changes: 3 additions & 0 deletions templates/module.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ write only = <%= @write_only %>
list = <%= @list %>
uid = <%= @uid %>
gid = <%= @gid %>
<% if @use_chroot -%>
use chroot = <%= @use_chroot %>
<% end -%>
<% if @incoming_chmod -%>
incoming chmod = <%= @incoming_chmod %>
<% end -%>
Expand Down

0 comments on commit 5994e49

Please sign in to comment.