Index: modules/adblockplus/manifests/log.pp |
diff --git a/modules/adblockplus/manifests/log.pp b/modules/adblockplus/manifests/log.pp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bcfb68a589ed13d077ae60605bb0b2eb71387bf2 |
--- /dev/null |
+++ b/modules/adblockplus/manifests/log.pp |
@@ -0,0 +1,26 @@ |
+# == Class: adblockplus::log |
+# |
+# Default root namespace for integrating custom logging entities. |
+# |
+class adblockplus::log { |
+ |
+ include adblockplus |
+ realize(File[$adblockplus::directory]) |
+ |
+ # Used as internal constants within adblockplus::log::* resources |
+ $directory = "$adblockplus::directory/log" |
+ $group = 'log' |
+ $user = 'log' |
+ |
+ # Invoke realize(File[$adblockplus::log::directory]) when neccessary |
+ @file {$directory: |
+ ensure => 'directory', |
+ require => File[$adblockplus::directory], |
+ } |
+ |
+ # Invoke realize(User[$adblockplus::log::user]) when necessary |
+ @user {$user: |
+ ensure => 'present', |
+ managehome => true, |
+ } |
+} |