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

Side by Side Diff: modules/nginx/manifests/module.pp

Issue 29481620: #1990 - Introduce nginx::module type (Closed)
Patch Set: Created July 6, 2017, 11:08 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 | « modules/nginx/manifests/init.pp ('k') | modules/nginx/templates/module.erb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 define nginx::module (
2 $ensure = 'present',
3 $package = {},
4 $path = "modules/$name",
5 ) {
6
7 include nginx
8 include stdlib
9
10 $id = "nginx-module-$title"
11
12 ensure_resource('package', $id, merge({
13 'ensure' => $ensure,
14 }, $package))
15
16 if ensure_state(Package[$id]) {
17
18 concat::fragment {$id:
19 content => template('nginx/module.erb'),
20 order => '01',
21 target => '/etc/nginx/nginx.conf',
22 }
23
24 Concat::Fragment[$id] <- Package[$id]
25 Concat::Fragment[$id] ~> Service['nginx']
26 }
27 }
OLDNEW
« no previous file with comments | « modules/nginx/manifests/init.pp ('k') | modules/nginx/templates/module.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld