Puppet Class: riemann::logging

Defined in:
manifests/logging.pp

Overview

Parameters:

  • options (Any) (defaults to: { 'file' => "\"${::riemann::log_file}\"" })


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/logging.pp', line 2

class riemann::logging (
  $options = {
    'file' => "\"${::riemann::log_file}\""
  }
) {
  include riemann
  if $riemann::debug {
    $debug_header = ";begin ${title}\n"
    $debug_footer = "\n;end ${title}"
  }
  if $options {
    $options_str = join([':',join(join_keys_to_values($options,' '),' :')],'')
  }
  riemann::config::fragment { $title:
    content => "${debug_header}(logging/init {${options_str}})${debug_footer}",
    order   => '12'
  }
}