]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Use nmap instead of ncat for port scanning
authorZack Cerza <zack@redhat.com>
Fri, 12 Jun 2015 15:19:15 +0000 (09:19 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 29 Jun 2015 22:37:06 +0000 (16:37 -0600)
netcat is apparently unavailable on RHEL7

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh

index 56452f7fd676642f067eebe28bef8d3cf414b048..7ee3f141bbbadd00217bcd32edca2d53361fd3b5 100644 (file)
@@ -9,7 +9,7 @@ ANSIBLE_CM_PATH=/root/ceph-cm-ansible
 # Bail if the ssh port isn't open, as will be the case when this is run 
 # while the installer is still running. When this is triggered by 
 # /etc/rc.local after a reboot, the port will be open and we'll continue
-nc -vz $name 22
+nmap -sT -oG - -p 22 $name | grep 22/open
 
 mkdir -p /var/log/ansible