Puppet Class: mariadb::monitor_backup_script

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

Overview

Installs the scripts and dependencies, but doesn't create new alerts (that is done on monitor_backup define)



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/mariadb/manifests/monitor_backup_script.pp', line 3

class mariadb::monitor_backup_script {
    require_package(
        'python3-pymysql',  # to connect to the backup metadata db
        'python3-arrow',    # to print human-friendly dates
    )

    file { '/usr/local/bin/check_mariadb_backups.py':
        ensure => present,
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/mariadb/check_mariadb_backups.py',
    }
}