Browse Source

Add subclass to remove logrotate configurations

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

Change-Id: Ifd052804a24806f8f660d25dca68c5af9c4fb605
changes/42/192242/6
Yolanda Robla 4 years ago
parent
commit
87e55e8499
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      manifests/fileremoval.pp

+ 8
- 0
manifests/fileremoval.pp View File

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

Loading…
Cancel
Save