OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 ], | 30 ], |
31 } | 31 } |
32 | 32 |
33 user {'hg': | 33 user {'hg': |
34 ensure => present, | 34 ensure => present, |
35 comment => 'Mercurial client user', | 35 comment => 'Mercurial client user', |
36 home => '/home/hg', | 36 home => '/home/hg', |
37 managehome => true | 37 managehome => true |
38 } | 38 } |
39 | 39 |
40 file {'/var/www': | 40 class {'adblockplus::web': |
41 ensure => directory, | 41 directory => { |
42 owner => hg, | 42 owner => 'hg', |
43 mode => '0644', | 43 mode => '0644', |
| 44 } |
44 } | 45 } |
45 | 46 |
46 exec { "fetch_downloads": | 47 exec { "fetch_downloads": |
47 command => "hg clone https://hg.adblockplus.org/downloads /var/www/downloads
", | 48 command => "hg clone https://hg.adblockplus.org/downloads /var/www/downloads
", |
48 path => ["/usr/bin/", "/bin/"], | 49 path => ["/usr/bin/", "/bin/"], |
49 require => Package['mercurial'], | 50 require => Package['mercurial'], |
50 user => hg, | 51 user => hg, |
51 timeout => 0, | 52 timeout => 0, |
52 onlyif => "test ! -d /var/www/downloads" | 53 onlyif => "test ! -d /var/www/downloads" |
53 } | 54 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ensure => present, | 117 ensure => present, |
117 require => [File['/home/rsync/.ssh/id_rsa'], | 118 require => [File['/home/rsync/.ssh/id_rsa'], |
118 File['/var/www/devbuilds']], | 119 File['/var/www/devbuilds']], |
119 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org:
. /var/www/devbuilds', | 120 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org:
. /var/www/devbuilds', |
120 environment => hiera('cron::environment', []), | 121 environment => hiera('cron::environment', []), |
121 user => rsync, | 122 user => rsync, |
122 hour => '*', | 123 hour => '*', |
123 minute => '4-54/10' | 124 minute => '4-54/10' |
124 } | 125 } |
125 } | 126 } |
OLD | NEW |