From: Silvio Rhatto Date: Tue, 12 Dec 2017 20:18:01 +0000 (-0200) Subject: Deploy: use hostname cmd instead of facter X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bb873d81289eb21f67d1da1fa4d2efc204bd0dd5;p=hydra.git Deploy: use hostname cmd instead of facter --- diff --git a/share/hydra/deploy b/share/hydra/deploy index 4b07512..093b723 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -139,9 +139,9 @@ for node in $NODES; do exit 1 fi - if [ "\$(facter fqdn)" != "$FQDN" ]; then + if [ "\$(hostname)" != "$FQDN" ]; then echo "FQDN does not match:" - echo "Remote presents itself as \$(facter fqdn) instead of $FQDN" + echo "Remote presents itself as \$(hostname) instead of $FQDN" exit 1 fi