From 8eb347d2815db443451ad9621e4f8c98c11d1b5b Mon Sep 17 00:00:00 2001 From: Matthew Haughton Date: Sun, 20 Oct 2013 17:58:25 -0400 Subject: [PATCH] validate all arrays --- manifests/resource/location.pp | 2 ++ manifests/resource/mailhost.pp | 2 ++ manifests/resource/vhost.pp | 3 +++ 3 files changed, 7 insertions(+) diff --git a/manifests/resource/location.pp b/manifests/resource/location.pp index 64bc80445..3fd96e3f3 100644 --- a/manifests/resource/location.pp +++ b/manifests/resource/location.pp @@ -121,6 +121,8 @@ mode => '0644', notify => Class['nginx::service'], } + + validate_array($index_files) # # Shared Variables $ensure_real = $ensure ? { diff --git a/manifests/resource/mailhost.pp b/manifests/resource/mailhost.pp index dc0de601b..5279f0400 100644 --- a/manifests/resource/mailhost.pp +++ b/manifests/resource/mailhost.pp @@ -64,6 +64,8 @@ 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. diff --git a/manifests/resource/vhost.pp b/manifests/resource/vhost.pp index a31223ba3..15f167f41 100644 --- a/manifests/resource/vhost.pp +++ b/manifests/resource/vhost.pp @@ -140,6 +140,9 @@ validate_array($location_allow) validate_array($location_deny) + validate_array($proxy_set_header) + validate_array($index_files) + validate_array($server_name) File { ensure => $ensure ? {