Puppet Class: simianarmy::log4j_properties

Defined in:
manifests/log4j_properties.pp

Summary

Write the `application.properties` file.

Overview

This is an internal class that isn't normally used. You can change values for it's parameters using Hiera.

Copyright © 2017-2019 Shine Solutions Group, unless otherwise noted.

Parameters:

  • path (String)

    The path to the application.properties file on disk. Required.

  • owner (String)

    The user that should own the application.properties file. This user is not created by this module and should be managed elsewhere. Required.

  • group (String)

    The group that should own the application.properties file. This group is not created by this module and should be managed elsewhere. Required.

  • mode (String)

    The mode of the application.properties file. Passed to the file resource.

  • log_file_name (String)

    The name for the daily rotating log file. Default is taken from the parent class' service_name parameter.

  • stdout_threshold (String) (defaults to: 'WARN')

    Logging threshold for the console logger. Default: WARN

  • daily_rolling_threshold (String) (defaults to: 'INFO')

    Logging threshold for the daily rotating logger. Default: INFO

Author:



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/log4j_properties.pp', line 35

class simianarmy::log4j_properties (
  String $path,
  String $owner,
  String $group,
  String $mode,
  String $log_file_name,

  String $stdout_threshold = 'WARN',
  String $daily_rolling_threshold = 'INFO',
) {
  file { $path:
    ensure  => file,
    owner   => $owner,
    group   => $group,
    mode    => $mode,
    content => template('simianarmy/log4j_properties.erb'),
  }
}