fix: create nginx cache dirs before nginx class

This commit is contained in:
Ben Vincent 2024-07-09 23:29:56 +10:00
parent e8c8f5c1d6
commit f63cf2f654

View File

@ -99,7 +99,9 @@ class profiles::nginx::simpleproxy (
# merge the hashes conditionally
$nginx_parameters = merge($defaults, $extras_hash)
mkdir::p {'/var/cache/nginx':}
mkdir::p {'/var/cache/nginx':
before => Class['nginx'],
}
# manage the nginx class
class { 'nginx':