summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-01-13 16:27:12 -0500
committerJesse Luehrs <doy@tozt.net>2024-01-13 16:27:12 -0500
commit91a084c4411ffe053a032c68796dc60394f710b7 (patch)
treec4a2e82a31869481244506293f22efb9edfd55da /modules
parent4d8ae043cd7c33a8586872cb9196dc3b7db15ae8 (diff)
downloadpuppet-tozt-91a084c4411ffe053a032c68796dc60394f710b7.tar.gz
puppet-tozt-91a084c4411ffe053a032c68796dc60394f710b7.zip
only get info on the latest archive
it seems borgmatic started fetching info about all archives, which takes too long (we only care that the repository is initialized)
Diffstat (limited to 'modules')
-rw-r--r--modules/borgmatic/manifests/init.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/borgmatic/manifests/init.pp b/modules/borgmatic/manifests/init.pp
index 1af3083..fe1e4fd 100644
--- a/modules/borgmatic/manifests/init.pp
+++ b/modules/borgmatic/manifests/init.pp
@@ -24,7 +24,7 @@ class borgmatic($host = 'partofme.algo', $extra_paths = []) {
environment => [
"BORG_PASSPHRASE=${borgmatic_passphrase}",
],
- unless => '/usr/bin/borgmatic info > /dev/null',
+ unless => '/usr/bin/borgmatic info --archive latest > /dev/null',
require => [
Package['borgmatic'],
File['/etc/borgmatic/config.yaml'],