Defined Type: dhcp::pool6

Defined in:
manifests/pool6.pp

Summary

Define a dhcp-pool for IPv6 networks

Overview

Parameters:

  • network (Stdlib::IP::Address::V6)
  • prefix (Integer)
  • range (Optional[Variant[Array[String[1],1],String[1]]]) (defaults to: undef)
  • range_temp (Optional[String[1]]) (defaults to: undef)
  • failover (Optional[String[1]]) (defaults to: undef)
  • options (Optional[Variant[Array[String[1]],String[1]]]) (defaults to: undef)
  • parameters (Optional[Variant[Array[String[1]],String[1]]]) (defaults to: undef)
  • sharednetwork (Optional[String[1]]) (defaults to: undef)
  • nameservers (Optional[Array[String]]) (defaults to: undef)
  • nameservers_ipv6 (Optional[Array[String]]) (defaults to: undef)
  • pxeserver (Optional[String]) (defaults to: undef)
  • mtu (Optional[Integer]) (defaults to: undef)
  • domain_name (Optional[String[1]]) (defaults to: undef)
  • ignore_unknown (Any) (defaults to: undef)
  • on_commit (Array[String[1]]) (defaults to: [])
  • on_release (Array[String[1]]) (defaults to: [])
  • on_expiry (Array[String[1]]) (defaults to: [])


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/pool6.pp', line 4

define dhcp::pool6 (
  Stdlib::IP::Address::V6 $network,
  Integer $prefix,
  Optional[Variant[Array[String[1],1],String[1]]] $range = undef,
  Optional[String[1]] $range_temp           = 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_pool6_${name}":
    target  => "${dhcp_dir}/dhcpd.pools",
    content => template('dhcp/dhcpd.pool6.erb'),
    order   => "10 ${sharednetwork}-10",
  }

  if $sharednetwork {
    Dhcp::Sharednetwork[$sharednetwork] -> Concat::Fragment["dhcp_pool6_${name}"]
  }
}