Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 Loading... | |
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, { |
mathias
2018/03/05 15:28:35
Please use quotes (') around the type name.
Fred
2018/03/08 09:16:11
Acknowledged.
| |
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 |
LEFT | RIGHT |