summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-25 20:48:19 -0400
committerJesse Luehrs <doy@tozt.net>2021-03-25 20:48:19 -0400
commitd8f2b5669bb53f4a60979601ddd966f8c5ae12af (patch)
tree4f53c30c25d55872265b2d6725cf6aa51d17ecda /modules
parent41ce583094125dd4aa82894d5f57c4d39868b7a4 (diff)
downloadpuppet-tozt-d8f2b5669bb53f4a60979601ddd966f8c5ae12af.tar.gz
puppet-tozt-d8f2b5669bb53f4a60979601ddd966f8c5ae12af.zip
move the borgmatic ssh key to the client config directory
Diffstat (limited to 'modules')
-rw-r--r--modules/partofme/manifests/backups.pp4
-rw-r--r--modules/partofme/templates/borgmatic_config.yaml2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/partofme/manifests/backups.pp b/modules/partofme/manifests/backups.pp
index 9c517a5..74662cd 100644
--- a/modules/partofme/manifests/backups.pp
+++ b/modules/partofme/manifests/backups.pp
@@ -91,9 +91,9 @@ class partofme::backups {
require => File["/etc/borgmatic"];
}
- secret { "/media/persistent/borg/.ssh/borg_ssh_key":
+ secret { "/etc/borgmatic/borg_ssh_key":
source => 'borg_ssh_key',
- require => File["/media/persistent/borg/.ssh"];
+ require => File["/etc/borgmatic"];
}
exec { '/usr/bin/borgmatic init --encryption repokey':
diff --git a/modules/partofme/templates/borgmatic_config.yaml b/modules/partofme/templates/borgmatic_config.yaml
index 14dc510..895cfe8 100644
--- a/modules/partofme/templates/borgmatic_config.yaml
+++ b/modules/partofme/templates/borgmatic_config.yaml
@@ -16,7 +16,7 @@ location:
storage:
encryption_passphrase: "<%= @borgmatic_passphrase %>"
- ssh_command: /usr/bin/ssh -i /media/persistent/borg/.ssh/borg_ssh_key -o StrictHostKeyChecking=no
+ ssh_command: /usr/bin/ssh -i /etc/borgmatic/borg_ssh_key -o StrictHostKeyChecking=no
retention:
keep_daily: 7