Skip to content

attestra/puppet-pgbackrest

Repository files navigation

pgbackrest

This module provides configuration management of pgBackRest - Reliable PostgreSQL Backup & Restore.

Table of Contents

  1. Description
  2. Setup - The basics of getting started with pgbackrest
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

This module allows all pgBackRest configuration options to be set in Hiera data.

Setup

PostgresQL Repositories

If you are not managing the repos another way, this module can install the postgresql.org release RPM and enable the repo for the version you choose.

Do not enable repo management when using puppetlabs/postgresql's $manage_package_repo option. The two repo management classes are redundant and will conflict with each other.

pgbackrest::manage_package_repo: true      # Boolean
pgbackrest::yumrepos::enable_version: 12   # Integer

If you leave the enable_version parameter undeclared, only the common repo will be enabled. This is the correct choice if you are using a different upstream, such as the PostgresQL AppStream, and only want the addon packages (like pgBackRest). This is the default behavior.

If you wish to prevent updates or to remove the release RPM, you can change:

pgbackrest::yumrepos::release_rpm_ensure: 'absent'

This will naturally prevent installation or updates of pgBackRest.

Usage

Simply adding the module to a profile is sufficient to install pgBackRest.

include pgbackrest

Only include the main class. Do not directly include the subclasses, as they are contained by the top-level class. Subclasses may be refactored without notice.

Limitations

Do not enable manage_package_repo when using puppetlabs/postgresql's $manage_package_repo option. The two repo management classes are redundant.

Development

Issues and Pull Requests happily accepted here.

About

Puppet module for pgbackrest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •