Skip to content
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

Merged
merged 1 commit into from
Mar 11, 2018

Conversation

sean797
Copy link
Member

@sean797 sean797 commented Feb 28, 2018

No description provided.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably much better.

@@ -283,7 +283,7 @@
$dhcp_managed = true
$dhcp_provider = 'isc'
$dhcp_subnets = []
$dhcp_interface = 'eth0'
$dhcp_interface = pick($facts['networking']['primary'], 'eth0')
Copy link
Member

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.

@sean797
Copy link
Member Author

sean797 commented Feb 28, 2018

Nice, thanks. Updated 👍

@ekohl
Copy link
Member

ekohl commented Feb 28, 2018

This just missed a8d37b6 even though I didn't upload yet. Will see what I do tomorrow.

@mmoll mmoll merged commit 197e4f7 into theforeman:master Mar 11, 2018
@mmoll
Copy link
Contributor

mmoll commented Mar 11, 2018

merged, thanks @sean797!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants