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

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

Issue 29481626: #1980 - Introduce class adblockplus::web (Closed)
Patch Set: Created July 6, 2017, 11:49 a.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 | « no previous file | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/web.pp
diff --git a/modules/adblockplus/manifests/web.pp b/modules/adblockplus/manifests/web.pp
new file mode 100644
index 0000000000000000000000000000000000000000..6a75fe3e063c510c9665baecd3133a421715f5a6
--- /dev/null
+++ b/modules/adblockplus/manifests/web.pp
@@ -0,0 +1,26 @@
+# == Class: adblockplus::web
+#
+# Default root namespace for integrating custom web resources.
+#
+# See http://hub.eyeo.com/issues/1980.
+#
+# === Parameters:
+#
+# [*directory*]
+# Custom parameters for the /var/www directory.
+#
+# [*ensure*]
+# General resource policy, i.e. "present" or "absent".
+#
+class adblockplus::web (
+ $directory = {},
+ $ensure = 'present',
+) {
+
+ ensure_resource('file', '/var/www', merge({
+ 'mode' => '0755',
Fred 2017/07/06 12:33:00 Shouldn't also a user (owner) be provided as a def
mathias 2017/07/06 12:42:06 In the current state this defaults to the user exe
+ }, $directory, {
+ 'ensure' => ensure_directory_state(pick($directory['ensure'], $ensure)),
+ 'path' => '/var/www',
+ }))
+}
« no previous file with comments | « no previous file | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld