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

Adding a variable to allow the declaration of the next-server IP #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

astritsinani
Copy link

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

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.

It would also be nice if there was a test for this.

templates/dhcpd.host.erb Outdated Show resolved Hide resolved
… 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'},
       }
define dhcp::host (
Optional[Stdlib::IP::Address] $ip = undef,
Dhcp::Mac $mac,
String $ddns_hostname = $name,
Hash $options = {},
Hash $parameters = {},
Copy link
Member

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?

Suggested change
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.

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.

Ideally there would be a test to verify this works.

@ekohl ekohl added the needs-work not ready to merge just yet label May 10, 2022
@vox-pupuli-tasks
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflicts needs-work not ready to merge just yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants