From 4b9cea15f6e08db780dcfc7dac9b4b14e5d078f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 26 Oct 2010 12:41:50 +0300 Subject: [PATCH] Fixed group and user from dhcp leases file on debian/ubuntu systems. --- dhcp/manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dhcp/manifests/init.pp b/dhcp/manifests/init.pp index 5fa2911..3db573c 100644 --- a/dhcp/manifests/init.pp +++ b/dhcp/manifests/init.pp @@ -19,9 +19,15 @@ class dhcp::server::common { default => "/var/lib/dhcpd/dhcpd.leases", }, ensure => present, - owner => root, + owner => $operatingsystem ? { + debian => dhcpd, + ubuntu => dhcpd, + default => root, + }, group => $operatingsystem ? { + Debian => dhcpd, OpenBSD => wheel, + Ubuntu => dhcpd, default => root, }, require => Package["dhcp"],