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

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

Issue 29481662: #1980 - Introduce puppet class adblockplus_web in downloadserver module (Closed)
Patch Set: Created July 6, 2017, 1:59 p.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 | « no previous file | 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 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
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':
mathias 2017/07/06 14:14:36 Now I get your question from earlier today. I am s
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld