I am trying to add something to the hostfile of my node through the chef cookbook and my node is a Windows Server.
I am using the following cookbook
hostsfile_entry ‘18.104.22.168’ do
But when I upload this cookbook and run chef-client on my Windows node it says " No such file or directory @ rb_sysopen - /etc/hosts". Is it because this cookbook is only for linux machine and not for Windows.