Open bostrowski13 opened 6 years ago
worth noting, this is the contents of my map file.
map $http_upgrade $connection_upgrade {
default Upgrade;
'' close;
}
Here is a config that should do what you want. Without having to add a file to the puppet module.
Puppet code:
nginx::resource::map{ 'connection_upgrade':
ensure => present,
string => '$http_upgrade'
default => upgrade,
mappings => {
"''" => close
}
}
Hiera:
nginx::string_mappings:
connection_upgrade:
default: upgrade
string: $http_upgrade
mappings:
"''": close
Hello I have exactly the same issue. I just want to include a file with redirections pattern inside it (like 1800 redirections) according to the doc it's possible but the resource will not allow it : https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/map.pp#L68
this line
Variant[Array, Hash] $mappings,
should be:
Optional[Variant[Array, Hash]] $mappings,
Target machine: RHEL 7.x PE 2018.1.2 on RHEL 7.x Module Version: 'puppet-nginx', '0.13.0'
Trying to deploy a load balancer for in front of a k8s cluster.
the issue i'm having is that the "map" resource is throwing:
From the example in the manifest for resource, it looks like i can just use the "include_files" param, but its throwing he above error.