aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/newkeys10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys
index d742fd9..f6a606f 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -34,8 +34,14 @@ function hydra_newkeys {
function hydra_genpairs {
keyringer $HYDRA genpair ssh $node/ssh/id_rsa $host $privkey
keyringer $HYDRA genpair gpg $node/gpg/key $host
- keyringer $HYDRA git commit # TODO: -m "Importing keys from $host"
- keyringer $HYDRA git push
+
+ hydra_set_tmpfile genpair
+ echo "Importing keys from $host" > $TMPWORK
+
+ keyringer $HYDRA git commit -F $TMPWORK
+ keyringer $HYDRA git push
+
+ hydra_unset_tmpfile $TMPWORK
# Add key into puppet git repository.
( cd $PUPPET_KEYS && git add $(basename $privkey) $(basename $pubkey) )