Puppet Class: mariadb::client

Inherits:
mariadb::params
Defined in:
manifests/client.pp

Overview

Parameters:

  • manage_repo (Boolean) (defaults to: $mariadb::params::manage_repo)
  • repo_version (Any) (defaults to: $mariadb::params::repo_version)
  • dev (Boolean) (defaults to: true)
  • config_dir (Stdlib::Absolutepath) (defaults to: $mariadb::params::config_dir)
  • override_options (Any) (defaults to: {})


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/client.pp', line 15

class mariadb::client (
  Boolean $manage_repo = $mariadb::params::manage_repo,
  $repo_version        = $mariadb::params::repo_version,
  Boolean $dev         = true,
  Stdlib::Absolutepath $config_dir = $mariadb::params::config_dir,
  $override_options    = {},
) inherits mariadb::params {

  $options = mysql::normalise_and_deepmerge($mariadb::params::client_default_options, $override_options)

  if $manage_repo {
    class { 'mariadb::repo':
      repo_version => $repo_version,
    }
  }

  anchor { 'mariadb::client::start': }
  -> class { 'mariadb::client::mysql': }
  -> class { 'mariadb::client::config': }
  -> anchor { 'mariadb::client::end': }
}