Puppet Class: role::mariadb::cloudinfra
- Defined in:
- modules/role/manifests/mariadb/cloudinfra.pp
Overview
This role is to be used for the `cloudinfra` VPS project instances. It currently hosts the labspuppet database used for Cloud VPS Puppet ENC API and the web proxy service, and may hold others in future.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/role/manifests/mariadb/cloudinfra.pp', line 4
class role::mariadb::cloudinfra (
Boolean $master = false,
) {
system::role { 'mariadb::cloudinfra':
description => 'Cloudinfra database',
}
$mysql_role = $master ? {
true => 'master',
false => 'slave',
}
include ::profile::base::production
include ::profile::mariadb::monitor
include ::profile::firewall
include ::profile::mariadb::monitor::prometheus
include ::profile::mariadb::grants::cloudinfra
class { '::profile::mariadb::cloudinfra':
master => $master,
}
}
|