aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/packages.pp
blob: b89ede371dd04c6f4479ffbfae86524a01da5691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Class: dhcp::server::packages
#
# Install the DHCP server
#
class dhcp::server::packages {
  include ::dhcp::params

  validate_string($dhcp::params::srv_dhcpd)
  validate_re($dhcp::params::srv_dhcpd, '^\S+$')

  package {'dhcp-server':
    ensure => present,
    name   => $dhcp::params::srv_dhcpd,
  }
}