mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-20 13:50:45 +00:00
Update MySQL configuration for MariaDB server
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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-->
|
||||
|
||||
Reference in New Issue
Block a user