Puppet Class: restic

Defined in:
manifests/init.pp

Summary

Module to install Restic and manage backups

Overview

Parameters:

  • user (String) (defaults to: 'restic')

    The user to create who owns the backup files.

  • group (String) (defaults to: 'restic')

    The group to create who owns the backup files.

  • package_manage (Boolean) (defaults to: true)

    Enable to manage the Restic package install.

  • package_ensure (String) (defaults to: latest)

    The version of Restic to install.

  • package_name (String) (defaults to: 'restic')

    The name of the Restic package to install.

  • repositories (Hash) (defaults to: {})

    A hash of Restic repositories to create.

  • backups (Hash) (defaults to: {})

    A hash of backups to manage.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/init.pp', line 25

class restic(
    String  $user = 'restic',
    String  $group = 'restic',
    Boolean $package_manage = true,
    String  $package_ensure = latest,
    String  $package_name = 'restic',
    Hash    $repositories = {},
    Hash    $backups = {},
) {
    anchor { "${module_name}::begin": }
    -> class { "${module_name}::install": }
    -> anchor { "${module_name}::end": }

    create_resources('restic::repository', $repositories)
    create_resources('restic::backup', $backups)
}