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:
parent
385a1a5031
commit
87e55e8499
8
manifests/fileremoval.pp
Normal file
8
manifests/fileremoval.pp
Normal file
@ -0,0 +1,8 @@
|
||||
# == Define: logrotate::fileremoval
|
||||
#
|
||||
define logrotate::fileremoval ($file = $title) {
|
||||
file { "/etc/logrotate.d/${file}":
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user