summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/newkeys4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys
index 35dce4f..152416e 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -21,7 +21,7 @@ function hydra_newkeys {
# GPG keys should be manually imported in the nodes
for host in `hydra $HYDRA nodes`; do
node="`echo $host | cut -d . -f 1`"
- privkey="$PUPPET_KEYS/"$node"_id_rsa"
+ privkey="$PUPPET_KEYS/ssh/$node/"$node"_id_rsa"
pubkey="$privkey.pub"
if [ "$1" == "all" ]; then
hydra_genpairs
@@ -58,7 +58,7 @@ function hydra_genpairs {
hydra_unset_tmpfile $TMPWORK
# Add key into puppet git repository.
- ( cd $PUPPET_KEYS && git add $(basename $privkey) $(basename $pubkey) )
+ ( cd $PUPPET_KEYS/ssh/$node && git add $(basename $privkey) $(basename $pubkey) )
}
# Load.