windows cookbook version 3.1.1 chef client 13.2.20
Trying to create a window share on server 2016 with the following code.
include_recipe "windows"
directory 'c:\share' do
rights :full_control, "Administrators"
action :create
end
windows_share "share" do
action :create
path 'c:\share'
full_users ["Administrators"]
end
Chef creates the folder ok, but returns the following output on creation of the share:
Error executing action `create` on resource 'windows_share[share]'
=========================================================
Chef::Exceptions::ValidationFailed
----------------------------------
path is required
I clear have path set. Any ideas on why this would fail?
Reverting from windows 3.1.1 to windows 3.1.0 has addressed the issue altogether and I'm now able to create shares with windows_share.
Commit fc2691f changed the property to required instead of raising an exception that it was missing.