ip / mac / ipmi management

102 views
Skip to first unread message

Niko Kivel

unread,
Oct 30, 2015, 6:20:57 PM10/30/15
to ware...@lbl.gov
Hi all,

I'm quite new to warewulf and love it, aside from the point that the docu is a little sketchy, it's running very well on our tiny cluster.

I'm in the happy situation to get a second HP c7000-enclosure with 16 nodes next week (2nd hand from the big guys of our institute, but hey, it's free of charge).

My question, not 100% warewulf related: is there a way to automate the database population of warewulf?
nodescan is nice, but what about the infiniband and ipmi, ... ?
If I understand it correctly, the nodescan catches the dhcp-request and adds the mac to the database and attaches an IP to it for the dhcp-conf. so it works only for one network resource.

Do you guys have a to a tool to manage your mac/ip tables? maybe a tool which provides tables which can be converted into text files, which wwsh can read as input?
I looked into phpipam. its nice to look at, but lacks some features. I didn't figure out how to get the mac addresses into phpipam via a lookup, for example.

a little insight into how you'd handle this would by great.

cheers
Niko


Vince Forgetta

unread,
Oct 31, 2015, 12:57:18 PM10/31/15
to Warewulf
Hi Niko,

I am quite new to this so my take on it will be simplistic, but I just use a script to provision nodes that has all information as variables. For example, below are wwsh commands I run to setup an RStudio server with reverse https proxy to enable encrypted session.

NODE=host.local # local hostname
GE_IPADDR=172.21.13.20 # Gigabit, eth0, for SSH access
XE_IPADDR=192.168.13.20 # 10 Gigabit, eth3, for connecting to NFS server
GE_HWADDR=xx:xx:xx:xx:xx:xx
XE_HWADDR=xx:xx:xx:xx:xx:xx
EXTERNAL_HOST=ext_host # hostname visible to internet

wwsh -y node new ${NODE} --netdev=eth0 --hwaddr=${GE_HWADDR} --ipaddr=${GE_IPADDR} --groups=HYDRARS --domain=local.lan --netmask 255.255.255.0

wwsh -y provision set --lookup groups HYDRARS --vnfs=hydrars-centos-7 --bootstrap=3.10.0-229.14.1.el7.x86_64

wwsh -y object modify ${NODE} -s NGINXURL=${EXTERNAL_HOST}.example.com

wwsh -y provision set --fileadd=nginx.default.conf.ww ${NODE}

wwsh -y provision set --fileadd=private.key.ww ${NODE}

wwsh -y provision set --fileadd=domain.intermediate.crt.ww ${NODE}

wwsh -y provision set --fileadd passwd,group,shadow ${NODE}

wwsh -y node set ${NODE} --netdev=eth3 --ipaddr=${XE_IPADDR} --netmask=255.255.255.0 --hwaddr=${XE_HWADDR}

wwsh -y provision set --fileadd=ifcfg-eth3.ww ${NODE}

wwsh -y provision set --fileadd=resolv.conf.ww ${NODE}

wwsh -y provision set --fileadd=network.ww ${NODE}

wwsh -y file sync \* ${NODE}

systemctl restart dhcpd
Reply all
Reply to author
Forward
0 new messages