Skip to content

Commit

Permalink
Allow gateway to be unset for private networks
Browse files Browse the repository at this point in the history
  • Loading branch information
GregSutcliffe committed Jun 3, 2013
1 parent 1a170ce commit 7740905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion installer_puppet/dhcp/manifests/pool.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$network,
$mask,
$range = false,
$gateway
$gateway = false
) {

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

option subnet-mask <%= mask %>;
<% if gateway -%>
option routers <%= gateway %>;
<% end -%>
}

0 comments on commit 7740905

Please sign in to comment.