User Tools

Site Tools


cluster:139

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cluster:139 [2015/07/31 15:04]
hmeij [Warewulf LBL]
cluster:139 [2015/07/31 17:55]
hmeij [Warewulf LBL]
Line 276: Line 276:
  
 <code> <code>
 +
 +wwsh node set b49 --netdev=eth1 \
 +--hwaddr=00:00:00:00:00:00 --ipaddr=10.10.1.55 \
 +--netmask=255.255.0.0  --network=255.255.0.0
  
 #--- build file CHROOT/root/wwtemplates/ifcfg-eth1.ww #--- build file CHROOT/root/wwtemplates/ifcfg-eth1.ww
Line 293: Line 297:
  
 [root@]# wwsh provision set n[00-15] --fileadd=ifcfg-eth1.ww [root@]# wwsh provision set n[00-15] --fileadd=ifcfg-eth1.ww
 +
 +</code>
 +
 +Now, lets put it all together which can form the basis for a script.
 +
 +<code>
 +
 +wwsh node new b6 --netdev=eth0 \
 +--hwaddr=00:00:00:00:00:00 --ipaddr=192.168.1.12 \
 +--netmask=255.255.0.0  --network=255.255.0.0
 +--groups=wwnodes
 +
 +wwsh node set b6 --netdev=eth1 \
 +--hwaddr=00:00:00:00:00:00 --ipaddr=10.10.100.12 \
 +--netmask=255.255.0.0  --network=255.255.0.0
 +
 +wwsh provision set b6 --fileadd passwd,shadow,group
 +wwsh provision set b6 --fileadd hosts,bashrc,profile
 +wwsh provision set b6 --fileadd network.ww,ifcfg-eth1.ww
 +
  
 </code> </code>
cluster/139.txt ยท Last modified: 2018/08/16 12:58 by hmeij07