Puppet Class: profile::mariadb::packages_wmf

Defined in:
modules/profile/manifests/mariadb/packages_wmf.pp

Overview

Parameters:

  • package (Optional[String[1]]) (defaults to: lookup('mariadb::package', { 'default_value' => undef }))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/profile/manifests/mariadb/packages_wmf.pp', line 1

class profile::mariadb::packages_wmf (
    Optional[String[1]] $package = lookup('mariadb::package', { 'default_value' => undef }),
) {
    if $package != undef {
        $mariadb_package = $package
    } elsif debian::codename::eq('bullseye') {
        $mariadb_package = 'wmf-mariadb104'
    } elsif debian::codename::eq('buster') {
        $mariadb_package = 'wmf-mariadb104'
    } elsif debian::codename::eq('stretch') {
        $mariadb_package = 'wmf-mariadb101'
    } else {
        fail("Debian release ${facts['os']['distro']['codename']} is not supported")
    }
    class { 'mariadb::packages_wmf': package => $mariadb_package }

    $basedir = "/opt/${mariadb_package}"
}