$follow_symlinks = '',
$wide_links = '',
$map_acl_inherit = '',
+ $profile_acls = '',
$store_dos_attributes = '',
$strict_allocate = '',
$hide_dot_files = '',
false => "set \"${target}/map acl inherit\" no",
default => "rm \"${target}/map acl inherit\"",
},
+ $profile_acls ? {
+ true => "set \"${target}/profile acls\" yes",
+ false => "set \"${target}/profile acls\" no",
+ default => "rm \"${target}/profile acls\"",
+ },
$store_dos_attributes ? {
true => "set \"${target}/store dos attributes\" yes",
false => "set \"${target}/store dos attributes\" no",
set.with("follow symlinks")
set.with("wide links")
set.with("map acl inherit")
+ set.with("profile acls")
set.with("store dos attributes")
set.with("strict allocate")
set.with("valid users")
let(:change_set) { default_changes.with("map acl inherit", "no") }
end
+ context 'with profile_acls set to true' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :profile_acls => true,
+ }}
+ let(:change_set) { default_changes.with("profile acls", "yes") }
+ end
+
+ context 'with profile_acls set to false' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :profile_acls => false,
+ }}
+ let(:change_set) { default_changes.with("profile acls", "no") }
+ end
+
context 'with store_dos_attributes set to true' do
include_examples "default share"
let(:params) {{