blob: 0938e4a8389fd77aaa01ad2d14535cfa56969786 (
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',
}
$server_template = "${module_name}/dhcpd.conf.debian.erb"
}
default: {
fail "Unsupported OS ${::operatingsystem}/${::lsbdistcodename}"
}
}
}
|