summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSteffen Zieger <me@saz.sh>2012-07-02 15:31:36 +0200
committerSteffen Zieger <me@saz.sh>2012-07-02 15:31:36 +0200
commit0ab473880378968980c9ddf20b4312cac7b15217 (patch)
tree61c0d4251ee643bb3eeb173eb73d9c860c6d2b79 /manifests
parent47694bb8be3e98c903fee1200760c42f0f5eda0a (diff)
style-guide fixes
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp18
1 files changed, 10 insertions, 8 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index ba8ebf4..bedf1f6 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -8,15 +8,17 @@ class rsyslog::client (
$port = '514'
) inherits rsyslog {
+ $content_real = $custom_config ? {
+ '' => template("${module_name}/client.conf.erb"),
+ default => template($custom_config),
+ }
+
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),
- },
+ ensure => present,
+ owner => root,
+ group => $rsyslog::params::run_group,
+ content => $content_real,
require => Class['rsyslog::config'],
- notify => Class['rsyslog::service'],
+ notify => Class['rsyslog::service'],
}
}