summaryrefslogtreecommitdiffstats
path: root/modules/borgmatic
diff options
context:
space:
mode:
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