Skip to content

incorrectly fails support checks for Enterprise Linux 10 #1673

Open
@ikonia

Description

@ikonia

Describe the Bug

using 16.2.0 puppetlabs-mysql module on Enterprise Linux 10 (multiple variants) the basic functionality incorrectly fails version compatibility checks when prepping to install database managed packages

puppetlabs-mysql only supports RedHat 7.0 and beyond.

Expected Behavior

module executes basic functionality during a puppet run and completes successfully (test was install rpm packages to support mysql/mariadb)

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install Enterprise Linux 10 operating system (RedHat / Rocky / Alma)
  2. Install OpenVox puppet agent 8 (any version aligned to the 8 release)
  3. include puppetlabs-mysql 16.2.0 on your puppet master modules
  4. include mysql::server manifest with a basic set of parameters (inline with module example)
  5. execute puppet run

Environment

  • Version 16.2.0
  • Platform Rocky Linux 10.0
  • OpenVox openvox-agent-8.19.2-1

Additional Context

Puppet run fails with

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Unsupported platform: puppetlabs-mysql only supports RedHat 7.0 and beyond. (file: /etc/puppetlabs/code/environments/production/modules/mysql/manifests/params.pp, line: 474, column: 5)

the version check looks like

## Additional graceful failures if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] < '7' and $facts['os']['name'] != 'Amazon' { fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 7.0 and beyond.")

however the facter output shows this should pass

[root@king consul]# facter os.family RedHat

[root@king consul]# facter os.release.major 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions