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

Side by Side Diff: modules/downloadserver/manifests/init.pp

Issue 29396643: NoIssue - Reconfigure Mercurial pull cron-jobs (Closed)
Patch Set: For comment #4 Created March 29, 2017, 12:13 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 | « manifests/webserver.pp ('k') | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class downloadserver( 1 class downloadserver(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default = false 5 $is_default = false
6 ) { 6 ) {
7 7
8 class {'nginx': 8 class {'nginx':
9 worker_connections => 4000, 9 worker_connections => 4000,
10 ssl_session_cache => off, 10 ssl_session_cache => off,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 source => 'puppet:///modules/downloadserver/adblockbrowserupdatescache.conf' , 70 source => 'puppet:///modules/downloadserver/adblockbrowserupdatescache.conf' ,
71 require => Package['nginx'], 71 require => Package['nginx'],
72 notify => Service['nginx'] 72 notify => Service['nginx']
73 } 73 }
74 74
75 cron {'mirror': 75 cron {'mirror':
76 ensure => present, 76 ensure => present,
77 command => 'hg pull -q -u -R /var/www/downloads/', 77 command => 'hg pull -q -u -R /var/www/downloads/',
78 environment => hiera('cron::environment', []), 78 environment => hiera('cron::environment', []),
79 user => hg, 79 user => hg,
80 minute => '*/10' 80 minute => '3-59/20'
81 } 81 }
82 82
83 file {'/var/www/devbuilds': 83 file {'/var/www/devbuilds':
84 ensure => directory, 84 ensure => directory,
85 owner => rsync 85 owner => rsync
86 } 86 }
87 87
88 user {'rsync': 88 user {'rsync':
89 ensure => present, 89 ensure => present,
90 home => '/home/rsync', 90 home => '/home/rsync',
(...skipping 25 matching lines...) Expand all
116 ensure => present, 116 ensure => present,
117 require => [File['/home/rsync/.ssh/id_rsa'], 117 require => [File['/home/rsync/.ssh/id_rsa'],
118 File['/var/www/devbuilds']], 118 File['/var/www/devbuilds']],
119 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org: . /var/www/devbuilds', 119 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org: . /var/www/devbuilds',
120 environment => hiera('cron::environment', []), 120 environment => hiera('cron::environment', []),
121 user => rsync, 121 user => rsync,
122 hour => '*', 122 hour => '*',
123 minute => '4-54/10' 123 minute => '4-54/10'
124 } 124 }
125 } 125 }
OLDNEW
« no previous file with comments | « manifests/webserver.pp ('k') | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld