From 214b919659d3a1cd606308ba52ace5c6380b6df8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Jun 2020 15:19:32 -0300 Subject: Update hydra_hiera_query to version 5 --- share/hydra/compile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/hydra/compile b/share/hydra/compile index 14dd68c..8734f81 100755 --- a/share/hydra/compile +++ b/share/hydra/compile @@ -73,13 +73,16 @@ echo "sshkeys:" >> $CONFIG for node in $NODES; do if [ -e "$FACTS/${node}.yaml" ]; then + echo "Processing $node..." + + # Get key info rsakey="`hydractl_get_yaml_ssh_key $FACTS/${node}.yaml rsa`" sshed25519key="`hydractl_get_yaml_ssh_key $FACTS/${node}.yaml ed25519`" sshecdsakey="`hydractl_get_yaml_ssh_key $FACTS/${node}.yaml ecdsa`" + # SSH ports host_aliases="" ssh_ports="`hydra_hiera_query $node sshd::ports`" - echo $ssh_ports if [ "$ssh_ports" != "nil" ] && [ ! -z "$ssh_ports" ]; then ssh_ports="`echo $ssh_ports | sed -e 's/\[//g' -e 's/\]//g' -e 's/,//g'`" -- cgit v1.2.3