Skip to content

Commit

Permalink
Merge pull request #1558 from bastelfreak/stdlib
Browse files Browse the repository at this point in the history
puppetlabs/stdlib: Allow 9.x & puppetlabs/concat: Allow 8.x & 9.x
  • Loading branch information
bastelfreak authored Jun 22, 2023
2 parents cf71ed1 + 33301b3 commit 1cf3b1d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ fixtures:
apt: "https://github.com/puppetlabs/puppetlabs-apt.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
yumrepo_core:
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
puppet_version: ">= 6.0.0"
yumrepo_core: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
$map_hash_bucket_size = $nginx::map_hash_bucket_size
$map_hash_max_size = $nginx::map_hash_max_size
$mime_types = $nginx::mime_types_preserve_defaults ? {
true => merge($nginx::params::mime_types,$nginx::mime_types),
true => $nginx::params::mime_types + $nginx::mime_types,
default => $nginx::mime_types,
}
$multi_accept = $nginx::multi_accept
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
}
}

$_module_parameters = merge($_module_defaults, $_module_os_overrides)
$_module_parameters = $_module_defaults + $_module_os_overrides
### END Operating System Configuration

### Referenced Variables
Expand Down
2 changes: 1 addition & 1 deletion manifests/resource/upstream.pp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

if ! empty($members) {
$members.each |$member,$values| {
$member_values = merge($member_defaults, $values, { 'upstream' => $name, 'context' => $context })
$member_values = $member_defaults + $values + { 'upstream' => $name, 'context' => $context }

if $context == 'stream' and $member_values['route'] {
fail('The parameter "route" is not available for upstreams with context "stream"')
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"dependencies": [
{
"name": "puppetlabs/concat",
"version_requirement": ">= 4.1.0 < 8.0.0"
"version_requirement": ">= 4.1.0 < 10.0.0"
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 5.0.0 < 9.0.0"
"version_requirement": ">= 5.0.0 < 10.0.0"
}
],
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 7.0.0 < 8.0.0"
"version_requirement": ">= 7.0.0 < 9.0.0"
}
],
"operatingsystem_support": [
Expand Down

0 comments on commit 1cf3b1d

Please sign in to comment.