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

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

Issue 29733731: #7320 - Introduce helpcenter role (Closed)
Patch Set: For comments 2 to 4 Created April 2, 2018, 10:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # == Type: adblockplus::web::static::hook
2 #
3 # Manage custom hooks to be triggered via ssh commands
4 #
5 # === Parameters:
6 #
7 # [*file*]
8 # Overwrite the default configuration for the hook.
mathias 2018/04/05 01:12:30 This is not a default but totally necessary, in th
f.lopez 2018/04/10 02:45:39 Acknowledged.
9 #
10 # === Examples:
11 #
12 # adblockplus::web::static::hook {'deploy':
13 # 'file' => {
14 # source => 'puppet:///modules/adblockplus/web/deploy.py',
15 # path => '/usr/local/bin/deploy.py',
16 # },
17 # }
18 #
19 # adblockplus::web::static::hook {'uname':
20 # 'file' => {
21 # content => 'uname -a',
22 # },
23 # }
24 #
25 define adblockplus::web::static::hook (
26 $file = {},
27 ) {
28
29 ensure_resource('file', "hook#${name}", merge({
mathias 2018/04/05 01:12:30 When composing titles, which are required to be un
f.lopez 2018/04/10 02:45:39 Acknowledged.
30 mode => '0755',
31 owner =>$adblockplus::web::static::deploy_user,
mathias 2018/04/05 01:12:30 There's a space missing here.
f.lopez 2018/04/10 02:45:39 Acknowledged.
32 group => $adblockplus::web::static::deploy_user,
33 }, $file, {
34 ensure => ensure_file_state($adblockplus::web::static::ensure),
35 path => "/home/$adblockplus::web::static::deploy_user/bin/${name}",
mathias 2018/04/05 01:12:30 Both variables should be denoted with the `${}` sy
f.lopez 2018/04/10 02:45:39 Acknowledged.
36 }))
37 }
38
OLDNEW

Powered by Google App Engine
This is Rietveld