Skip to content

Commit

Permalink
validate all arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Haughton committed Oct 20, 2013
1 parent 90e8be6 commit 8eb347d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@
mode => '0644',
notify => Class['nginx::service'],
}

validate_array($index_files)

# # Shared Variables
$ensure_real = $ensure ? {
Expand Down
2 changes: 2 additions & 0 deletions manifests/resource/mailhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? {
Expand Down

0 comments on commit 8eb347d

Please sign in to comment.