A minimal Puppet module for installing and managing the GNU accounting utilities.

Source available on GitHub

Example Usage

Manifest example:

include acct

Hiera example:

acct::defaults:
enable: true
logging: 30

acct::manage_defaults: true
acct::service_enable: true
acct::service_ensure: running
acct::service_manage: true

Default Configuration

---
acct::defaults:
enable: true
logging: 30

acct::manage_defaults: true

acct::package_ensure: installed
acct::package_manage: true
acct::service_enable: true
acct::service_ensure: running
acct::service_manage: true
---
acct::package_name: acct
acct::service_name: acct
---
acct::package_name: psacct
acct::service_name: psacct

Change log

v1.0.0 (2022-07-31)

Full Changelog

Added

  • Add initial documentation #1 (gibbs)

Reference

Table of Contents

Classes

Public Classes

  • acct: GNU Accounting Utilities

Private Classes

  • acct::config: configuration
  • acct::package: package management
  • acct::service: service management

Data types

Classes

acct

GNU Accounting Utilities

Parameters

The following parameters are available in the acct class:

defaults

Data type: Acct::Defaults

acct defaults configuration

manage_defaults

Data type: Boolean

Manage the acct defaults file (/etc/default/acct)

package_name

Data type: String[1]

The package name

package_ensure

Data type: String

The package ensure state

package_manage

Data type: Boolean

If the package should be managed

service_enable

Data type: Boolean

The service enable state

service_name

Data type: String[1]

The service name to use

service_ensure

Data type: Enum['stopped', 'running']

The service ensure state

service_manage

Data type: Boolean

If the auditd service should be managed

Data types

Acct::Defaults

Default configuration types

Alias of

Struct[{
Optional['enable'] => Boolean,
Optional['logging'] => Integer,
}]