Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib v9 support, use namespaced stdlib functions #1208

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$init_defaults = {
'MAX_OPEN_FILES' => '65535',
}.merge($elasticsearch::init_defaults)
}.stdlib::merge($elasticsearch::init_defaults)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add the hashes with +. then you don't need merge and don't need stdlib.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1217 and just close this PR?


if ($elasticsearch::ensure == 'present') {
file {
Expand Down Expand Up @@ -164,7 +164,7 @@
# }

# Generate Elasticsearch config
$data = merge(
$data = stdlib::merge(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really like to release a new version that allow 9.x before we start requiring 9.x
This makes it a bit easier to upgrade without breaking dependencies.

$elasticsearch::config,
{ 'path.data' => $elasticsearch::datadir },
{ 'path.logs' => $elasticsearch::logdir },
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.0 < 9.0.0"
"version_requirement": ">= 9.0.0 < 10.0.0"
}
],
"operatingsystem_support": [
Expand Down Expand Up @@ -78,7 +78,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 7.0.0 < 8.0.0"
"version_requirement": ">= 7.0.0 < 9.0.0"
ggabijaa marked this conversation as resolved.
Show resolved Hide resolved
}
]
}
Loading