Open tetsuo13 opened 1 year ago
I orginally reported this and have been getting nothing but the runaround from this team. At this point the module should be renamed the puppetlabs-mariaDB module.
I just tried a later version and indeed, it feels like they want to force MariaDB down our throat!
I am having the same problem. after unsuccessfully trying a few different configurations like package_name above, I attempted to look through the module's files to see if there was some default mariaDB install commands that I could edit or remove, but I didn't even find one reference to mariaDB outside of a mysql_datadir file that isn't even related to Ubuntu. what gives? seems like I have no choice but to remove this module.
The relevant configuration is https://github.com/puppetlabs/puppetlabs-mysql/blob/main/manifests/params.pp#L154-L173
'Debian': {
if $facts['os']['name'] == 'Debian' or $facts['os']['name'] == 'Raspbian' or
($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '20.04') >= 0) {
$provider = 'mariadb'
} else {
$provider = 'mysql'
}
if $provider == 'mariadb' {
$client_package_name = 'mariadb-client'
$server_package_name = 'mariadb-server'
$server_service_name = 'mariadb'
$client_dev_package_name = 'libmariadbclient-dev'
$daemon_dev_package_name = 'libmariadbd-dev'
} else {
$client_package_name = 'mysql-client'
$server_package_name = 'mysql-server'
$server_service_name = 'mysql'
$client_dev_package_name = 'libmysqlclient-dev'
$daemon_dev_package_name = 'libmysqld-dev'
}
I was able to override the MariaDB configuration back to mysql using the following
mysql::server::package_name: 'mysql-server'
mysql::client::package_name: 'mysql-client'
mysql::server::service_name: 'mysql'
mysql::bindings::client_dev_package_name: 'libmysqlclient-dev'
mysql::bindings::daemon_dev_package_name: 'libmysqld-dev'
However, this should just be fixed upstream in a better way.
Describe the Bug
Beginning with v13.0.0 of this module, the default behavior on Ubuntu versions 20.04 and greater is to install MariaDB. As of this writing, the README doesn't mention this behavior nor how to install MySQL instead. I tried using the
package_name
parameter of "mysql-server" however that appears to have mixed results and ultimately failing to install MySQL as expected.This behavior appears to be first documented in https://github.com/puppetlabs/puppetlabs-mysql/pull/1449#issuecomment-1489150042 with no workarounds.
Expected Behavior
With one or more parameters set, MySQL should be installed.
Steps to Reproduce
As an example, using the following
on a fresh install of Ubuntu 22.04, this is the output:
Environment
Additional Context