diff --git a/manifests/params.pp b/manifests/params.pp index a529936..1e1d8d0 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -18,6 +18,9 @@ # Printer Options $printer = true + # Other + $strict_locking = yes + # Winbind $workgroup = undef $passwd_server = undef diff --git a/manifests/server.pp b/manifests/server.pp index ef465db..3a05861 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -19,6 +19,9 @@ # Printer Options $printer = $samba::params::printer, + # Other + $strict_locking = $samba::params::strict_locking, + # Service $service_name = $samba::params::service_name, $service_ensure = $samba::params::service_ensure, diff --git a/templates/smb.conf.erb b/templates/smb.conf.erb index 01fdcd0..5fe7f04 100644 --- a/templates/smb.conf.erb +++ b/templates/smb.conf.erb @@ -61,3 +61,6 @@ hosts allow = <%= @hosts_allow.join(' ') %> <% end -%> # --------------------------- Filesystem Options --------------------------- +<% if @strict_locking -%> +strict locking = <%= @strict_locking %> +<% end -%>