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 Both sides next revision
cluster:139 [2015/07/08 19:15]
hmeij [Warewulf LBL]
cluster:139 [2015/07/31 15:04]
hmeij [Warewulf LBL]
Line 259: Line 259:
 <code> <code>
  
-#--- build file CHROOT/etc/sysconfig/network.ww+#--- build file CHROOT/root/wwtemplates/network.ww
  NETWORKING=yes  NETWORKING=yes
  HOSTNAME=%{NODENAME}  HOSTNAME=%{NODENAME}
Line 266: Line 266:
 # add that file (using wwsh provision) to the nodes. # add that file (using wwsh provision) to the nodes.
  
-[root@]# wwsh file import /var/chroot/centos-6/etc/sysconfig/network.ww \+[root@]# wwsh file import /var/chroot/centos-6/root/wwtemplates/network.ww \
  --path=/etc/sysconfig/network --name=network.ww  --path=/etc/sysconfig/network --name=network.ww
  
Line 272: Line 272:
  
 </code> </code>
 +
 +Second interface: create a template inside of the chroot environment.
 +
 +<code>
 +
 +#--- build file CHROOT/root/wwtemplates/ifcfg-eth1.ww
 +DEVICE=eth1
 +BOOTPROTO=static
 +ONBOOT=yes
 +HWADDR=%{NETDEVS::ETH1::HWADDR}
 +IPADDR=%{NETDEVS::ETH1::IPADDR}
 +NETMASK=%{NETDEVS::ETH1::NETMASK}
 +NETWORK=%{NETDEVS::ETH1::NETWORK}
 +#--- end 
 +
 +# add that file (using wwsh provision) to the nodes.
 +
 +[root@]# wwsh file import /var/chroot/centos-6/root/wwtemplates/ifcfg-eth1.ww \
 + --path=/etc/sysconfig/network-scripts/ifcfg-eth1 --name=ifcfg-eth1.ww
 +
 +[root@]# wwsh provision set n[00-15] --fileadd=ifcfg-eth1.ww
 +
 +</code>
 +
  
 Useful links Useful links
cluster/139.txt ยท Last modified: 2018/08/16 12:58 by hmeij07