chef
chef copied to clipboard
windows_share is not idempotent when using local groups
Description
The resource windows_share is not idempotent when using local groups
Chef Version
14.12.9
Platform Version
Windows 2016
Replication Case
directory 'C:\foo' do
recursive true
rights :modify, "#{node['hostname']}\\mygroup"
end
windows_share 'foo' do
path 'C:\foo'
read_users "#{node['hostname']}\\mygroup"
change_users "#{node['hostname']}\\mygroup"
end
Client Output
* directory[C:\foo] action create (up to date)
* windows_share[foo] action create
- update foo
- set change_users to ["WIN-4EVKS4M49GI\\mygroup"] (was ["mygroup"])
- set read_users to ["WIN-4EVKS4M49GI\\mygroup"] (was ["mygroup"])
It appears that the return is bringing back just the group name where the set has to have the server name for local groups to work.