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

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

Issue 29551585: #2317 - provide role fileserver for eyeofiles.com (Closed) Base URL: https://hg1/infrastructure
Patch Set: Created Sept. 21, 2017, 8:46 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
OLDNEW
(Empty)
1 # This class is a quickfix for solving http://hub.eyeo.com/issues/2295
2 class fileserver(
mathias 2017/09/21 11:43:20 This should be an entity within namespace adblockp
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
3 $domain,
4 $certificate,
5 $private_key,
6 $is_default=false
7 ) {
8
9 class {'nginx':
mathias 2017/09/21 11:43:20 Please use `include` when there are no explicit pa
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
10 }
11
12 File {
13 owner => 'root',
14 group => 'root',
15 mode => '0755',
16 }
17
18 # Root directory for serving files:
19 file {'/var/files':
mathias 2017/09/21 11:43:20 Probably obsolete, see below.
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
20 ensure => directory,
21 }
22
23 file {'/var/www':
mathias 2017/09/21 11:43:20 You can drop this one in favor of including the ad
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
24 ensure => directory,
25 }
26
27 # Directory with new group www-v8 where uploaders can be made members of:
mathias 2017/09/21 11:43:20 What for? That should be documented.
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
28 # Members are handled manually on-demand for now!
29 group {'www-v8':
30 ensure => present,
31 }->
mathias 2017/09/21 11:43:20 Please avoid using this form of relationship notat
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
32
33 file {'/var/files/v8':
mathias 2017/09/21 11:43:20 What for? This should be something with a more mea
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
34 ensure => directory,
35 group => 'www-v8',
36 mode => '0775',
37 }
38
39 #Symlink above directory into www:
40 file {'/var/www/v8':
mathias 2017/09/21 11:43:19 What for? That should be documented.
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
41 ensure => link,
42 target => '/var/files/v8',
43 require => [
44 File['/var/files/v8'],
45 Package['nginx'],
46 ],
47 }
48
49 nginx::hostconfig{$domain:
50 source => 'puppet:///modules/fileserver/site.conf',
51 is_default => $is_default,
52 certificate => $certificate,
53 private_key => $private_key,
54 log => 'access_log_update'
mathias 2017/09/21 11:43:20 Why *_update?
f.nicolaisen 2017/09/21 14:17:13 Acknowledged.
55 }
56 }
57
OLDNEW
« no previous file with comments | « modules/fileserver/files/site.conf ('k') | modules/private-stub/files/eyeofiles.com_sslcert.key » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld