summaryrefslogtreecommitdiffstats
path: root/modules/borgmatic
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-25 21:09:09 -0400
committerJesse Luehrs <doy@tozt.net>2021-03-25 21:12:10 -0400
commit1c804435209a91e44398db9f42727742d5f81a51 (patch)
tree56a65a4a64cce76667c3310cfd6dd347f9b74363 /modules/borgmatic
parent12e995d0dde2fbce89bd0faaea4d4ab6c25eccff (diff)
downloadpuppet-tozt-1c804435209a91e44398db9f42727742d5f81a51.tar.gz
puppet-tozt-1c804435209a91e44398db9f42727742d5f81a51.zip
enable borgmatic for tozt
Diffstat (limited to 'modules/borgmatic')
-rw-r--r--modules/borgmatic/manifests/init.pp2
-rw-r--r--modules/borgmatic/templates/config.yaml3
2 files changed, 4 insertions, 1 deletions
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