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: Issue 3306 - Address feedback from code-review Created Jan. 14, 2016, 3:05 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
« no previous file with comments | « modules/adblockplus/files/log/import.py ('k') | modules/adblockplus/manifests/log/master.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+ }
+}
« no previous file with comments | « modules/adblockplus/files/log/import.py ('k') | modules/adblockplus/manifests/log/master.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld