| 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 $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 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 file {'/etc/nginx/sites-available': | 53 file {'/etc/nginx/sites-available': |
| 54 ensure => directory, | 54 ensure => directory, |
| 55 require => Package['nginx'] | 55 require => Package['nginx'] |
| 56 } | 56 } |
| 57 | 57 |
| 58 file {'/etc/nginx/sites-enabled': | 58 file {'/etc/nginx/sites-enabled': |
| 59 ensure => directory, | 59 ensure => directory, |
| 60 require => Package['nginx'] | 60 require => Package['nginx'] |
| 61 } | 61 } |
| 62 | 62 |
| 63 file {'/var/cache/nginx': |
| 64 before => Service['nginx'], |
| 65 ensure => directory, |
| 66 require => Package['nginx'], |
| 67 } |
| 68 |
| 63 define hostconfig ( | 69 define hostconfig ( |
| 64 $domain = $title, | 70 $domain = $title, |
| 65 $alt_names = [], | 71 $alt_names = [], |
| 66 $log, | 72 $log, |
| 67 $log_format = 'main', | 73 $log_format = 'main', |
| 68 $is_default = false, | 74 $is_default = false, |
| 69 $source = undef, | 75 $source = undef, |
| 70 $content = undef, | 76 $content = undef, |
| 71 $global_config = undef, | 77 $global_config = undef, |
| 72 $certificate = undef, | 78 $certificate = undef, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 187 } |
| 182 | 188 |
| 183 service {'nginx': | 189 service {'nginx': |
| 184 ensure => running, | 190 ensure => running, |
| 185 enable => true, | 191 enable => true, |
| 186 restart => '/etc/init.d/nginx reload', | 192 restart => '/etc/init.d/nginx reload', |
| 187 hasstatus => true, | 193 hasstatus => true, |
| 188 require => File['/etc/nginx/nginx.conf'] | 194 require => File['/etc/nginx/nginx.conf'] |
| 189 } | 195 } |
| 190 } | 196 } |
| OLD | NEW |