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

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

Issue 11439212: Add server21 as updateserver (Closed)
Patch Set: Created Aug. 16, 2013, 12:32 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
OLDNEW
(Empty)
1 class updateserver {
2 class {'nginx':
3 worker_processes => 2,
4 worker_connections => 4000,
5 ssl_session_cache => off,
6 }
7
8 File {
9 owner => root,
10 group => root,
11 mode => 0644,
12 }
Wladimir Palant 2013/08/16 13:11:02 I would rather move this down - this is only relev
Felix Dahlke 2013/08/16 14:07:53 Keeping all files owned by root, as discussed.
13
14 file {'/var/www':
15 ensure => directory,
16 owner => nginx,
17 mode => 0755,
18 require => Package['nginx']
19 }
20
21 file {'/var/www/update':
22 ensure => directory,
23 owner => nginx,
24 mode => 0755
25 }
26
27 file {'/var/www/update/adblockplusie':
28 ensure => directory,
29 owner => nginx,
30 mode => 0755
31 }
32
33 file {'/var/www/update/adblockplusie/update.json':
34 ensure => file,
Wladimir Palant 2013/08/16 13:11:02 Maybe use nginx/0644 rather than having root as ow
Felix Dahlke 2013/08/16 14:07:53 As discussed, owner is root for now.
35 source => 'puppet:///modules/updateserver/adblockplusie/update.json'
36 }
37
38 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key':
39 ensure => file,
40 notify => Service['nginx'],
41 before => Nginx::Hostconfig['update.adblockplus.org'],
42 mode => 0400,
43 source => 'puppet:///modules/private/adblockplus.org_sslcert.key'
44 }
45
46 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem':
47 ensure => file,
48 notify => Service['nginx'],
49 before => Nginx::Hostconfig['update.adblockplus.org'],
50 mode => 0400,
51 source => 'puppet:///modules/private/adblockplus.org_sslcert.pem'
52 }
53
54 nginx::hostconfig{'update.adblockplus.org':
55 source => 'puppet:///modules/updateserver/update.adblockplus.org',
56 enabled => true
57 }
58
59 file {'/etc/logrotate.d/nginx_update.adblockplus.org':
60 ensure => file,
61 mode => 0444,
62 require => Nginx::Hostconfig['update.adblockplus.org'],
63 source => 'puppet:///modules/updateserver/logrotate'
64 }
65 }
OLDNEW

Powered by Google App Engine
This is Rietveld