1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update iiab-network

This commit is contained in:
A Holt 2017-12-12 01:17:12 -05:00 committed by GitHub
parent e931603441
commit d7f275448d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,8 @@ CWD=`pwd`
export ANSIBLE_LOG_PATH="$CWD/iiab-network.log" export ANSIBLE_LOG_PATH="$CWD/iiab-network.log"
if [ ! -f iiab-network.yml ]; then if [ ! -f iiab-network.yml ]; then
echo "IIAB Playbook not found." echo "iiab-network.yml not found in current directory."
echo "Please run this command from the top level of the git repo." echo "Please rerun this command from the top level of the git repo."
echo "Exiting." echo "Exiting."
exit 1 exit 1
fi fi
@ -28,11 +28,11 @@ End=`date`
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log # Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
echo "" >> iiab-network.log echo "" >> iiab-network.log
# redhat path # redhat path
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
fi fi
# Ubuntu desktop might be using NM - split out. # Ubuntu desktop might be using NM - split out.
if [ $(which nmcli) ]; then if [[ `which nmcli` ]]; then
nmcli d >> iiab-network.log nmcli d >> iiab-network.log
nmcli c >> iiab-network.log nmcli c >> iiab-network.log
fi fi