46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'manifests/host.pp', line 46
define dhcp::host (
Dhcp::Mac $mac,
Optional[Stdlib::IP::Address] $ip = undef,
String $ddns_hostname = $name,
Hash $options = {},
Optional[String[1]] $comment = undef,
Boolean $ignored = false,
Optional[Integer] $default_lease_time = undef,
Optional[Integer] $max_lease_time = undef,
Optional[String[1]] $ipxe_filename = undef,
Optional[String[1]] $ipxe_bootstrap = undef,
Optional[String[1]] $filename = undef,
Array[String[1]] $on_commit = [],
Array[String[1]] $on_release = [],
Array[String[1]] $on_expiry = [],
) {
$host = $name
include dhcp::params
$dhcp_dir = $dhcp::params::dhcp_dir
concat::fragment { "dhcp_host_${name}":
target => "${dhcp_dir}/dhcpd.hosts",
content => template('dhcp/dhcpd.host.erb'),
order => '10',
}
}
|