Puppet Class: dhcp::failover

Defined in:
manifests/failover.pp

Summary

Manage a DHCP failover config

Overview

Parameters:

  • peer_address (Any)
  • role (Any) (defaults to: 'primary')
  • address (Any) (defaults to: $facts['networking']['ip'])
  • port (Any) (defaults to: '519')
  • max_response_delay (Any) (defaults to: '30')
  • max_unacked_updates (Any) (defaults to: '10')
  • mclt (Any) (defaults to: '300')
  • load_split (Any) (defaults to: '128')
  • load_balance (Any) (defaults to: '3')
  • omapi_key (Optional[String[1]]) (defaults to: undef)
  • dhcp_dir (Any) (defaults to: $dhcp::dhcp_dir)
  • dhcpd_conf_filename (Any) (defaults to: $dhcp::dhcpd_conf_filename)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/failover.pp', line 3

class dhcp::failover (
  $peer_address,
  $role                 = 'primary',
  $address              = $facts['networking']['ip'],
  $port                 = '519',
  $max_response_delay   = '30',
  $max_unacked_updates  = '10',
  $mclt                 = '300',
  $load_split           = '128',
  $load_balance         = '3',
  Optional[String[1]] $omapi_key = undef,
  $dhcp_dir             = $dhcp::dhcp_dir,
  $dhcpd_conf_filename  = $dhcp::dhcpd_conf_filename,
) {
  concat::fragment { 'dhcp-conf-failover':
    target  => "${dhcp_dir}/${dhcpd_conf_filename}",
    content => template('dhcp/dhcpd.conf.failover.erb'),
  }
}