Merge pull request 'feat: edgecache updates' (#185) from neoloc/edgecache_pki into develop

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/185
This commit is contained in:
Ben Vincent 2024-12-07 23:51:57 +11:00
commit fd7ced66ce

View File

@ -105,13 +105,14 @@ class profiles::edgecache::nginx {
# manage the nginx class
class { 'nginx':
proxy_cache_path => {
"${data_root}/cache" => 'cache:128m',
"${data_root}/cache" => 'cache:256m',
},
proxy_cache_levels => '1:2',
proxy_cache_keys_zone => 'cache:128m',
proxy_cache_keys_zone => 'cache:256m',
proxy_cache_max_size => '30000m',
proxy_cache_inactive => '60d',
proxy_cache_inactive => '365d',
proxy_temp_path => "${data_root}/cache_tmp",
service_manage => false,
}
# create the nginx vhost with the merged parameters
@ -126,4 +127,10 @@ class profiles::edgecache::nginx {
* => $data,
}
}
service { 'nginx':
ensure => true,
enable => true,
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
}
}