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

Side by Side Diff: modules/adblockplus/manifests/web/fileserver.pp

Issue 29551585: #2317 - provide role fileserver for eyeofiles.com (Closed) Base URL: https://hg1/infrastructure
Patch Set: make repository into subdomains Created Sept. 22, 2017, 1:43 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: adblockplus::web::fileserver
2 #
3 # A fileserver serves multiple file repositories.
4 #
5 # === Parameters:
6 #
7 # [*fileserver_domain*]
8 # A string which is the name of the fileserver domain, under which
9 # each repository has a subdomain.
10 #
11 # [*certificate*]
12 # The name of the SSL certificate file within modules/private/files, if any.
13 # Requires a private_key as well.
14 #
15 # [*private_key*]
16 # The name of the private key file within modules/private/files, if any.
17 # Requires a certificate as well.
18 #
19 # [*is_default*]
20 # Passed on to nginx (whether or not the site config should be default).
21 #
22 # [*repositories*]
23 # A collection (hash) of repositories to serve.
24 #
25 class adblockplus::web::fileserver(
26 $fileserver_domain,
27 $certificate = undef,
28 $private_key = undef,
29 $is_default=false,
30 $repositories={},
31 ){
32
33 include nginx
34 include adblockplus
35 include adblockplus::web
36
37 # Root directory for serving repositories
38 realize(File[$adblockplus::directory])
39
40 file {[
41 "$adblockplus::directory/fileserver",
42 "$adblockplus::directory/fileserver/repositories"
43 ]:
44 ensure => directory,
45 }
46
47 ensure_resources('adblockplus::web::fileserver::repository', $repositories, {
48 ensure => 'present',
49 })
50 }
51
OLDNEW
« no previous file with comments | « hiera/roles/web/fileserver/eyeofiles.yaml ('k') | modules/adblockplus/manifests/web/fileserver/repository.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld