-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Adding a variable to allow the declaration of the next-server IP #241
base: master
Are you sure you want to change the base?
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.
It would also be nice if there was a test for this.
d01d98e
to
58c42f7
Compare
… used to specify the host address of the server from which the initial boot file (specified in the filename statement) is to be loaded (TFTP). Server-name is a numeric IP address on our primary DataCenter. Will be very helpful for us if this variable can be added and we can use fully the externale module: example: dhcpd::host { 'vh16-la': mac => 'AC:1F:6B:41:6C:FA', ip => 'vh16-la.vlan3', options => { 'host-name' => 'vh16-la'}, parameters => { 'next-server' => '192.168.3.253'}, }
58c42f7
to
618d9db
Compare
define dhcp::host ( | ||
Optional[Stdlib::IP::Address] $ip = undef, | ||
Dhcp::Mac $mac, | ||
String $ddns_hostname = $name, | ||
Hash $options = {}, | ||
Hash $parameters = {}, |
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.
Would this be a better suggestion?
Hash $parameters = {}, | |
Hash[String[1], Any] $parameters = {}, |
Rather than Any
it could also be String[1]
but I don't know if you also want to deal with Integer
.
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.
Ideally there would be a test to verify this works.
Dear @astritsinani, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
We use the parameters variable to have next-server statement which is used to specify the host address of the server from which the initial boot file (specified in the filename statement) is to be loaded (TFTP). Server-name is a numeric IP address on our primary DataCenter. Will be very helpful for us if this variable can be added and we can use fully the externale module:
example:
dhcpd::host { 'vh16-la':
mac => 'AC:1F:6B:41:6C:FA',
ip => 'vh16-la.vlan3',
options => { 'host-name' => 'vh16-la'},
parameters => { 'next-server' => '192.168.3.253'},
}
Thanks