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.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/xtrabackup.pp', line 15
class percona::xtrabackup (
$ensure = installed,
$version = undef,
){
if $version {
$suffix = regsubst($version, '^(\d)\.(\d)$','\1\2')
$package_name = "percona-xtrabackup-${suffix}"
} else {
$package_name = 'percona-xtrabackup'
}
require 'percona::repo'
case $facts['osfamily'] {
'Debian': {
package { $package_name:
ensure => $ensure,
}
}
default: {
package { $package_name:
ensure => $ensure,
}
}
}
}
|