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

puppetlabs-firewall 5.0.0 is not compatible with stdlib 9.0.0 #1137

Closed
corporate-gadfly opened this issue Jun 1, 2023 · 8 comments
Closed

Comments

@corporate-gadfly
Copy link
Contributor

Describe the Bug

puppetlabs-firewall 5.0.0 is not compatible with stdlib 9.0.0

Expected Behavior

Make a future version of puppetlabs-firewall compatible with stdlib 9.0.0

Steps to Reproduce

Steps to reproduce the behavior:

  1. Bump stdlib to 9.0.0
  2. You will receive an error:
Server Error: Evaluation Error: Error while evaluating a Function Call, deprecation. ensure_packages.
This function is deprecated, please use stdlib::ensure_packages instead.
at ["/etc/puppetlabs/code/environments/qa/modules/firewall/manifests/linux/redhat.pp", 69]:["/etc/puppetlabs/code/environments/qa/site/profiles/manifests/base.pp", 12]
(file: /etc/puppetlabs/code/environments/qa/modules/firewall/manifests/linux/redhat.pp, line: 69, column: 5) on node xxx.yyy.zzz

Environment

  • Node is CentOS Stream 8
  • Puppet agent 8.0.0
  • Puppet server 8.0.0
@LukasAud
Copy link
Contributor

This issue should have been addressed in #1135. The module is currently pending a major release.

@mphilipps
Copy link

How long is this expected to take? Puppet 8 was released in April.

@ghost
Copy link

ghost commented Jun 30, 2023

Agree, this is one of the only mods which doesn't support it and would be good to know the timeframe for the major release

@robertc99
Copy link
Contributor

I'd like to also request a release. It would be nice to starting using stdlib 9 without getting warnings.

@corporate-gadfly
Copy link
Contributor Author

@LukasAud : I'm not a puppet expert, but regarding #1135, why rely on stdlib features only available in 9.x. How about something like the following (which will presumably work with both stdlib 8.x and 9.x)?

if $package_name {
    package { $package_name:
        ensure => $package_ensure,
    }
}

@robertc99
Copy link
Contributor

that would fail with a duplicate resource error if the package is loaded elsewhere. the entire point of ensure_packages is thats its safe against redefinitiion.

@corporate-gadfly
Copy link
Contributor Author

TY, makes sense.

@corporate-gadfly
Copy link
Contributor Author

Closing as #1135 has been merged and was released with 6.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants