File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3131# @param service_config_check
3232# whether to en- or disable the config check via nginx -t on config changes
3333#
34+ # @param service_config_check_command
35+ # Command to execute to validate the generated configuration.
36+ #
3437class nginx (
3538 ### START Nginx Configuration ###
3639 Variant[Stdlib::Absolutepath, Boolean] $client_body_temp_path = $nginx::params::client_body_temp_path,
195198 $service_name = ' nginx' ,
196199 $service_manage = true ,
197200 Boolean $service_config_check = false ,
201+ String $service_config_check_command = ' nginx -t' ,
198202 # ## END Service Configuration ###
199203
200204 # ## START Hiera Lookups ###
Original file line number Diff line number Diff line change 77
88 if $nginx::service_config_check {
99 exec { 'nginx_config_check' :
10- command => ' nginx -t ' ,
10+ command => $ nginx::service_config_check_command ,
1111 refreshonly => true ,
1212 path => [
1313 ' /usr/local/sbin' ,
You can’t perform that action at this time.
0 commit comments