summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp32
1 files changed, 20 insertions, 12 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 6b71e9e..ce882b5 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -1,13 +1,21 @@
-class rsyslog::client ($log_remote = true, $remote_type = 'tcp', $log_local = false, $log_auth_local = false, $custom_config = undef, $server = 'log') inherits rsyslog {
- file { $rsyslog::params::client_conf:
- ensure => present,
- owner => root,
- group => root,
- content => $custom_config ? {
- '' => template("${module_name}/client.conf.erb"),
- default => template($custom_config),
- },
- require => Class['rsyslog::config'],
- notify => Class['rsyslog::service'],
- }
+class rsyslog::client (
+ $log_remote = true,
+ $remote_type = 'tcp',
+ $log_local = false,
+ $log_auth_local = false,
+ $custom_config = undef,
+ $server = 'log'
+) inherits rsyslog {
+
+ file { $rsyslog::params::client_conf:
+ ensure => present,
+ owner => root,
+ group => $rsyslog::params::run_group,
+ content => $custom_config ? {
+ '' => template("${module_name}/client.conf.erb"),
+ default => template($custom_config),
+ },
+ require => Class['rsyslog::config'],
+ notify => Class['rsyslog::service'],
+ }
}