Puppet Class: mysql::client

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

Summary

Installs and configures the MySQL client.

Overview

Examples:

Install the MySQL client

class {'::mysql::client':
  package_name    => 'mysql-client',
  package_ensure  => 'present',
  bindings_enable => true,
}

Parameters:

  • bindings_enable (Any) (defaults to: $mysql::params::bindings_enable)

    Whether to automatically install all bindings. Valid values are ‘true`, `false`. Default to `false`.

  • install_options (Any) (defaults to: undef)

    Array of install options for managed package resources. You must pass the appropriate options for the package manager.

  • package_ensure (Any) (defaults to: $mysql::params::client_package_ensure)

    Whether the MySQL package should be present, absent, or a specific version. Valid values are ‘present’, ‘absent’, or ‘x.y.z’.

  • package_manage (Any) (defaults to: $mysql::params::client_package_manage)

    Whether to manage the MySQL client package. Defaults to ‘true`.

  • package_name (Any) (defaults to: $mysql::params::client_package_name)

    The name of the MySQL client package to install.

  • package_provider (Any) (defaults to: undef)
  • package_source (Any) (defaults to: undef)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'manifests/client.pp', line 22

class mysql::client (
  $bindings_enable  = $mysql::params::bindings_enable,
  $install_options  = undef,
  $package_ensure   = $mysql::params::client_package_ensure,
  $package_manage   = $mysql::params::client_package_manage,
  $package_name     = $mysql::params::client_package_name,
  $package_provider = undef,
  $package_source   = undef,
) inherits mysql::params {
  include 'mysql::client::install'

  if $bindings_enable {
    class { 'mysql::bindings':
      java_enable   => true,
      perl_enable   => true,
      php_enable    => true,
      python_enable => true,
      ruby_enable   => true,
    }
  }

  # Anchor pattern workaround to avoid resources of mysql::client::install to
  # "float off" outside mysql::client
  anchor { 'mysql::client::start': }
  -> Class['mysql::client::install']
  -> anchor { 'mysql::client::end': }
}