jfryman/puppet-nginx — pull request #147 by jtreminio (2013-10-07 06:26:23+00:00)
Title: location_cfg_append can now acccept an array of values

Previously, location_cfg_append would only accept a single value, now you can pass an array:

$fastcgi_param = [
'PATH_INFO $fastcgi_path_info',
'PATH_TRANSLATED $document_root$fastcgi_path_info',
'SCRIPT_FILENAME $document_root$fastcgi_script_name',
]

nginx::resource::location { "${server_name}-php":
ensure => present,
vhost => $server_name,
location => '~ \.php$',
proxy => undef,
try_files => ['$uri', '$uri/', "/${try_files}?\$args"],
www_root => $www_root,
location_cfg_append => {
'fastcgi_split_path_info' => '^(.+\.php)(/.+)$',
'fastcgi_param' => $fastcgi_param,
'fastcgi_pass' => $fastcgi_pass,
'fastcgi_index' => 'index.php',
'include' => 'fastcgi_params'
},
notify => Class['nginx::service'],
}