]> gitweb.fluxo.info Git - hydra.git/commitdiff
Compile: hiera does indeed accept dots in keys
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 17:29:20 +0000 (14:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 17:29:20 +0000 (14:29 -0300)
share/hydra/compile

index b120d0d1486c8ec99a2f42a4d502ea465b7f9412..f5f79ad61b3369ccc31debb67364ab76e68d39b3 100755 (executable)
@@ -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