Update MySQL configuration for MariaDB server

This commit is contained in:
Z. Cliffe Schreuders
2024-08-08 02:19:59 +01:00
parent a183aa1700
commit 685acf0300
4 changed files with 23 additions and 6 deletions

View File

@@ -7,12 +7,29 @@ user { 'mysql':
group { 'mysql':
ensure => 'present',
} ->
file { '/var/log/mysql':
ensure => 'directory',
owner => 'mysql',
group => 'mysql',
mode => '0755',
} ->
class {'::mysql::server':
class { '::mysql::server':
package_name => 'mariadb-server',
service_name => 'mariadb',
package_manage => false, # avoid managing the client package
service_manage => true, # this doesn't work (workaround below)
package_manage => false,
service_manage => true,
override_options => {
'mysqld' => {
'ssl' => false,
'skip-ssl' => true,
'require_secure_transport' => false,
},
'client' => {
'ssl' => false,
}
}
} ->
exec { 'start_and_enable_mariadb':

View File

@@ -21,7 +21,7 @@
<!-- exclude any base except bookworm and buster and stretch -->
<conflict>
<module_path>.*bases/(?!.*debian_(bookworm|buster|stretch).*)</module_path>
<module_path>.*bases/(?!debian_(bookworm|buster|stretch)).*</module_path>
</conflict>
<!--Cannot co-exist with other MySQL installations-->