puppetlabs-mysql icon indicating copy to clipboard operation
puppetlabs-mysql copied to clipboard

Incorrect ruby binding for Ubuntu 22.04

Open steveames opened this issue 3 years ago • 0 comments

Describe the Bug

On Ubuntu 22.04 the module is attempting to install libmysql-ruby instead of the correct ruby-mysql2. This is caused because most of the checks for Ubuntu version use versioncmp and >= 20.04. However for ruby each version is separately enumerated and there is no entry for 22.04. Adding one will fix this.

 '22.04' => 'ruby-mysql2', # jammy

As it stands now this fails everytime because there is no such module as libmuysql-ruby on Ubuntu 22.04

Expected Behavior

mysql and bindings are installed properly on the target OS.

Steps to Reproduce

class { 'mysql::client': package_name => 'mariadb-client', bindings_enable => true, }

Environment

  • Version 13.0.0
  • Platform Ubuntu 22.04

Additional Context

Add any other context about the problem here.

steveames avatar Sep 12 '22 14:09 steveames