Class dhcpd::dhcpd
In: /modules/dhcpd/manifests/init.pp
Parent:

Class: dhcpd

Installs and enables a dhcpd server. You must specify either `$configsource` or `$configcontent`.

Parameters:

 $configsource:
   Puppet location of the configuration file to use. Default: none
 $configcontent:
   Content of the configuration file to use. Default: none
 $dhcpdargs:
   Command-line arguments to be added to dhcpd. Default: empty
 $ensure:
   Ensure parameter for the service. Default: undefined
 $enable:
   Enable parameter for the service. Default: true

Sample Usage :

 class { 'dhcpd':
   configsource => 'puppet:///files/dhcpd.conf-foo',
   # Restrict listening to a single interface
   dhcpdargs    => 'eth1',
   # Default is to enable but allow to be stopped (for active/passive)
   ensure       => 'running',
 }

Resources

Resources

File["/etc/sysconfig/dhcpd"]
   content => template("dhcpd/dhcpd.sysconfig.erb")
   notify => Service["dhcpd"]
File[$dhcpd_conf]
   source => $configsource
   content => $configcontent
   require => Package["dhcp"]
   notify => Service["dhcpd"]
Package["dhcp"]
   ensure => installed
Service["dhcpd"]
   ensure => $ensure
   enable => $enable
   hasstatus => true
   require => Package["dhcp"]

[Validate]