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

new parameters to increase config flexibility #10

Open
wants to merge 1 commit into
base: master
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
6 changes: 6 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
$ascii_upload_enable = 'NO',
$ascii_download_enable = 'NO',
$ftpd_banner = undef,
$guest_enable = 'NO',
$virtual_use_local_privs = 'YES',
$log_ftp_protocol = 'NO',
# intentionally not interpolated
$user_sub_token = '$USER',
$local_root = '/ftp/virtual/$USER',
$chroot_local_user = 'NO',
$chroot_list_enable = 'NO',
$chroot_list_file = '/etc/vsftpd/chroot_list',
Expand Down
20 changes: 19 additions & 1 deletion templates/vsftpd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@ anonymous_enable=<%= @anonymous_enable %>
#
# Uncomment this to allow local users to log in.
local_enable=<%= @local_enable %>
#

# If enabled, all non-anonymous logins are classed as "guest" logins. i
# A guest login is remapped to the user specified in the guest_username setting.
guest_enable=<%= @guest_enable %>

# If enabled, virtual users will use the same privileges as local users.
# By default, virtual users will use the same privileges as anonymous users,
# which tends to be more restrictive (especially in terms of write access).
virtual_use_local_privs=<%=@virtual_use_local_privs%>

# It is used to automatically generate a home directory for each virtual user, based on a template.
user_sub_token=<%=@user_sub_token%>

# This option represents a directory which vsftpd will try to change into after a local (i.e. non-anonymous) login.
local_root=<%=@local_root%>

# When enabled, all FTP requests and responses are logged, providing the option xferlog_std_format is not enabled. Useful for debugging.
log_ftp_protocol=<%=@log_ftp_protocol%>

# Uncomment this to enable any form of FTP write command.
write_enable=<%= @write_enable %>
#
Expand Down