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

move zabbixapi gem installation into own class #903

Merged
merged 1 commit into from Nov 7, 2023
Merged

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 6, 2023

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@evgeni evgeni added the enhancement New feature or request label Nov 6, 2023
@evgeni evgeni marked this pull request as ready for review November 6, 2023 21:05
'Debian' => ['make', 'g++', 'ruby-dev', 'ruby', 'pkg-config',],
default => [],
}
ensure_packages($compile_packages)
Copy link
Member

Choose a reason for hiding this comment

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

that is deprecated, please use the newer version:

Suggested change
ensure_packages($compile_packages)
stdlib::ensure_packages($compile_packages)

Copy link
Member Author

Choose a reason for hiding this comment

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

can I use this now w/o bumping stdlib to >= 9?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so

Copy link
Member Author

Choose a reason for hiding this comment

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

Then I'd prefer not to bump stdlib to >= 9 just yet.

# Determine correct zabbixapi version.
case $zabbix_version {
/^[56]\.[024]/: {
$zabbixapi_version = '5.0.0-alpha1'
Copy link
Member

Choose a reason for hiding this comment

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

Note to self: https://rubygems.org/gems/zabbixapi does only list a 5.0.0-alpha1 from 2021.

Comment on lines +6 to +7
$zabbix_version = $zabbix::params::zabbix_version,
$puppetgem = $zabbix::params::puppetgem,
Copy link
Member

Choose a reason for hiding this comment

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

Should this be String[1] for both?

Copy link
Member Author

Choose a reason for hiding this comment

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

In theory, yes.
In reality, we do not enforce these anywhere else, so I find it odd to do it here.

(read: we should do it globally, but not in this PR)

@evgeni evgeni merged commit fdbbd21 into master Nov 7, 2023
54 checks passed
@evgeni evgeni deleted the apigemclass branch November 7, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants