validate all arrays

This commit is contained in:
Matthew Haughton 2013-10-20 17:58:25 -04:00
parent 59cf9148c2
commit 354a68ef63
3 changed files with 7 additions and 0 deletions

View file

@ -121,6 +121,8 @@ define nginx::resource::location (
mode => '0644',
notify => Class['nginx::service'],
}
validate_array($index_files)
# # Shared Variables
$ensure_real = $ensure ? {

View file

@ -64,6 +64,8 @@ define nginx::resource::mailhost (
group => 'root',
mode => '0644',
}
validate_array($server_name)
# Add IPv6 Logic Check - Nginx service will not start if ipv6 is enabled
# and support does not exist for it in the kernel.

View file

@ -140,6 +140,9 @@ define nginx::resource::vhost (
validate_array($location_allow)
validate_array($location_deny)
validate_array($proxy_set_header)
validate_array($index_files)
validate_array($server_name)
File {
ensure => $ensure ? {