Merge pull request 'feat: restart nginx on ssl change' (#163) from neoloc/restart_nginx into develop

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/163
This commit is contained in:
Ben Vincent 2024-09-27 21:51:15 +10:00
commit 2013641720

View File

@ -113,6 +113,7 @@ class profiles::nginx::simpleproxy (
proxy_cache_max_size => '1024m',
proxy_cache_inactive => '10m',
proxy_temp_path => '/var/cache/nginx/cache_temp',
service_manage => false,
}
# create the nginx vhost with the merged parameters
@ -132,5 +133,11 @@ class profiles::nginx::simpleproxy (
value => 'on',
}
}
service { 'nginx':
ensure => true,
enable => true,
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
}
}
}