fix: simpleproxy create cachedirs

- ensure the '/var/cache/nginx' directory exists
This commit is contained in:
Ben Vincent 2024-07-09 23:27:51 +10:00
parent 0c1fd63b7d
commit e8c8f5c1d6

View File

@ -99,6 +99,8 @@ class profiles::nginx::simpleproxy (
# merge the hashes conditionally # merge the hashes conditionally
$nginx_parameters = merge($defaults, $extras_hash) $nginx_parameters = merge($defaults, $extras_hash)
mkdir::p {'/var/cache/nginx':}
# manage the nginx class # manage the nginx class
class { 'nginx': class { 'nginx':
proxy_cache_path => { proxy_cache_path => {