-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
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
attempt a more accurate DNS/DHCP default interface #412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably much better.
manifests/params.pp
Outdated
@@ -283,7 +283,7 @@ | |||
$dhcp_managed = true | |||
$dhcp_provider = 'isc' | |||
$dhcp_subnets = [] | |||
$dhcp_interface = 'eth0' | |||
$dhcp_interface = pick($facts['networking']['primary'], 'eth0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Puppet 4 with Debian AIO you don't have networking facts so this may be an issue (Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value.
). Since we're on stdlib 4.19.0 we can rely on fact('networking.primary')
instead which returns undef but doesn't raise an error on undefined index thus solving the problem.
4a7293c
to
c6c43af
Compare
Nice, thanks. Updated 👍 |
This just missed a8d37b6 even though I didn't upload yet. Will see what I do tomorrow. |
merged, thanks @sean797! |
No description provided.