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

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

Issue 29335826: Issue 3634 - Update Nginx to 1.8.1-1+precise0 (Closed)
Patch Set: Created Feb. 6, 2016, 8:21 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 class nginx ( 1 class nginx (
2 $worker_processes = $nginx::params::worker_processes, 2 $worker_processes = $nginx::params::worker_processes,
3 $worker_connections = $nginx::params::worker_connections, 3 $worker_connections = $nginx::params::worker_connections,
4 $ssl_session_cache = $nginx::params::ssl_session_cache, 4 $ssl_session_cache = $nginx::params::ssl_session_cache,
5 $geoip_country = undef, 5 $geoip_country = undef,
6 $geoip_city = undef, 6 $geoip_city = undef,
7 ) inherits nginx::params { 7 ) inherits nginx::params {
8 8
9 apt::ppa {'ppa:nginx/stable': 9 apt::ppa {'ppa:nginx/stable':
10 } 10 }
11 11
12 apt::source {'nginx': 12 apt::source {'nginx':
13 ensure => 'absent', 13 ensure => 'absent',
14 } 14 }
15 15
16 exec {'purge-nginx': 16 exec {'purge-nginx':
17 command => '/usr/bin/apt-get -y purge nginx', 17 command => '/usr/bin/apt-get -y purge nginx',
18 logoutput => true, 18 logoutput => true,
19 path => '/usr/sbin:/usr/bin:/sbin:/bin', 19 path => '/usr/sbin:/usr/bin:/sbin:/bin',
20 refreshonly => true, 20 refreshonly => true,
21 returns => [0, 100], 21 returns => [0, 100],
22 subscribe => Apt::Ppa['ppa:nginx/stable'], 22 subscribe => Apt::Ppa['ppa:nginx/stable'],
23 } 23 }
24 24
25 package {'nginx': 25 package {'nginx':
26 ensure => '1.8.0-1+precise1', 26 ensure => '1.8.1-1+precise0',
27 require => Exec['purge-nginx'], 27 require => Exec['purge-nginx'],
28 } 28 }
29 29
30 user {'nginx': 30 user {'nginx':
31 ensure => 'present', 31 ensure => 'present',
32 require => Package['nginx'], 32 require => Package['nginx'],
33 } 33 }
34 34
35 File { 35 File {
36 owner => root, 36 owner => root,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 require => File['/etc/nginx/nginx.conf'] 194 require => File['/etc/nginx/nginx.conf']
195 } 195 }
196 196
197 file {'/usr/share/nginx/html/50x.html': 197 file {'/usr/share/nginx/html/50x.html':
198 mode => 0644, 198 mode => 0644,
199 owner => 'root', 199 owner => 'root',
200 require => Package['nginx'], 200 require => Package['nginx'],
201 source => 'puppet:///modules/nginx/50x.html', 201 source => 'puppet:///modules/nginx/50x.html',
202 } 202 }
203 } 203 }
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