diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-25 21:27:55 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-25 21:27:55 -0400 |
commit | d4ebf5d2b03eb4c8bbd481184a0dcd228071854d (patch) | |
tree | d70d324b5a4b2fbe251dd401332496ec2f215765 /modules/borgmatic | |
parent | 1054f0b3baed82387bb7546aa79aaf5529e2727f (diff) | |
download | puppet-tozt-d4ebf5d2b03eb4c8bbd481184a0dcd228071854d.tar.gz puppet-tozt-d4ebf5d2b03eb4c8bbd481184a0dcd228071854d.zip |
still need the unescaped version for the exec
Diffstat (limited to 'modules/borgmatic')
-rw-r--r-- | modules/borgmatic/manifests/init.pp | 3 |
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; |