Puppet Class: percona::xtrabackup

Defined in:
manifests/xtrabackup.pp

Overview

Class: percona::xtrabackup

percona::xtrabackup is to install percona-xtrabackup.

Parameters


  • ‘ensure`

What state the package should be in. Default to installed.

  • ‘version`

Specify package version. Valid options: a string. Default to undef.

Parameters:

  • ensure (Any) (defaults to: installed)
  • version (Any) (defaults to: undef)


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

class percona::xtrabackup (
  $ensure  = installed,
  $version = undef,
){

  if $version {
    validate_re($version, '^\d\.\d$')
    $suffix = regsubst($version, '^(\d)\.(\d)$','\1\2')

    $package_name = "percona-xtrabackup-${suffix}"
  } else {
    $package_name = 'percona-xtrabackup'
  }

  require 'percona::repo'

  package { $package_name:
    ensure => $ensure,
  }

}