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

Side by Side Diff: modules/adblockplus/manifests/host/statsmaster.pp

Issue 29367240: Issue 3638 - Generate statsmaster filter mirror configuration with concat (Closed)
Patch Set: Created Dec. 12, 2016, 10 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
OLDNEW
1 # == Type: adblockplus::host::statsmaster 1 # == Type: adblockplus::host::statsmaster
2 # 2 #
3 # Nagios definitions for any host recognized, included automatically with type 3 # Nagios definitions for any host recognized, included automatically with type
4 # adblockplus::host if the current node's $::role is 'statsmaster'. 4 # adblockplus::host if the current node's $::role is 'statsmaster'.
5 # 5 #
6 define adblockplus::host::statsmaster { 6 define adblockplus::host::statsmaster {
7 7
8 $ensure = getparam(Adblockplus::Host[$title], 'ensure')
9 $role = getparam(Adblockplus::Host[$title], 'role')
10
8 realize(Host[$title]) 11 realize(Host[$title])
9 realize(Sshkey[$title]) 12 realize(Sshkey[$title])
13
14 # https://issues.adblockplus.org/ticket/3638#comment:17
15 if ($role == 'filterserver') and ($ensure == 'present') {
16
17 include sitescripts
18 $fqdn = getparam(Adblockplus::Host[$title], 'fqdn')
19
20 sitescripts::configfragment {"mirror#$title":
21 content => join([
22 "# Filter mirror $fqdn",
23 "mirror_$name=subscription ssh://stats@$fqdn/access_log_easylist_downloa ds.1.gz",
24 "mirror_n_$name=notification ssh://stats@$fqdn/access_log_notification.1 .gz",
25 ""
26 ], "\n"),
27 }
28 }
10 } 29 }
OLDNEW
« no previous file with comments | « no previous file | modules/statsmaster/templates/sitescripts.ini.erb » ('j') | modules/statsmaster/templates/sitescripts.ini.erb » ('J')

Powered by Google App Engine
This is Rietveld