summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYolanda Robla <yolanda.robla-mota@hp.com>2015-06-16 16:53:43 +0200
committerYolanda Robla <yolanda.robla-mota@hp.com>2015-06-26 15:08:25 +0200
commit87e55e84992e65adbb86be611c46dea1ebc57682 (patch)
treed117865e40244344e2b440bf4cc9e8598f8442b3
parent385a1a5031675ae4fc6885ef0fe8abcbbd6041eb (diff)
Add subclass to remove logrotate configurations
This class will ensure that files under that logrotate directoy are correctly removed on demand. Change-Id: Ifd052804a24806f8f660d25dca68c5af9c4fb605
Notes
Notes (review): Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Jenkins Code-Review+2: Spencer Krum <nibz@spencerkrum.com> Code-Review+1: Khai Do <zaro0508@gmail.com> Code-Review+1: Clint Adams <clint@gcfm.net> Submitted-by: Jenkins Submitted-at: Fri, 17 Jul 2015 21:42:43 +0000 Reviewed-on: https://review.openstack.org/192242 Project: openstack-infra/puppet-logrotate Branch: refs/heads/master
-rw-r--r--manifests/fileremoval.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/fileremoval.pp b/manifests/fileremoval.pp
new file mode 100644
index 0000000..11b07a4
--- /dev/null
+++ b/manifests/fileremoval.pp
@@ -0,0 +1,8 @@
1# == Define: logrotate::fileremoval
2#
3define logrotate::fileremoval ($file = $title) {
4 file { "/etc/logrotate.d/${file}":
5 ensure => absent,
6 }
7}
8