feat: restart nginx on ssl change
- manage nginx service from simpleproxy class - ensure nginx restarts when ssl certificates are changed
This commit is contained in:
parent
933427e861
commit
4bf4b42fdf
@ -113,6 +113,7 @@ class profiles::nginx::simpleproxy (
|
|||||||
proxy_cache_max_size => '1024m',
|
proxy_cache_max_size => '1024m',
|
||||||
proxy_cache_inactive => '10m',
|
proxy_cache_inactive => '10m',
|
||||||
proxy_temp_path => '/var/cache/nginx/cache_temp',
|
proxy_temp_path => '/var/cache/nginx/cache_temp',
|
||||||
|
service_manage => false,
|
||||||
}
|
}
|
||||||
|
|
||||||
# create the nginx vhost with the merged parameters
|
# create the nginx vhost with the merged parameters
|
||||||
@ -132,5 +133,11 @@ class profiles::nginx::simpleproxy (
|
|||||||
value => 'on',
|
value => 'on',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service { 'nginx':
|
||||||
|
ensure => true,
|
||||||
|
enable => true,
|
||||||
|
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user