Skip to content

Commit

Permalink
Merge pull request #48 from ekohl/allow-domain-name-override
Browse files Browse the repository at this point in the history
Allow overriding the domain name per pool
  • Loading branch information
Morgan Haskel committed Feb 6, 2015
2 parents 9d281b3 + c4ea225 commit cdad922
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 cdad922

Please sign in to comment.