| OLD | NEW |
| 1 <% | 1 <% |
| 2 servers = scope.function_hiera('servers', {}) | 2 servers = scope.function_hiera('adblockplus::hosts', {}) |
| 3 filter_servers = servers.select { |hostname, record| record.fetch('role', nil) =
= 'filterserver' } | 3 filter_servers = servers.select { |hostname, record| record.fetch('role', nil) =
= 'filterserver' } |
| 4 fqdn = lambda { |hostname, record| record.fetch 'dns', "#{hostname}.adblockplus.
org" } | 4 fqdn = lambda { |hostname, record| record.fetch 'dns', "#{hostname}.adblockplus.
org" } |
| 5 -%> | 5 -%> |
| 6 [stats] | 6 [stats] |
| 7 geoip_db=/usr/share/GeoIP/GeoIP.dat | 7 geoip_db=/usr/share/GeoIP/GeoIP.dat |
| 8 geoipv6_db=/usr/share/GeoIP/GeoIPv6.dat | 8 geoipv6_db=/usr/share/GeoIP/GeoIPv6.dat |
| 9 | 9 |
| 10 # Subscription mirrors accumulated via Puppet | 10 # Subscription mirrors accumulated via Puppet |
| 11 <% filter_servers.each do |hostname, record| -%> | 11 <% filter_servers.each do |hostname, record| -%> |
| 12 mirror_<%= hostname %>=subscription ssh://stats@<%= fqdn.call(hostname, record)
%>/access_log_easylist_downloads.1.gz | 12 mirror_<%= hostname %>=subscription ssh://stats@<%= fqdn.call(hostname, record)
%>/access_log_easylist_downloads.1.gz |
| (...skipping 15 matching lines...) Expand all Loading... |
| 28 baseURL_download=https://downloads.adblockplus.org/ | 28 baseURL_download=https://downloads.adblockplus.org/ |
| 29 baseURL_update=https://update.adblockplus.org/ | 29 baseURL_update=https://update.adblockplus.org/ |
| 30 baseURL_notification=https://notification.adblockplus.org/ | 30 baseURL_notification=https://notification.adblockplus.org/ |
| 31 | 31 |
| 32 dataDirectory=/var/www/statsdata | 32 dataDirectory=/var/www/statsdata |
| 33 outputDirectory=/var/www/stats | 33 outputDirectory=/var/www/stats |
| 34 | 34 |
| 35 mainPageTemplate=stats/template/main.html | 35 mainPageTemplate=stats/template/main.html |
| 36 fileOverviewTemplate=stats/template/fileOverview.html | 36 fileOverviewTemplate=stats/template/fileOverview.html |
| 37 filePageTemplate=stats/template/fileStats.html | 37 filePageTemplate=stats/template/fileStats.html |
| OLD | NEW |