Puppet Class: mariadb::mysqld_safe

Defined in:
modules/mariadb/manifests/mysqld_safe.pp

Overview

Make /opt/wmf-mariadb10/bin/mysqld_safe managed by puppet. This allows us to make quick changes to harden the wrapper without rebuilding the custom wmf-mariadb10 package In the future we can hopefully discard mysqld_safe in favour of a custom systemd service unit

Parameters:

  • package (Any) (defaults to: 'wmf-mariadb10')


6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/mariadb/manifests/mysqld_safe.pp', line 6

class mariadb::mysqld_safe(
    $package = 'wmf-mariadb10',
    ) {

    file { "/opt/${package}/bin/mysqld_safe":
        ensure => present,
        owner  => 'root',
        group  => 'mysql',
        mode   => '0755',
        source => 'puppet:///modules/mariadb/mysqld_safe',
    }
}