fixed vm again
[fai-configs.git] / class / 50-host-classes
CommitLineData
5caa1613 1#! /bin/bash
554a69d8 2. /usr/lib/fai/subroutines
5caa1613 3# assign classes hosts
2d1f8014 4
5caa1613 5nogrub=0
6
7# use a list of classes for our demo machine
2d1f8014 8case $HOSTNAME in
9 faiserver)
5caa1613 10 echo "FAIBASE DEMO FAISERVER" ;;
2d1f8014 11 demohost)
5caa1613 12 echo "FAIBASE DHCPC DEMO" ;;
3dfaa361 13 rms)
5caa1613 14 echo "FAIBASE DHCPC DEMO XORG TRISQUEL RMS";;
2d1f8014 15 gnomehost)
5caa1613 16 echo "FAIBASE DHCPC DEMO XORG GNOME";;
2d1f8014 17 atom*)
5caa1613 18 echo "FAIBASE DHCPC DEMO" ;;
2d1f8014 19 bear)
5caa1613 20 echo "FAIBASE DHCPC LVM_XEN_SERVER XEN" ;;
2d1f8014 21 puma)
5caa1613 22 echo "FAIBASE DHCPC RAID_XEN_VIRTUAL" ;;
f733d6b3
LMM
23 diskstation*)
24 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
afc7bce2 25 nogrub=1 ;;
04ee438e
LMM
26 freestation04)
27 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
28 nogrub=1 ;;
37c16f88 29 freestation*)
c5b48639 30 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
5caa1613 31 nogrub=1 ;;
fdb181c0 32 freetop-x60*)
fa9db267 33 echo "FAIBASE DHCPC XORG TRISQUEL WORKSTATION FSF"
fdb181c0 34 ;;
81410d1e 35 iwikiserver*)
1f4c822b 36 echo "FAIBASE IKIWIKI SYSADMIN VM"
81410d1e 37 nogrub=1
38 ;;
04ee438e 39 jobserver*)
432e3669 40 echo "FAIBASE JOB SYSADMIN VM"
04ee438e
LMM
41 nogrub=1
42 ;;
5caa1613 43 *)
44 echo "FAIBASE DHCPC DEMO XORG GNOME";;
2d1f8014 45esac
46
5caa1613 47if [ $nogrub -eq 0 ]; then
48 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
49fi
00743eb1 50
2d1f8014 51exit 0