feat: manage nginx resource ordering

- ensure the package is installed before creating directories
- ensure nginx is restarted when vhost config changes
This commit is contained in:
2025-06-09 10:44:13 +10:00
parent 1fb46b5ab6
commit b59afbe1af
2 changed files with 15 additions and 6 deletions
+5 -1
View File
@@ -137,7 +137,11 @@ class profiles::nginx::simpleproxy (
service { 'nginx':
ensure => true,
enable => true,
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
subscribe => [
File[$selected_ssl_cert],
File[$selected_ssl_key],
Nginx::Resource::Server[$nginx_vhost]
],
}
}
}