aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 9af496ff9bbfed4ec8a4d99ddd845773a97d6211 (plain)
1
2
3
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
# Class: dhcp
#
# This class provides a simple way to install a DHCP server
# It will install and configure the necessary packages.
#
# Parameters:
#   ['server']               - Whether to install the DHCP server
#                              (default: true)
#   ['server_ddns_update']   - Set ddns_update on dhcp::server
#   ['server_authoritative'] - Set authoritative on dhcp::server
#   ['server_opts']          - Set opts for dhcp::server
#
# Actions:
#   - Deploys a DHCP server
#
# Sample usage:
#   include ::dhcp
#
# Requires:
#   - puppetlabs/stdlib
#   - ripienaar/concat
#
class dhcp (
  $server = true,
  $server_ddns_update = undef,
  $server_authoritative = undef,
  $server_opts = undef,
) {
  if $server {
    class { '::dhcp::server':
      ddns_update   => $server_ddns_update,
      authoritative => $server_authoritative,
      opts          => $server_opts,
    }
  }
}