Page MenuHomePhabricator
Paste P11691

profile::mariadb::replication_lag
ActivePublic

Authored by jbond on Jun 29 2020, 9:39 AM.
Tags
None
Referenced Files
F31910524: raw.txt
Jun 29 2020, 9:39 AM
Subscribers
None
Profile::Mariadb::Replication_lag <| |> {
role => lookup('mariadb::mysql_role', { 'default_value' => 'slave' })
}

Event Timeline

jbond updated the paste's language from autodetect to puppet.
class profile::mariadb (
  Enum['master', 'slave', 'standalone'] $role = lookup('mariadb::mysql_role', { 'default_value' => 'slave' }),
) {
}

define profile::mariadb::replication_lag(
    Integer $prom_port = 9104,
  ){
    require profile::mariadb
    $role = $profile::mariadb::role
}