aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/dhcp-debian.pp
blob: 1d35cbc020ee6e4cf8b9a4b770315ac93986c117 (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
/*

= Class: dhcp::debian
Installs a dhcp server on debian system.

This class should not be included as is, please include "dhcp" instead.

*/
class dhcp::debian inherits dhcp::base {

  Common::Concatfilepart["00-base"] {
    content => $lsbdistcodename ? {
      squeeze => template('dhcp/dhcpd.conf.squeeze.erb'),
      lenny   => template('dhcp/dhcpd.conf.lenny.erb'),
    }
  }

  Service["dhcpd"] {
    pattern => $lsbdistcodename ? {
      squeeze => "/usr/sbin/dhcpd",
      lenny   => "/usr/sbin/dhcpd3",
    }
  }
}