| LEFT | RIGHT | 
|---|
| 1 class filterserver($is_default = false) { | 1 class filterserver($is_default = false) { | 
| 2   if !defined(Class['nginx']) { | 2   if !defined(Class['nginx']) { | 
| 3     class {'nginx': | 3     class {'nginx': | 
| 4       worker_connections => 4000, | 4       worker_connections => 4000, | 
| 5       ssl_session_cache => off, | 5       ssl_session_cache => off, | 
| 6     } | 6     } | 
| 7   } | 7   } | 
| 8 | 8 | 
| 9   if !defined(File['/var/www']) { | 9   if !defined(File['/var/www']) { | 
| 10     file {'/var/www': | 10     file {'/var/www': | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 46     log => 'access_log_easylist_downloads', | 46     log => 'access_log_easylist_downloads', | 
| 47     global_config => join([ | 47     global_config => join([ | 
| 48       'proxy_cache_path /var/cache/nginx/proxy levels=1 keys_zone=filters:1m;', | 48       'proxy_cache_path /var/cache/nginx/proxy levels=1 keys_zone=filters:1m;', | 
| 49     ], "\n"), | 49     ], "\n"), | 
| 50   } | 50   } | 
| 51 | 51 | 
| 52   file {'/home/rsync/.ssh': | 52   file {'/home/rsync/.ssh': | 
| 53     ensure => directory, | 53     ensure => directory, | 
| 54     require => User['rsync'], | 54     require => User['rsync'], | 
| 55     owner => rsync, | 55     owner => rsync, | 
| 56     mode => '0600'; | 56     mode => '0600', | 
| 57   } | 57   } | 
| 58 | 58 | 
| 59   concat {'/home/rsync/.ssh/known_hosts': | 59   concat {'/home/rsync/.ssh/known_hosts': | 
| 60     owner => rsync, | 60     owner => rsync, | 
| 61     mode => '0444', | 61     mode => '0444', | 
| 62   } | 62   } | 
| 63 | 63 | 
| 64   concat::fragment {'filtermaster_hostname': | 64   concat::fragment {'filtermaster_hostname': | 
| 65     target => '/home/rsync/.ssh/known_hosts', | 65     target => '/home/rsync/.ssh/known_hosts', | 
| 66     content => 'filtermaster.adblockplus.org ', | 66     content => 'filtermaster.adblockplus.org ', | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 102                  File['/home/rsync/.ssh/id_rsa'], | 102                  File['/home/rsync/.ssh/id_rsa'], | 
| 103                  User['rsync'] | 103                  User['rsync'] | 
| 104                ], | 104                ], | 
| 105     command => 'rsync -e "ssh -o CheckHostIP=no" -ltprz --delete rsync@filtermas
     ter.adblockplus.org:. /var/www/easylist/', | 105     command => 'rsync -e "ssh -o CheckHostIP=no" -ltprz --delete rsync@filtermas
     ter.adblockplus.org:. /var/www/easylist/', | 
| 106     environment => hiera('cron::environment', []), | 106     environment => hiera('cron::environment', []), | 
| 107     user => rsync, | 107     user => rsync, | 
| 108     hour => '*', | 108     hour => '*', | 
| 109     minute => '2-52/10' | 109     minute => '2-52/10' | 
| 110   } | 110   } | 
| 111 } | 111 } | 
| LEFT | RIGHT | 
|---|