Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/manifests/log.pp

Issue 29333248: Issue 3306 - Create uplinks for pushing log files (Closed)
Patch Set: Created Jan. 6, 2016, 12:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'
Fred 2016/01/07 15:19:16 This group named 'log' seems not to be used any fu
mathias 2016/01/14 15:03:52 It's used in the File[$adblockplus::log::master::u
+ $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,
+ }
+}

Powered by Google App Engine
This is Rietveld