Skip to content

Commit

Permalink
Merge pull request voxpupuli#1251 from ekohl/optional-paths
Browse files Browse the repository at this point in the history
Propery handle ${client_body,proxy}_temp_path
  • Loading branch information
dhollinger authored Oct 1, 2018
2 parents a0d34e7 + 507bc94 commit a96e955
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,18 @@
group => $log_group,
}

file {$client_body_temp_path:
ensure => directory,
owner => $daemon_user,
if $client_body_temp_path {
file {$client_body_temp_path:
ensure => directory,
owner => $daemon_user,
}
}


file {$proxy_temp_path:
ensure => directory,
owner => $daemon_user,
if $proxy_temp_path {
file {$proxy_temp_path:
ensure => directory,
owner => $daemon_user,
}
}

unless $confd_only {
Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# }
class nginx (
### START Nginx Configuration ###
$client_body_temp_path = $nginx::params::client_body_temp_path,
Variant[Stdlib::Absolutepath, Boolean] $client_body_temp_path = $nginx::params::client_body_temp_path,
Boolean $confd_only = false,
Boolean $confd_purge = false,
$conf_dir = $nginx::params::conf_dir,
Expand All @@ -45,7 +45,7 @@
Variant[String, Array[String]] $nginx_error_log = "${log_dir}/${nginx::params::nginx_error_log_file}",
Nginx::ErrorLogSeverity $nginx_error_log_severity = 'error',
$pid = $nginx::params::pid,
$proxy_temp_path = $nginx::params::proxy_temp_path,
Variant[Stdlib::Absolutepath, Boolean] $proxy_temp_path = $nginx::params::proxy_temp_path,
$root_group = $nginx::params::root_group,
$run_dir = $nginx::params::run_dir,
$sites_available_owner = $nginx::params::sites_available_owner,
Expand Down

0 comments on commit a96e955

Please sign in to comment.