Fixed group and user from dhcp leases file on debian/ubuntu systems.
This commit is contained in:
parent
9cf570fe13
commit
4b9cea15f6
1 changed files with 7 additions and 1 deletions
|
@ -19,9 +19,15 @@ class dhcp::server::common {
|
||||||
default => "/var/lib/dhcpd/dhcpd.leases",
|
default => "/var/lib/dhcpd/dhcpd.leases",
|
||||||
},
|
},
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => root,
|
owner => $operatingsystem ? {
|
||||||
|
debian => dhcpd,
|
||||||
|
ubuntu => dhcpd,
|
||||||
|
default => root,
|
||||||
|
},
|
||||||
group => $operatingsystem ? {
|
group => $operatingsystem ? {
|
||||||
|
Debian => dhcpd,
|
||||||
OpenBSD => wheel,
|
OpenBSD => wheel,
|
||||||
|
Ubuntu => dhcpd,
|
||||||
default => root,
|
default => root,
|
||||||
},
|
},
|
||||||
require => Package["dhcp"],
|
require => Package["dhcp"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue