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-07 18:56:22 -05:00 committed by GitHub
parent 69a7b2abc5
commit e931603441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ if [ ! -f /etc/iiab/config_vars.yml ]; then
echo "{}" > /etc/iiab/config_vars.yml
fi
OS="unknown" # will be overridden below, if /etc/iiab/iiab.env is legit
OS="unknown" # will be overridden below, if /etc/iiab/iiab.env is legit
if [ -f /etc/iiab/iiab.env ]; then
source /etc/iiab/iiab.env
fi
@ -25,6 +25,7 @@ Start=`date`
ansible-playbook -i ansible_hosts iiab-network.yml --connection=local
End=`date`
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
echo "" >> iiab-network.log
# redhat path
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
@ -44,7 +45,7 @@ echo "run end: $End" >> iiab-network.log
echo "" >> iiab-network.log
echo "" >> iiab-network.log
# Put the same stuff on screen, for live operator
# Put the same diagnostics on screen, for live operator
ip r
brctl show
echo "run start: $Start"