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

Merge pull request #45 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2017-12-07 19:30:34 -05:00 committed by GitHub
commit b8ff08b35f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 11 deletions

View file

@ -16,34 +16,37 @@ 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
if [ -f /etc/iiab/iiab.env ]; then
source /etc/iiab/iiab.env
else
OS="unknown"
fi
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" == "debian" ] && [ ! "OS" == "unknown" ]; then
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
fi
# ubuntu destop might be using NM - split out.
# Ubuntu desktop might be using NM - split out.
if [ $(which nmcli) ]; then
nmcli d >> iiab-network.log
nmcli c >> iiab-network.log
nmcli d >> iiab-network.log
nmcli c >> iiab-network.log
fi
echo "" >> iiab-network.log
ip r >> iiab-network.log
echo "" >> iiab-network.log
brctl show br0>> iiab-network.log
brctl show >> iiab-network.log
echo "run start: $Start" >> iiab-network.log
echo "run end: $End" >> iiab-network.log
echo "" >> iiab-network.log
echo "" >> iiab-network.log
# Put the same diagnostics on screen, for live operator
ip r
brctl show br0
echo "run start:$Start"
brctl show
echo "run start: $Start"
echo "run end: $End"

View file

@ -6,7 +6,7 @@ interface-name=br0
permissions=
[ipv4]
address1={{ iiab_lan_ip }}/19
address1={{ lan_ip }}/19
dns-search={{ iiab_domain }}
method=manual