Add IpmiNetmask configuration

This commit is contained in:
Gregory Kurtzer
2020-12-01 18:03:22 -08:00
parent 37eaa979ec
commit 581bc929e0
11 changed files with 121 additions and 78 deletions

View File

@@ -8,11 +8,11 @@ if [ ! -e /dev/ipmi0 ]; then
ls -la /dev/ipmi0
fi
IP="{{.IpmiIpaddr}}"
NETMASK="{{.NetDevs.eth0.Netmask}}"
GATEWAY="{{.NetDevs.eth0.Gateway}}"
USER="{{.IpmiUserName}}"
PASS="{{.IpmiPassword}}"
IP="{{.Self.IpmiIpaddr}}"
NETMASK="{{.Self.IpmiNetmask}}"
GATEWAY="{{.Self.NetDevs.eth0.Gateway}}"
USER="{{.Self.IpmiUserName}}"
PASS="{{.Self.IpmiPassword}}"
echo IP is $IP
echo NETMASK is $NETMASK