aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: fe9219bcd009ae05e7e1b1d25ed4ea496837042b (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
37
38
39
# 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_log_facility']  - Set log level 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_log_facility = undef,
  $server_opts = undef,
) {
  if $server {
    class { '::dhcp::server':
      ddns_update   => $server_ddns_update,
      authoritative => $server_authoritative,
      log_facility  => $server_log_facility,
      opts          => $server_opts,
    }
  }
}