set myip @@SRV_IP@@
set mynm @@SRV_NETMASK@@
set mygw @@SRV_GATEWAY@@
- set myinterface interface=@@SRV_BLD_INF@@
+ set myinterface interface=@@SRV_SLAVE1@@
set mystaticnet netcfg/disable_autoconfig=true netcfg/vlan_id=@@SRV_VLAN@@ netcfg/get_ipaddress=@@SRV_IP@@ netcfg/get_netmask=@@SRV_NETMASK@@ netcfg/get_gateway=@@SRV_GATEWAY@@ netcfg/get_nameservers=@@SRV_DNS@@ netcfg/get_domain=@@SRV_DOMAIN@@ netcfg/confirm_static=true
set ramdisk root=/dev/ram0 load_ramdisk=1 ramdisk_size=524288
set iname initrd-@@SRV_OSVER@@
fi
## COLLECT ANY ADDITIONAL SERVER DATA NEEDED - FOR EXAMPLE, LOOKUP MAC FOR DELL NIC
+SRV_OEM=$(curl --insecure https://$SRV_OOB_IP/redfish/v1/ | grep -Poe '(?<="Oem":{")[^"]*(?=")')
+echo "Identified server as OEM [$SRV_OEM] using oob [$SRV_OOB_IP]"
case $SRV_OEM in
- Dell|DELL)
+ Dell)
if [ -z "$SRV_MAC" ]; then
SRV_MAC=$(. $REDFISH_ROOT/get_dellnicmac.sh --nic $SRV_HTTP_BOOT_DEV)
if [ "$?" -ne 0 ]; then
echo "Using SRV_MAC [$SRV_MAC] for nic [$SRV_HTTP_BOOT_DEV]"
fi
;;
- HP|HPE)
+ Hpe)
if [ -z "$SRV_MAC" ]; then
echo "ERROR: HPE required variable SRV_MAC missing from rc file [$RCFILE]"
exit 1;
## CREATE CONFIG FILES AND APPLY UNLESS CALLED WITH --no-apply-hw
case $SRV_OEM in
- Dell|DELL)
+ Dell)
if [ -n "$SRV_BIOS_TEMPLATE" ]; then
. $REDFISH_ROOT/apply_dellxml.sh --template $SRV_BIOS_TEMPLATE
echo "Completed update with status [$?]"
sleep 20
fi
;;
- HP|HPE)
+ Hpe)
if [ -n "$SRV_BIOS_TEMPLATE" ]; then
. $REDFISH_ROOT/apply_hpejson.sh --template $SRV_BIOS_TEMPLATE
echo "Completed update with status [$?]"
# host name for server
SRV_NAME=aknode44
-# server oem - Dell or HPE (case sensitive)
-SRV_OEM=Dell
-
# out of band interface information for server (idrac/ilo/etc)
SRV_OOB_IP=192.168.41.254
SRV_OOB_USR=root
# mac address of server to be used during the build - not required for Dell 10G servers
# SRV_MAC=3c:fd:fe:b8:10:60
-# the build interface is the nic used by the Ubuntu installed to load the OS
-SRV_BLD_INF=enp94s0f0
-
# the boot device is the device name on which the OS will be loaded
SRV_BOOT_DEVICE=sda
SRV_BOOT_TEMPLATE=dell_r740_g14_uefi_httpboot.xml.template
SRV_HTTP_BOOT_DEV=NIC.Slot.3-1-1
-# tempalte to run to configure OS after first boot
+# template to run to configure OS after first boot
# current options are: firstboot.sh.template, firstboot-genesis.sh.tempate or firstboot-airship-iab.sh.template
SRV_FIRSTBOOT_TEMPLATE=firstboot.sh.template
SRV_DNSSEARCH=lab.akraino.org
SRV_NTP=ntp.ubuntu.org
-# root password for server being built
-SRV_PWD=akraino,d
-
-# network bond information
+# network bond information - NOTE: SRV_SLAVE1 will be used for OS install
SRV_BOND=bond0
SRV_SLAVE1=enp94s0f0
SRV_SLAVE2=enp94s0f1
+# password to set for root after OS is installed
+SRV_PWD=akraino,d
+