aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: 20fbcd26522e699c64e676a72ab7d783f2ed788b (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
# = Class: dhcp::params
#
# Do NOT include this class - it won't do anything.
# Set variables for names and paths
#
class dhcp::params {

  case $::operatingsystem {

    Debian: {
      $config_dir = $::lsbdistcodename? {
        lenny   => '/etc/dhcp3',
        squeeze => '/etc/dhcp',
      }

      $srv_dhcpd = $::lsbdistcodename? {
        lenny   => 'dhcp3-server',
        squeeze => 'isc-dhcp-server',
      }

      $service_pattern = $::lsbdistcodename? {
        lenny   => '/usr/sbin/dhcpd3',
        squeeze => '/usr/sbin/dhcpd',
      }

      $base_template = 'dhcp/dhcpd.conf.debian.erb'
    }

    default: {
      fail "${name} is not available for ${::operatingsystem}/${::lsbdistcodename}"
    }

  }
}