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