Left: | ||
Right: |
OLD | NEW |
---|---|
(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 } | |
OLD | NEW |