Skip to content
Snippets Groups Projects
Commit 50a70d5d authored by Andreas Kempe's avatar Andreas Kempe
Browse files

remote_logging: add class for remote logging only

When timehost is running on a system that uses an SD card, we want to
limit wear to the local file system and only log remotely.
parent 9b3d9fc1
No related branches found
No related tags found
No related merge requests found
# NOTE: This file in managed by the timehost::remote_logging class.
# Only log to the main log server to reduce local media wear.
*.* @loghost.lysator.liu.se
# Class for only logging to Lysator's log server.
# Used to reduce wear to local storage.
class timehost::remote_logging {
package { 'rsyslog':
ensure => present,
}
file {'/etc/rsyslog.conf':
ensure => present,
source => 'puppet:///modules/timehost/rsyslog.conf',
owner => 'root',
group => 'root',
mode => '0644',
notify => Service['rsyslogd'],
}
service { 'rsyslogd':
ensure => running,
enable => true,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment