dhcp: Fix dhcp::server for OpenBSD 5.8.
This commit is contained in:
parent
6fdcea8395
commit
7c5aef3101
1 changed files with 9 additions and 7 deletions
|
@ -44,13 +44,15 @@ class dhcp::server::common {
|
||||||
}
|
}
|
||||||
|
|
||||||
if $::operatingsystem == "OpenBSD" {
|
if $::operatingsystem == "OpenBSD" {
|
||||||
file { "/etc/rc.d/isc_dhcpd":
|
if versioncmp($::operatingsystemrelease, "5.8") < 0 {
|
||||||
ensure => present,
|
file { "/etc/rc.d/isc_dhcpd":
|
||||||
mode => "0555",
|
ensure => present,
|
||||||
owner => "root",
|
mode => "0555",
|
||||||
group => "bin",
|
owner => "root",
|
||||||
source => "puppet:///modules/dhcp/isc_dhcpd.rc",
|
group => "bin",
|
||||||
before => Service["dhcpd"],
|
source => "puppet:///modules/dhcp/isc_dhcpd.rc",
|
||||||
|
before => Service["dhcpd"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/var/db/dhcpd.leases":
|
file { "/var/db/dhcpd.leases":
|
||||||
|
|
Loading…
Add table
Reference in a new issue