From d4ebf5d2b03eb4c8bbd481184a0dcd228071854d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 25 Mar 2021 21:27:55 -0400 Subject: still need the unescaped version for the exec --- modules/borgmatic/manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/borgmatic') 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; -- cgit v1.2.3-54-g00ecf