psacct: Use augeas to enable accounting on OpenBSD for Puppet 3.6 compatilibity
This commit is contained in:
parent
2b9244c028
commit
a4dbd79891
1 changed files with 6 additions and 5 deletions
|
@ -69,11 +69,6 @@ class psacct::openbsd {
|
|||
notify => Exec["accton"],
|
||||
}
|
||||
|
||||
service { "accounting":
|
||||
enable => true,
|
||||
require => File["/var/account/acct"],
|
||||
}
|
||||
|
||||
exec { "accton":
|
||||
command => "accton /var/account/acct",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
|
@ -81,4 +76,10 @@ class psacct::openbsd {
|
|||
refreshonly => true,
|
||||
}
|
||||
|
||||
augeas { "enable-accounting":
|
||||
context => "/files/etc/rc.conf.local",
|
||||
changes => [ "ins 0 before 1", "set 0 accounting=YES" ],
|
||||
onlyif => "match *[.='accounting=YES'] size == 0",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue