fuel-library/deployment/puppet/rsyslog/manifests/imfile.pp
Bogdan Dobrelya 4cc1058bfe Use rsyslog::imfile for rabbitmq
Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
2013-07-15 19:00:06 +03:00

21 lines
464 B
Puppet

#
define rsyslog::imfile(
$file_name,
$file_tag,
$file_facility,
$polling_interval = 10,
$file_severity = 'notice',
$run_file_monitor = true
) {
include rsyslog::params
file { "${rsyslog::params::rsyslog_d}${name}.conf":
ensure => file,
owner => 'root',
group => $rsyslog::params::run_group,
content => template('rsyslog/imfile.erb'),
#require => Class['rsyslog::install'],
notify => Class['rsyslog::service'],
}
}