aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-12 22:18:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-12 22:18:22 -0300
commit2ea382466e867128b26c97f6e60330345f28e16e (patch)
tree7b0dea77743ba9c4d0c6cb2cf8c690929721375f
parenta35205cbc3c65039a9fe1f9903edd324b782c44c (diff)
downloadhydra-2ea382466e867128b26c97f6e60330345f28e16e.tar.gz
hydra-2ea382466e867128b26c97f6e60330345f28e16e.tar.bz2
Newkeys: cleanup
-rwxr-xr-xshare/hydra/newkeys5
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