Add subclass to remove logrotate configurations

This class will ensure that files under that
logrotate directoy are correctly removed on
demand.

Change-Id: Ifd052804a24806f8f660d25dca68c5af9c4fb605
This commit is contained in:
Yolanda Robla 2015-06-16 16:53:43 +02:00
parent 385a1a5031
commit 87e55e8499
1 changed files with 8 additions and 0 deletions

8
manifests/fileremoval.pp Normal file
View File

@ -0,0 +1,8 @@
# == Define: logrotate::fileremoval
#
define logrotate::fileremoval ($file = $title) {
file { "/etc/logrotate.d/${file}":
ensure => absent,
}
}