OLD | NEW |
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 ) inherits nginx::params { | 5 ) inherits nginx::params { |
6 | 6 |
7 include apt | |
8 | |
9 apt::source {'nginx': | 7 apt::source {'nginx': |
10 location => "http://nginx.org/packages/ubuntu", | 8 location => "http://nginx.org/packages/ubuntu", |
11 repos => "nginx", | 9 repos => "nginx", |
12 key => "ABF5BD827BD9BF62", | 10 key => "ABF5BD827BD9BF62", |
13 key_source => "http://nginx.org/keys/nginx_signing.key" | 11 key_source => "http://nginx.org/keys/nginx_signing.key" |
14 } | 12 } |
15 | 13 |
16 # Ensures that nginx is not installed from the Ubuntu sources | 14 # Ensures that nginx is not installed from the Ubuntu sources |
17 package {'nginx-common': | 15 package {'nginx-common': |
18 ensure => purged, | 16 ensure => purged, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 120 } |
123 | 121 |
124 service {'nginx': | 122 service {'nginx': |
125 ensure => running, | 123 ensure => running, |
126 enable => true, | 124 enable => true, |
127 restart => '/etc/init.d/nginx reload', | 125 restart => '/etc/init.d/nginx reload', |
128 hasstatus => true, | 126 hasstatus => true, |
129 require => File['/etc/nginx/nginx.conf'] | 127 require => File['/etc/nginx/nginx.conf'] |
130 } | 128 } |
131 } | 129 } |
OLD | NEW |