summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/compile5
1 files changed, 1 insertions, 4 deletions
diff --git a/share/hydra/compile b/share/hydra/compile
index b120d0d..f5f79ad 100755
--- a/share/hydra/compile
+++ b/share/hydra/compile
@@ -36,13 +36,10 @@ echo "#" >> $CONFIG
# Process stuff for each node
for node in $NODES; do
- # Hiera doesn't accept keys with dots
- node_key="`echo $node | sed -e 's/\./_/g'`"
-
# SSH public keys
if [ -e "$HYDRA_FOLDER/keyring/keys/nodes/$node/ssh/id_rsa.pub.asc" ]; then
echo "Adding SSH public key for $node..."
- key="compiled::ssh::key::$node_key"
+ key="compiled::ssh::key::$node"
value="$(keyringer $HYDRA decrypt nodes/$node/ssh/id_rsa.pub 2> /dev/null | cut -d ' ' -f 2)"
echo "$key: '$value'" >> $CONFIG
fi