chef icon indicating copy to clipboard operation
chef copied to clipboard

windows_share is not idempotent when using local groups

Open xorima opened this issue 5 years ago • 0 comments

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.

xorima avatar Jan 20 '20 14:01 xorima