diff options
-rwxr-xr-x | share/hydra/newkeys | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys index 04a1f43..738b446 100755 --- a/share/hydra/newkeys +++ b/share/hydra/newkeys @@ -104,8 +104,9 @@ function hydra_newkeys_borg { # Add Borg passphrase into secret node config #keyringer $HYDRA decrypt nodes/$NODE/borg/key.passwd | \ #hydra fluxo eyaml $NODE encrypt --stdin -o block -q -l nodo::subsystem::backup::borg::password >> $HYDRA_FOLDER/puppet/config/secrets/node/$NODE.yaml - PASSWORD="`keyringer $HYDRA decrypt nodes/$node/borg/key.passwd`" - echo -n "$PASSWORD" | hydra fluxo eyaml $node encrypt --stdin -o block -q -l nodo::subsystem::backup::borg::password >> $HYDRA_FOLDER/puppet/config/secrets/node/$node.yaml + #PASSWORD="`keyringer $HYDRA decrypt nodes/$node/borg/key.passwd`" + #echo -n "$PASSWORD" | hydra fluxo eyaml $node encrypt --stdin -o block -q -l nodo::subsystem::backup::borg::password >> $HYDRA_FOLDER/puppet/config/secrets/node/$node.yaml + echo -n "$password" | hydra fluxo eyaml $node encrypt --stdin -o block -q -l nodo::subsystem::backup::borg::password >> $HYDRA_FOLDER/puppet/config/secrets/node/$node.yaml fi # Cleanup |