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

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

Issue 29691616: #5080 - Extend fileserver::repository to optionally create repository users (Closed)
Patch Set: Use quotes around the type name Created March 8, 2018, 9:15 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
« 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 # == Type: adblockplus::web::fileserver::repository 1 # == Type: adblockplus::web::fileserver::repository
2 # 2 #
3 # Manage a repository on a fileserver. 3 # Manage a repository on a fileserver.
4 # 4 #
5 # A repository is a site where a group of people can upload and artifacts. 5 # A repository is a site where a group of people can upload and artifacts.
6 # 6 #
7 # In its current form, a repository is simply a directory exposed on a web 7 # In its current form, a repository is simply a directory exposed on a web
8 # server. This may evolve to make use of more advanced repositories in the 8 # server. This may evolve to make use of more advanced repositories in the
9 # future (proxy to repository manager, or 3rd-party service, etc). 9 # future (proxy to repository manager, or 3rd-party service, etc).
10 # 10 #
(...skipping 23 matching lines...) Expand all
34 file {"$repository_directory": 34 file {"$repository_directory":
35 ensure => ensure_directory_state($ensure), 35 ensure => ensure_directory_state($ensure),
36 group => "www-$name", 36 group => "www-$name",
37 mode => '0775', 37 mode => '0775',
38 require => [ 38 require => [
39 File["$repositories_directory"], 39 File["$repositories_directory"],
40 Group["www-$name"], 40 Group["www-$name"],
41 ], 41 ],
42 } 42 }
43 43
44 ensure_resources(adblockplus::user, $users, { 44 ensure_resources('adblockplus::user', $users, {
45 ensure => $ensure, 45 ensure => $ensure,
46 password_hash => '*', 46 password_hash => '*',
47 groups => ["www-$name"], 47 groups => ["www-$name"],
48 }) 48 })
49 49
50 realize(File[$adblockplus::directory]) 50 realize(File[$adblockplus::directory])
51 51
52 file {"/var/www/$repository_host": 52 file {"/var/www/$repository_host":
53 ensure => ensure_symlink_state($ensure), 53 ensure => ensure_symlink_state($ensure),
54 target => "$repository_directory", 54 target => "$repository_directory",
55 require => File["$repository_directory"], 55 require => File["$repository_directory"],
56 } 56 }
57 } 57 }
58 58
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