1005f86180
This change updates the rsyslog default for the custom config option to be '' rather than undef so that the correct file is used for the client and service configurations under puppet 4. Additionally this change fixes the parameter check for rabbit_hosts for the openstack module so that it passes. Change-Id: I128abd4cc27297d76db8f6d05e583cfbeae8abc7 Closes-Bug: #1507614
40 lines
802 B
Puppet
40 lines
802 B
Puppet
#
|
|
#
|
|
#
|
|
|
|
class rsyslog::client (
|
|
$log_remote = true,
|
|
$remote_type = 'tcp',
|
|
$log_local = false,
|
|
$log_auth_local = false,
|
|
$custom_config = '',
|
|
$server = 'log',
|
|
$escapenewline = false,
|
|
) inherits rsyslog {
|
|
|
|
$content_real = $custom_config ? {
|
|
'' => template("${module_name}/01-client.conf.erb"),
|
|
default => template($custom_config),
|
|
}
|
|
|
|
File {
|
|
owner => root,
|
|
group => $rsyslog::params::run_group,
|
|
mode => 0640,
|
|
notify => Class["rsyslog::service"],
|
|
}
|
|
|
|
file { $rsyslog::params::rsyslog_d:
|
|
purge => true,
|
|
recurse => true,
|
|
force => true,
|
|
ensure => directory,
|
|
}
|
|
|
|
file { $rsyslog::params::client_conf:
|
|
ensure => present,
|
|
content => $content_real,
|
|
require => File[$rsyslog::params::rsyslog_d],
|
|
}
|
|
}
|