-
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
Add dhcp options to allow overrides #422
Conversation
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)
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.
I like explicit parameters for this.
manifests/init.pp
Outdated
@@ -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 |
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.
Could you add that it will determine the network based on dhcp_interface
when it's undef? Same for netmask.
manifests/init.pp
Outdated
@@ -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, |
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.
This has a default so it can be String
type to String (there is a default)
Will let the tests complete before merging. Note to self: this needs a squash on merge. |
Thanks! |
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)