We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for working this! I've read through the docs a couple times and I can't seem to actually find a way to set DNS servers. Am I just being dense?
The text was updated successfully, but these errors were encountered:
I've not tested it, but looking through the code, you might be able to use the options parameter?
options
network_config { 'eth0': ... options => {'DNS1' => '4.2.2.2'}, }
Sorry, something went wrong.
@alexjfisher thanks! will give it a try later today.
This won't work for a network bond because the options variable is passed to the BONDING_OPTS parameter.
i resolved this issue with, for example
$intf = 'eth0' $ns = ['127.0.0.1' '1.1.1.1'] network_config { $intf: options => {'dns-nameservers' => $ns.join('')}, }
No branches or pull requests
Thanks for working this! I've read through the docs a couple times and I can't seem to actually find a way to set DNS servers. Am I just being dense?
The text was updated successfully, but these errors were encountered: