From: Zack Cerza Date: Fri, 12 Jun 2015 15:19:15 +0000 (-0600) Subject: Use nmap instead of ncat for port scanning X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=027e1ec7583f43f692aeb4c439fab2b1096d2679;p=ceph-cm-ansible.git Use nmap instead of ncat for port scanning netcat is apparently unavailable on RHEL7 Signed-off-by: Zack Cerza --- diff --git a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh index 56452f7f..7ee3f141 100644 --- a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh +++ b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh @@ -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