summaryrefslogtreecommitdiffstats
path: root/modules/borgmatic
diff options
context:
space:
mode:
Diffstat (limited to 'modules/borgmatic')
-rw-r--r--modules/borgmatic/manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/borgmatic/manifests/init.pp b/modules/borgmatic/manifests/init.pp
index 44a472c..1af3083 100644
--- a/modules/borgmatic/manifests/init.pp
+++ b/modules/borgmatic/manifests/init.pp
@@ -5,7 +5,8 @@ class borgmatic($host = 'partofme.algo', $extra_paths = []) {
$current_hostname = "${facts['networking']['hostname']}"
$borgmatic_host = $host
- $escaped_borgmatic_passphrase = regsubst(secret::value('borgmatic_passphrase'), "'", "''", 'G')
+ $borgmatic_passphrase = secret::value('borgmatic_passphrase')
+ $escaped_borgmatic_passphrase = regsubst($borgmatic_passphrase, "'", "''", 'G')
file {
"/etc/borgmatic":
ensure => directory;