diff --git a/manifests/host.pp b/manifests/host.pp index 87c5d6f55..b750c1b59 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -1,7 +1,7 @@ # == Define: dhcp::host # define dhcp::host ( - Optional[Stdlib::IP::Address] $ip = undef, + Optional[Stdlib::Host] $ip = undef, Dhcp::Mac $mac, String $ddns_hostname = $name, Hash $options = {}, diff --git a/manifests/pool.pp b/manifests/pool.pp index 48b0f666d..f9bbd7867 100644 --- a/manifests/pool.pp +++ b/manifests/pool.pp @@ -14,6 +14,7 @@ Optional[Integer] $mtu = undef, String $domain_name = '', $ignore_unknown = undef, + Optional[Integer] $max_lease_time = undef, ) { include dhcp::params diff --git a/templates/dhcpd.pool.erb b/templates/dhcpd.pool.erb index 0114019c4..72aa3f5ff 100644 --- a/templates/dhcpd.pool.erb +++ b/templates/dhcpd.pool.erb @@ -12,6 +12,9 @@ subnet <%= @network %> netmask <%= @mask %> { <% if @ignore_unknown == true -%> ignore unknown-clients ; <% end -%> +<% if @max_lease_time -%> + max-lease-time <%= @max_lease_time %>; +<% end -%> <% if @range and @range.is_a? Array -%> <% @range.each do |r| -%> range <%= r %>;