Skip to content

Commit

Permalink
Allow overriding the domain name per pool
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Feb 4, 2015
1 parent 3c1781b commit c4ea225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/pool.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$parameters = '',
$nameservers = undef,
$pxeserver = undef,
$domain_name = '',
) {

include dhcp::params
Expand Down
3 changes: 3 additions & 0 deletions templates/dhcpd.pool.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ subnet <%= @network %> netmask <%= @mask %> {
}
<% end -%>

<% if @domain_name and !@domain_name.empty? -%>
option domain-name <%= @domain_name %>;
<% end -%>
option subnet-mask <%= @mask %>;
<% if @gateway != '' -%>
option routers <%= @gateway %>;
Expand Down

0 comments on commit c4ea225

Please sign in to comment.