I am new to Chef automation and working to set primary and secondary DNS address to a group of windows nodes using dsc_resource (xDnsServerAddress). I have a show stopper where the interface alias is different for different nodes. How to overcome the issue? Here is the code I have been using to implement this.
dsc_resource 'dns' do module_name 'xNetworking' resource :xDnsServerAddress property :AddressFamily, node['addressFamily'] property :InterfaceAlias, node['interfaceAlias'] property :Address, [node['primary'], node['secondary']] end