summaryrefslogtreecommitdiff
path: root/manifests/server.pp
blob: adc868ef7c51515c8a1c8e080e9fefbd2c180b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class rsyslog::server ($enable_tcp = true, $enable_udp = true, $server_dir = '/srv/log/', $custom_config = undef, $high_precision_timestamps = false) inherits rsyslog {
    file { $rsyslog::params::server_conf:
        ensure  => present,
        owner   => root,
        group   => root,
        content => $custom_config ? {
            ''      => template("${module_name}/server.conf.erb"),
            default => template($custom_config),
        },
        require => Class['rsyslog::config'],
        notify  => Class['rsyslog::service'],
    }
}