sysstat: Enable sysstat using agueas on Ubuntu
This commit is contained in:
parent
15a3e81a82
commit
b11ca76add
2 changed files with 7 additions and 23 deletions
|
@ -1,18 +0,0 @@
|
|||
#
|
||||
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
|
||||
# and /etc/cron.daily/sysstat files
|
||||
#
|
||||
|
||||
# Should sadc collect system activity informations? Valid values
|
||||
# are "true" and "false". Please do not put other values, they
|
||||
# will be overwritten by debconf!
|
||||
ENABLED="true"
|
||||
|
||||
# Additional options passed to sa1 by /etc/init.d/sysstat
|
||||
# and /etc/cron.d/sysstat
|
||||
# By default contains the `-S DISK' option responsible for
|
||||
# generating disk statisitcs.
|
||||
SA1_OPTIONS="-S DISK"
|
||||
|
||||
# Additional options passed to sa2 by /etc/cron.daily/sysstat.
|
||||
SA2_OPTIONS=""
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
# Install and enable sysstat accounting.
|
||||
#
|
||||
class sysstat {
|
||||
|
||||
package { "sysstat":
|
||||
|
@ -7,10 +8,11 @@ class sysstat {
|
|||
|
||||
case $::operatingsystem {
|
||||
"debian","ubuntu": {
|
||||
file { "/etc/default/sysstat":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/sysstat/sysstat.default",
|
||||
notify => Service["sysstat"],
|
||||
augeas { "enable-sysstat":
|
||||
context => "/files/etc/default/sysstat",
|
||||
changes => "set ENABLED true",
|
||||
require => Package["sysstat"],
|
||||
notify => Service["sysstat"],
|
||||
}
|
||||
}
|
||||
"centos","redhat","fedora": {
|
||||
|
|
Loading…
Add table
Reference in a new issue