Puppet Class: atop

Defined in:
manifests/init.pp

Overview

Main class that includes private classes (repo, install, config, service).

Examples:

include atop

Parameters:

  • defaults_file (Stdlib::Unixpath)

    Path to the atop defaults configuration file. Default value on RedHat: '/etc/sysconfig/atop'. Default value on Debian: '/etc/default/atop'.

  • defaults_file_template (String)

    Specifies the ERB template to use for the defaults file. Default value: 'atop/atop_defaults.erb'. There are other operating system version specific defaults template depending on the version of atop installed.

  • loggenerations (Integer)

    Specifies the number of days of logfiles to keep. Default value: 28.

  • loginterval (Integer)

    Specifies the interval in seconds. Default value: 600.

  • logopts (String)

    Speficies the default options for the atop service. Default value: '-R'.

  • manage_epel (Boolean)

    Whether or not to manage epel on the system. Default value: false.

  • manage_package (Boolean)

    Whether or not to manage the installation of the atop package. Default value: true.

  • manage_service_atop (Boolean)

    Whether or not to manage the atop service. Default value: true.

  • manage_service_atopacctd (Boolean)

    Whether or not to manage the atopacctd service. Default value: true.

  • package_ensure (String)

    Whether to install the atop package, and what version to install. Default value: 'present'. Values: 'present', 'latest', 'absent', or a specific version number.

  • package_name (String)

    Specifies the name of the atop package to manage. Default value: 'atop'.

  • process_accting_package_ensure (String)

    Whether to install the psacct (acct on Debian) package for process accounting and what version. Default value: 'present'.

  • process_accting_package_manage (Boolean)

    Whether or not to manage the process acounting package. Default value: true.

  • process_accting_package_name (String)

    Specifies the name of the process accounting package to manage. Default value on RedHat: 'psacct'. Default value on Debian: 'acct'.

  • process_accting_service_ensure (String)

    Whether the process accounting service should be running. Varies depending on whether or not atopacct need this running as well.

  • process_accting_service_enable (Boolean)

    Whether to enable the process accounting service at boot. Varies depending on whether or not atopacct need this running as well.

  • process_accting_service_manage (Boolean)

    Whether or not to manage the process accounting service. Default value: true.

  • process_accting_service_name (String)

    Specifies the name of the process accounting service. Varies depending on the operating system, but defaults to 'psacct'.

  • service_atop_enable (Boolean)

    Whether to enable the atop service at boot. Default value: true.

  • service_atop_ensure (Enum['running', 'stopped'])

    Whether the atop service should be running. Default value: 'running'.

  • service_atop_name (String)

    Specifies the name of the atop service. Default value: 'atop'.

  • service_atopacctd_enable (Boolean)

    Whether to enable the atopacctd daemon. Varies depending on the operating system.

  • service_atopacctd_ensure (Enum['running', 'stopped'])

    Whether the atopacctd service should be running. Varies depending on the operating system.

  • service_atopacctd_name (String)

    Specifies the name of the atopacctd service. Default value: 'atopacct'.



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'manifests/init.pp', line 84

class atop (
  Stdlib::Unixpath           $defaults_file,
  String                     $defaults_file_template,
  Integer                    $loggenerations,
  Integer                    $loginterval,
  String                     $logopts,
  Boolean                    $manage_epel,
  Boolean                    $manage_package,
  Boolean                    $manage_service_atop,
  Boolean                    $manage_service_atopacctd,
  String                     $package_ensure,
  String                     $package_name,
  String                     $process_accting_package_ensure,
  Boolean                    $process_accting_package_manage,
  String                     $process_accting_package_name,
  String                     $process_accting_service_ensure,
  Boolean                    $process_accting_service_enable,
  Boolean                    $process_accting_service_manage,
  String                     $process_accting_service_name,
  Boolean                    $service_atop_enable,
  Enum['running', 'stopped'] $service_atop_ensure,
  String                     $service_atop_name,
  Boolean                    $service_atopacctd_enable,
  Enum['running', 'stopped'] $service_atopacctd_ensure,
  String                     $service_atopacctd_name,
) {
  case $::osfamily {
    'RedHat': {
      contain atop::repo
      contain atop::install
      contain atop::config
      contain atop::service

      Class['atop::repo']
      ->Class['atop::install']
      ->Class['atop::config']
      ~>Class['atop::service']
    }
    'Debian': {
      contain atop::install
      contain atop::config
      contain atop::service

      Class['atop::install']
      ->Class['atop::config']
      ~>Class['atop::service']
    }
    default: {
      fail("${::osfamily} not supported")
    }
  }
}