Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fake_super option #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$use_chroot = 'yes',
$uid = 'nobody',
$gid = 'nobody',
$fake_super = undef,
$modules = {},
) inherits rsync {

Expand Down
4 changes: 3 additions & 1 deletion manifests/server/module.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# $exclude - list of files to exclude
# $exclude_from - file containing a list of files to exclude
# $dont_compress - disable compression on matching files
# $fake_super - yes||no, store permission information in extended attributes, to allow running rsyncd as an unprivileged user
#
# sets up an rsync server
#
Expand Down Expand Up @@ -77,7 +78,8 @@
$exclude = undef,
$exclude_from = undef,
$dont_compress = undef,
$ignore_nonreadable = undef) {
$ignore_nonreadable = undef,
$fake_super = undef) {

concat::fragment { "frag-${name}":
content => template('rsync/module.erb'),
Expand Down
3 changes: 3 additions & 0 deletions templates/header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ address = <%= @address %>
<% if @motd_file != 'UNSET' -%>
motd file = <%= @motd_file %>
<% end -%>
<% if @fake_super -%>
fake super = <%= @fake_super %>
<% end -%>
3 changes: 3 additions & 0 deletions templates/module.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ exclude from = <%= @exclude_from%>
<% if @dont_compress -%>
dont compress = <%= Array(@dont_compress).join(' ')%>
<% end -%>
<% if @fake_super -%>
fake super = <%= @fake_super %>
<% end -%>