Puppet Class: tlog

Defined in:
manifests/init.pp

Overview

This module manages the configuration of [TLog](github.com/Scribery/tlog)

Parameters:

  • package_name (String[1]) (defaults to: 'tlog')

    The name of the tlog package

  • package_ensure (String[1]) (defaults to: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }))

    What should be passed to the ‘ensure` parameter for all package resources

  • manage_rsyslog (Boolean) (defaults to: simplib::lookup('simp_options::syslog', { 'default_value' => false }))

    If true, manage logging configuration for tlog

Author:



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/init.pp', line 14

class tlog (
  String[1] $package_name   = 'tlog',
  String[1] $package_ensure = simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }),
  Boolean   $manage_rsyslog = simplib::lookup('simp_options::syslog', { 'default_value' => false })
) {
  simplib::assert_metadata($module_name)

  include 'tlog::install'

  if $manage_rsyslog {
    include 'tlog::config::rsyslog'
  }
}