fuel-library/deployment/puppet/rsyslog/manifests/config.pp
Alex Schultz ba2a601daf Revert "Moving rsyslog to librarian"
This reverts commit 949bd5831d.

Change-Id: I042ee40c2b33dff376101e78145f02199a56dfdf
Related-Bug: #1505180
Related-Bug: #1504596
2015-10-12 13:19:52 +00:00

31 lines
808 B
Puppet

class rsyslog::config {
# assumes rsyslog packages installed at BM or included in distro
File {
owner => root,
group => $rsyslog::params::run_group,
mode => 0640,
# To avoid dependency loops for custom runstages
#require => Class["rsyslog::install"],
notify => Class["rsyslog::service"],
}
file { $rsyslog::params::rsyslog_conf:
ensure => file,
content => template("${module_name}/rsyslog.conf.erb"),
}
file { '/var/lib/rsyslog' :
ensure => directory,
path => $::rsyslog::params::rsyslog_queues_dir,
}
file { $rsyslog::params::rsyslog_default:
ensure => file,
content => template("${module_name}/rsyslog_default.erb"),
}
file { $rsyslog::params::spool_dir:
ensure => directory,
}
}