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

Add dhcp options to allow overrides #422

Merged
merged 2 commits into from
Apr 9, 2018

Conversation

lukealex
Copy link
Contributor

@lukealex lukealex commented Apr 9, 2018

  • pxefilename (defaults to pxelinux.0) - for example if it was desired to use lpxelinux.0
  • network (of the dhcp server, defaults to undef) - the pxeserver is already a variable so it seems reasonable to allow the network to also be variable
  • netmask (of the dhcp server, defaults to undef) - the pxeserver is already a variable so it seems reasonable to allow the netmask to also be variable

 - pxefilename (defaults to pxelinux.0)
 - network (of the dhcp server, defaults to undef)
 - netmask (of the dhcp server, defaults to undef)
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.

I like explicit parameters for this.

@@ -185,6 +185,12 @@
#
# $dhcp_pxeserver:: DHCP "next-server" value, defaults otherwise to IP of dhcp_interface
#
# $dhcp_pxefilename:: DHCP "filename" value, defaults otherwise to pxelinux.0
#
# $dhcp_network:: DHCP server network value, defaults otherwise to undef
Copy link
Member

Choose a reason for hiding this comment

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

Could you add that it will determine the network based on dhcp_interface when it's undef? Same for netmask.

@@ -370,6 +376,9 @@
Optional[String] $dhcp_gateway = $::foreman_proxy::params::dhcp_gateway,
Variant[Undef, Boolean, String] $dhcp_range = $::foreman_proxy::params::dhcp_range,
Optional[String] $dhcp_pxeserver = $::foreman_proxy::params::dhcp_pxeserver,
Optional[String] $dhcp_pxefilename = $::foreman_proxy::params::dhcp_pxefilename,
Copy link
Member

Choose a reason for hiding this comment

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

This has a default so it can be String

@ekohl
Copy link
Member

ekohl commented Apr 9, 2018

Will let the tests complete before merging. Note to self: this needs a squash on merge.

@ekohl ekohl merged commit 839944a into theforeman:master Apr 9, 2018
@ekohl
Copy link
Member

ekohl commented Apr 9, 2018

Thanks!

juliantodt pushed a commit to juliantodt/puppet-foreman_proxy that referenced this pull request Jun 25, 2018
Adding dhcp options to allow override of:
 - pxefilename (defaults to pxelinux.0)
 - network (of the dhcp server, defaults to undef)
 - netmask (of the dhcp server, defaults to undef)
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.

3 participants