Puppet Class: psick::sar

Defined in:
manifests/sar.pp

Overview

Installs and configures sar Default settings manage SAR with checks every 5 minutes and daily summary creation.

Parameters:

  • ensure (String) (defaults to: 'present')

    if to install sysstat and create the /etc/cron.d/sysstat file

  • check_cron (String) (defaults to: '*/5 * * * *')

    The cron schedule for check interval. Default: */5 * * * *

  • summary_cron (String) (defaults to: '53 23 * * *')

    The cron schedule for summary creation. Def: 53 23 * * *

  • cron_template (String) (defaults to: 'psick/sar/systat.cron.erb')

    The erb template to use for the /etc/cron.d/sysstat file



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/sar.pp', line 10

class psick::sar (
  String $ensure        = 'present',
  String $check_cron    = '*/5 * * * *',
  String $summary_cron  = '53 23 * * *',
  String $cron_template = 'psick/sar/systat.cron.erb',
) {
  package { 'sysstat':
    ensure => $ensure,
  }
  file { '/etc/cron.d/sysstat':
    ensure  => $ensure,
    content => template($cron_template),
  }
}