65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# File 'manifests/pool.pp', line 65
define dhcp::pool (
Stdlib::IP::Address::V4 $network,
Stdlib::IP::Address::V4 $mask,
Stdlib::IP::Address::V4 $host_mask = $mask,
Optional[String[1]] $gateway = undef,
Optional[Variant[Array[String[1],1],String[1]]] $range = undef,
Optional[String[1]] $failover = undef,
Optional[Variant[Array[String[1]],String[1]]] $options = undef,
Optional[Variant[Array[String[1]],String[1]]] $parameters = undef,
Optional[String[1]] $sharednetwork = undef,
Optional[Array[String]] $nameservers = undef,
Optional[Array[String]] $nameservers_ipv6 = undef,
Optional[String] $pxeserver = undef,
Optional[Integer] $mtu = undef,
Optional[String[1]] $domain_name = undef,
$ignore_unknown = undef,
Array[String[1]] $on_commit = [],
Array[String[1]] $on_release = [],
Array[String[1]] $on_expiry = [],
) {
include dhcp::params
$dhcp_dir = $dhcp::params::dhcp_dir
concat::fragment { "dhcp_pool_${name}":
target => "${dhcp_dir}/dhcpd.pools",
content => template('dhcp/dhcpd.pool.erb'),
order => "10 ${sharednetwork}-10",
}
if $sharednetwork {
Dhcp::Sharednetwork[$sharednetwork] -> Concat::Fragment["dhcp_pool_${name}"]
}
}
|