Sysstat module for Ubuntu. Centos/Fedora and OpenBSD to be investigated.
This commit is contained in:
parent
7083f00454
commit
933249d58d
2 changed files with 33 additions and 0 deletions
18
sysstat/files/sysstat.default
Normal file
18
sysstat/files/sysstat.default
Normal file
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# 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=""
|
15
sysstat/manifests/init.pp
Normal file
15
sysstat/manifests/init.pp
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
class sysstat {
|
||||
package { "sysstat":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
ubuntu: {
|
||||
file { "/etc/default/sysstat":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/sysstat/sysstat.default",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue