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

Fix legacy facts #391

Closed
joneswac opened this issue Jul 2, 2024 · 1 comment
Closed

Fix legacy facts #391

joneswac opened this issue Jul 2, 2024 · 1 comment

Comments

@joneswac
Copy link

joneswac commented Jul 2, 2024

Puppet version 8 deprecates legacy facts: https://www.puppet.com/docs/puppet/7/core_facts.html#legacy-facts

There are a variety of these through this module that need to be updated.

Example:
with legacy facts

    default: {
      case $::operatingsystem {
        default: {
          fail("Unsupported platform: ${::osfamily}/${::operatingsystem}")
        }
      }
    }

fixed to modern facts

default: {
      case $facts['os']['name'] {
        default: {
          fail("Unsupported platform: ${facts['os']['family']}/${facts['os']['name']}")
        }
      }
    }
@joneswac
Copy link
Author

joneswac commented Jul 2, 2024

Apologies, my system installed a very old version of this module.

@joneswac joneswac closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant