dhcp: No need to define DHCP leases file.
This commit is contained in:
parent
a90016c5f2
commit
b64c392ffa
1 changed files with 0 additions and 23 deletions
|
@ -35,29 +35,6 @@ class dhcp::server::common {
|
|||
ensure => installed,
|
||||
}
|
||||
|
||||
file { "dhcpd.leases":
|
||||
name => $::operatingsystem ? {
|
||||
"debian" => "/var/lib/dhcp3/dhcpd.leases",
|
||||
"ubuntu" => "/var/lib/dhcp3/dhcpd.leases",
|
||||
"openbsd" => "/var/db/dhcpd.leases",
|
||||
default => "/var/lib/dhcpd/dhcpd.leases",
|
||||
},
|
||||
ensure => present,
|
||||
owner => $::operatingsystem ? {
|
||||
"debian" => "dhcpd",
|
||||
"ubuntu" => "dhcpd",
|
||||
default => "root",
|
||||
},
|
||||
group => $::operatingsystem ? {
|
||||
"debian" => "dhcpd",
|
||||
"ubuntu" => "dhcpd",
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
require => Package["dhcp"],
|
||||
before => Service["dhcpd"],
|
||||
}
|
||||
|
||||
if $::operatingsystem == "OpenBSD" {
|
||||
file { "/etc/rc.d/isc_dhcpd":
|
||||
ensure => present,
|
||||
|
|
Loading…
Add table
Reference in a new issue