Description
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:
- Install Enterprise Linux 10 operating system (RedHat / Rocky / Alma)
- Install OpenVox puppet agent 8 (any version aligned to the 8 release)
- include puppetlabs-mysql 16.2.0 on your puppet master modules
- include mysql::server manifest with a basic set of parameters (inline with module example)
- 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