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

Side by Side Diff: modules/adblockplus/manifests/web.pp

Issue 29481626: #1980 - Introduce class adblockplus::web (Closed)
Patch Set: Created July 6, 2017, 11:49 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # == Class: adblockplus::web
2 #
3 # Default root namespace for integrating custom web resources.
4 #
5 # See http://hub.eyeo.com/issues/1980.
6 #
7 # === Parameters:
8 #
9 # [*directory*]
10 # Custom parameters for the /var/www directory.
11 #
12 # [*ensure*]
13 # General resource policy, i.e. "present" or "absent".
14 #
15 class adblockplus::web (
16 $directory = {},
17 $ensure = 'present',
18 ) {
19
20 ensure_resource('file', '/var/www', merge({
21 '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
22 }, $directory, {
23 'ensure' => ensure_directory_state(pick($directory['ensure'], $ensure)),
24 'path' => '/var/www',
25 }))
26 }
OLDNEW
« 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