Hi,
I'm trying to enforce the DNS configuration on my windows machine using
cfengine and the ms_registry feature.
What I need to do is go through every adapters, and set the value of the
NameServer.
The list of adapter are the subkeys of
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
And the value to set are in the corresponding subkeys of
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
Is there a way to read the subkeys of the first, to update the later ? Or,
at worst, have a regexp so that I could do something like this :
bundle agent set_dns
{
databases:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\.*"
database_operation => "verify",
database_type => "ms_registry",
database_rows => { "NameServer,REG_SZ,8.8.8.8"};
}
Regards,
Nicolas
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine