Puppet Class: role::mariadb::cloudinfra

Defined in:
modules/role/manifests/mariadb/cloudinfra.pp

Overview

This role is to be used for the `cloudinfra` labs project instances. This is going to hold the labspuppet database previously housed on the production m5 shard, and may hold others in future.

Parameters:

  • master (Boolean) (defaults to: false)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/role/manifests/mariadb/cloudinfra.pp', line 4

class role::mariadb::cloudinfra (
    Boolean $master = false,
) {
    system::role { 'mariadb::misc':
        description => 'Cloudinfra database',
    }

    $mysql_role = $master ? {
        true  => 'master',
        false => 'slave',
    }

    include ::profile::standard
    include ::profile::mariadb::monitor
    include ::profile::base::firewall

    class { 'profile::mariadb::monitor::prometheus':
        mysql_group => 'misc',
        mysql_role  => $mysql_role,
    }

    include ::profile::mariadb::grants::cloudinfra
    class { '::profile::mariadb::cloudinfra':
        master => $master,
    }
}