From: Silvio Rhatto Date: Thu, 23 Jun 2016 17:29:20 +0000 (-0300) Subject: Compile: hiera does indeed accept dots in keys X-Git-Tag: 0.2.4~131 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3baee42b732ad815a0bb2c7de886a2b0200b91f3;p=hydra.git Compile: hiera does indeed accept dots in keys --- 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