Skip to content

Commit

Permalink
added dhcp6.name-servers option to pool.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
alelindq committed Oct 20, 2016
1 parent 07f5ea9 commit 9c27d7d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
21 changes: 11 additions & 10 deletions manifests/pool.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
define dhcp::pool (
$network,
$mask,
$gateway = '',
$range = '',
$failover = '',
$options = '',
$parameters = '',
$nameservers = undef,
$pxeserver = undef,
$mtu = undef,
$domain_name = '',
$ignore_unknown = undef,
$gateway = '',
$range = '',
$failover = '',
$options = '',
$parameters = '',
$nameservers = undef,
$nameservers_ipv6 = undef,
$pxeserver = undef,
$mtu = undef,
$domain_name = '',
$ignore_unknown = undef,
) {
if $mtu {
validate_integer($mtu)
Expand Down
5 changes: 5 additions & 0 deletions templates/dhcpd.pool.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ subnet <%= @network %> netmask <%= @mask %> {
<% elsif @nameservers -%>
option domain-name-servers <%= @nameservers %>;
<% end -%>
<% if @nameservers_ipv6 and @nameservers_ipv6.is_a? Array -%>
option dhcp6.name-servers <%= @nameservers_ipv6.join(', ') %>;
<% elsif @nameservers_ipv6 -%>
option dhcp6.name-servers <%= @nameservers_ipv6 %>;
<% end -%>
<% if @pxeserver -%>
next-server <%= @pxeserver %>;
<% end -%>
Expand Down

0 comments on commit 9c27d7d

Please sign in to comment.