Page MenuHomePhabricator
Paste P11691

profile::mariadb::replication_lag
ActivePublic

Authored by jbond on Mon, Jun 29, 9:39 AM.
Profile::Mariadb::Replication_lag <| |> {
role => lookup('mariadb::mysql_role', { 'default_value' => 'slave' })
}

Event Timeline

jbond created this paste.EditedMon, Jun 29, 9:39 AM
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
}