===
Module to manage rsyslog. Handles both local and remote logging.
Inspired by saz/rsyslog
This module will ensure that sysklogd is absent, which is needed on EL5.
===
This module has been tested to work on the following systems with Puppet v3.x and Ruby versions 1.8.7 and 1.9.3.
- Debian 7
- EL 5
- EL 6
- Suse 11
===
Name of the rsyslog package.
- Default: 'rsyslog'
What state the package should be in. Valid values are 'present', 'absent', 'purged', 'held' and 'latest'.
- Default: 'present'
Path to pid file.
- Default: based on platform
Path of the logrotate config file.
- Default: '/etc/logrotate.d/syslog'
Owner of the logrotate config file.
- Default: 'root'
Group of the logrotate config file.
- Default: 'root'
Mode of the logrotate config file.
- Default: '0644'
Path of the rsyslog config file.
- Default: '/etc/rsyslog.conf'
Owner of the rsyslog config file.
- Default: 'root'
Group of the rsyslog config file.
- Default: 'root'
Mode of the rsyslog config file.
- Default: '0644'
Path of the rsyslog sysconfig config file.
- Default: '/etc/sysconfig/rsyslog' # EL
- Default: '/etc/default/rsyslog' # Debian
Owner of the rsyslog sysconfig config file.
- Default: 'root'
Group of the rsyslog sysconfig config file.
- Default: 'root'
Mode of the rsyslog sysconfig config file.
- Default: '0644'
Name of the rsyslog service. 'USE_DEFAULTS' will choose the service name based on the osfamily. 'rsyslog' # RHEL, Debian 'syslog' # Suse
- Default: 'USE_DEFAULTS'
Whether a service should be running. Valid values are 'stopped' and 'running'.
- Default: 'running'
Whether the system syslog service is meant to recieve messages from remote hosts. Valid values are 'true' and 'false'.
- Default: 'false'
Path to store logs, if $is_log_server is true.
- Default: '/srv/logs'
Template path to store logs from remote hosts, appended after log_dir
- Default: '%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%.log'
Wheter to send logs remotely to a centralized logging service.
- Default: 'false'
Path to place spool files.
- Default: '/var/spool/rsyslog'
Owner of the spool directory.
- Default: 'root'
Group of the spool directory.
- Default: 'root'
Mode of the spool directory.
- Default: '0700'
Maximum disk space used by spool files. Uses one letter units such as k, m and g.
- Default: '1g'
Transport protocol used by rsyslog. Valid values are 'tcp' and 'udp'
- Default: 'tcp'
Server to send logs to if remote_logging is true.
- Default: "log.${::domain}"
Port of the server to send logs to if remote_logging is true.
- Default: '514'
Whether to enable tcp listening for the service. If undefined, set by $transport_protocol.
- Default: undef
Whether to enable udp listening for the service. If undefined, set by $transport_protocol.
- Default: undef
Target of kernel logs.
- Default: '/var/log/messages'
List of source facilities to be sent to remote log server. Only used if remote_logging is true.
- Default:
*.*