Puppet Class: pgbackrest

Defined in:
manifests/init.pp

Summary

Installs and configures pgbackrest

Overview

Installs and configures pgbackrest

Examples:

include pgbackrest

Parameters:

  • manage_package_repo (Boolean)
  • version (String)
  • config (Hash[String,Hash])


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/init.pp', line 8

class pgbackrest(
  Boolean $manage_package_repo,
  String $version,
  Hash[String,Hash] $config,
) {
  if $manage_package_repo {
    case $facts['os']['family'] {
      'Redhat': {
        contain pgbackrest::yumrepos
      }
      default: {
        fail "Repo management is not yet supported for ${facts['os']['family']}"
      }
    }
  }
  contain pgbackrest::package
  contain pgbackrest::config
}