aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/debian.pp
blob: 5d23bbe17c9c9170dd46cab603209ecb197c04ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# = Class: dhcp::server::debian
#
# Installs a dhcp server on debian system.
#
# This class should not be included as is,
# please include "dhcp::server" instead.
#
class dhcp::server::debian inherits dhcp::server::base {

  Concat::Fragment['00.dhcp.server.base'] {
    content => template('dhcp/dhcpd.conf.debian.erb'),
  }

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

}