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

Side by Side Diff: modules/statsmaster/templates/sitescripts.ini.erb

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
« no previous file with comments | « modules/adblockplus/manifests/host/statsmaster.pp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <%
2 servers = scope.function_hiera('adblockplus::hosts', {})
3 filter_servers = servers.select { |hostname, record| record.fetch('role', nil) = = 'filterserver' }
4 fqdn = lambda { |hostname, record| record.fetch 'fqdn', "#{hostname}.adblockplus .org" }
5 -%>
6 [stats] 1 [stats]
7 geoip_db=/usr/share/GeoIP/GeoIP.dat 2 geoip_db=/usr/share/GeoIP/GeoIP.dat
8 geoipv6_db=/usr/share/GeoIP/GeoIPv6.dat 3 geoipv6_db=/usr/share/GeoIP/GeoIPv6.dat
9 4
10 # Subscription mirrors accumulated via Puppet
11 <% filter_servers.each do |hostname, record| -%>
12 mirror_<%= hostname %>=subscription ssh://stats@<%= fqdn.call(hostname, record) %>/access_log_easylist_downloads.1.gz
13 <% end -%>
14
15 # Notification mirrors accumulated via Puppet
16 <% filter_servers.each do |hostname, record| -%>
17 mirror_n_<%= hostname %>=notification ssh://stats@<%= fqdn.call(hostname, record ) %>/access_log_notification.1.gz
18 <% end -%>
19
20 mirror_download1=download ssh://stats@download1.adblockplus.org/access_log_downl oads.1.gz 5 mirror_download1=download ssh://stats@download1.adblockplus.org/access_log_downl oads.1.gz
21 mirror_download2=download ssh://stats@download2.adblockplus.org/access_log_downl oads.1.gz 6 mirror_download2=download ssh://stats@download2.adblockplus.org/access_log_downl oads.1.gz
22 mirror_download3=download ssh://stats@download3.adblockplus.org/access_log_downl oads.1.gz 7 mirror_download3=download ssh://stats@download3.adblockplus.org/access_log_downl oads.1.gz
23 mirror_download4=download ssh://stats@download4.adblockplus.org/access_log_downl oads.1.gz 8 mirror_download4=download ssh://stats@download4.adblockplus.org/access_log_downl oads.1.gz
24 mirror_download5=download ssh://stats@download5.adblockplus.org/access_log_downl oads.1.gz 9 mirror_download5=download ssh://stats@download5.adblockplus.org/access_log_downl oads.1.gz
25 mirror_update1=update ssh://stats@update1.adblockplus.org/access_log_update.1.gz 10 mirror_update1=update ssh://stats@update1.adblockplus.org/access_log_update.1.gz
26 11
27 baseURL_subscription=https://easylist-downloads.adblockplus.org/ 12 baseURL_subscription=https://easylist-downloads.adblockplus.org/
28 baseURL_download=https://downloads.adblockplus.org/ 13 baseURL_download=https://downloads.adblockplus.org/
29 baseURL_update=https://update.adblockplus.org/ 14 baseURL_update=https://update.adblockplus.org/
30 baseURL_notification=https://notification.adblockplus.org/ 15 baseURL_notification=https://notification.adblockplus.org/
31 16
32 dataDirectory=/var/www/statsdata 17 dataDirectory=/var/www/statsdata
33 outputDirectory=/var/www/stats 18 outputDirectory=/var/www/stats
34 19
35 mainPageTemplate=stats/template/main.html 20 mainPageTemplate=stats/template/main.html
36 fileOverviewTemplate=stats/template/fileOverview.html 21 fileOverviewTemplate=stats/template/fileOverview.html
37 filePageTemplate=stats/template/fileStats.html 22 filePageTemplate=stats/template/fileStats.html
23
f.lopez 2016/12/12 10:21:52 This is an unrelated change for the ticket you are
mathias 2016/12/12 11:02:56 Actually, it is not an unrelated change. I wanted
OLDNEW
« no previous file with comments | « modules/adblockplus/manifests/host/statsmaster.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld