From 1c804435209a91e44398db9f42727742d5f81a51 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 25 Mar 2021 21:09:09 -0400 Subject: enable borgmatic for tozt --- modules/borgmatic/manifests/init.pp | 2 +- modules/borgmatic/templates/config.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/borgmatic') diff --git a/modules/borgmatic/manifests/init.pp b/modules/borgmatic/manifests/init.pp index 1ee3a3f..6658dbc 100644 --- a/modules/borgmatic/manifests/init.pp +++ b/modules/borgmatic/manifests/init.pp @@ -1,4 +1,4 @@ -class borgmatic($host = 'partofme.algo') { +class borgmatic($host = 'partofme.algo', $extra_paths = []) { package { 'borgmatic': ensure => installed; } diff --git a/modules/borgmatic/templates/config.yaml b/modules/borgmatic/templates/config.yaml index 034405b..54a5634 100644 --- a/modules/borgmatic/templates/config.yaml +++ b/modules/borgmatic/templates/config.yaml @@ -3,6 +3,9 @@ location: - /home - /etc - /usr/local/bin +<%- @extra_paths.each do |path| -%> + - <%= @path %> +<%- end -%> repositories: - borg@<%= @borgmatic_host %>:<%= @current_hostname %> atime: false -- cgit v1.2.3-54-g00ecf