Puppet Class: profile::mariadb::packages_client

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

Overview

Parameters:

  • package (Optional[String[1]]) (defaults to: lookup('mariadb::package_client', { '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_client.pp', line 1

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

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