This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:144 [2015/12/23 19:17] hmeij [Part 2] |
cluster:144 [2016/02/05 13:59] hmeij [Warewulf Golden Image] |
||
---|---|---|---|
Line 47: | Line 47: | ||
Set '' | Set '' | ||
- | * /usr/lib/ | + | * / |
< | < | ||
Line 211: | Line 211: | ||
Yea. | Yea. | ||
+ | |||
+ | ==== Deploying ==== | ||
+ | |||
+ | As part of my deployment I edited out any device information in file ''/ | ||
+ | |||
+ | Then we build a template file with node specs in it like so: | ||
+ | |||
+ | < | ||
+ | # HP blades reverses HWADDR (don't ask) | ||
+ | # use nic port bottom (no changes) | ||
+ | # set both ipaddr/ | ||
+ | # post edit | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # reboot (with bootload=EXIT) | ||
+ | | ||
+ | | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | My deploy script (give an entire line from above as arguments) | ||
+ | |||
+ | < | ||
+ | |||
+ | #!/bin/bash | ||
+ | |||
+ | # deploy a n0.chroot node via PXE golden image transfer | ||
+ | # dynamic files are always in stateless CHROOT/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | if [ $# != 6 ]; then | ||
+ | echo " | ||
+ | exit | ||
+ | fi | ||
+ | |||
+ | wwsh object delete $node -y | ||
+ | sleep 3 | ||
+ | |||
+ | wwsh node new $node --netdev=eth0 \ | ||
+ | | ||
+ | | ||
+ | |||
+ | wwsh node set $node --netdev=eth1 \ | ||
+ | | ||
+ | | ||
+ | |||
+ | wwsh node set $node --netdev=ib0 \ | ||
+ | | ||
+ | | ||
+ | |||
+ | wwsh provision set $node --fileadd passwd, | ||
+ | wwsh provision set $node --fileadd hosts, | ||
+ | wwsh provision set $node --fileadd network.ww, | ||
+ | |||
+ | wwsh object modify -s bootloader=sda $node -y | ||
+ | wwsh object modify -s diskformat=sda1, | ||
+ | |||
+ | if [ " | ||
+ | # golden images with 3 partitions | ||
+ | wwsh object modify -s filesystems=" | ||
+ | else | ||
+ | # hp blade 4 partitions | ||
+ | wwsh object modify -s filesystems=" | ||
+ | fi | ||
+ | |||
+ | wwsh provision set $node --vnfs=n0.chroot -y | ||
+ | wwsh provision set $node --bootstrap=2.6.32-573.12.1.el6.x86_64 -y | ||
+ | |||
+ | wwsh provision set --bootlocal=UNDEF $node -y | ||
+ | |||
+ | wwsh pxe update | ||
+ | wwsh dhcp update | ||
+ | | ||
+ | |||
+ | echo "now reboot: $node" | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
\\ | \\ | ||
**[[cluster: | **[[cluster: |