summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/newkeys3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys
index 152416e..418ed7a 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -59,6 +59,9 @@ function hydra_genpairs {
# Add key into puppet git repository.
( cd $PUPPET_KEYS/ssh/$node && git add $(basename $privkey) $(basename $pubkey) )
+
+ # Sync pubkeys folder
+ ( cd $PUPPET_KEYS/public && find ../ssh/ -maxdepth 2 -name '*.pub' -exec cp {} . \; )
}
# Load.