aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hydra/config2
-rwxr-xr-xshare/hydra/newkeys4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/hydra/config b/lib/hydra/config
index fe7606e..d1eb411 100644
--- a/lib/hydra/config
+++ b/lib/hydra/config
@@ -50,7 +50,7 @@ function hydra_check_preferences {
# Set basic variables
PUPPET="$HYDRA_FOLDER/puppet"
- PUPPET_KEYS="$PUPPET/modules/site_keys/files"
+ PUPPET_KEYS="$PUPPET/keys"
export HYDRA_CONNECT="ssh -T -o ConnectTimeout=15"
}
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.