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 nogrub=1 ;;
12 demohost)
13 echo "FAIBASE DHCPC DEMO" ;;
14 rms)
15 echo "FAIBASE DHCPC DEMO XORG TRISQUEL RMS";;
16 gnomehost)
17 echo "FAIBASE DHCPC DEMO XORG GNOME";;
18 atom*)
19 echo "FAIBASE DHCPC DEMO" ;;
20 bear)
21 echo "FAIBASE DHCPC LVM_XEN_SERVER XEN" ;;
22 puma)
23 echo "FAIBASE DHCPC RAID_XEN_VIRTUAL" ;;
24 diskstation*)
25 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
26 nogrub=1 ;;
27 freestation04)
28 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
29 nogrub=1 ;;
30 freestation*)
31 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
32 nogrub=1 ;;
33 freetop-x60*)
34 echo "FAIBASE DHCPC XORG TRISQUEL WORKSTATION FSF"
35 ;;
36 iwikiserver*)
37 echo "FAIBASE IKIWIKI SYSADMIN VM"
38 nogrub=1
39 ;;
40 jobserver*)
41 echo "FAIBASE JOB SYSADMIN VM"
42 nogrub=1
43 ;;
44 mysqlserver*)
45 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
46 nogrub=1
47 ;;
48 streamstation*)
49 echo "FAIBASE DHCPC SYSADMIN STREAM"
50 ;;
51 freetop*)
52 echo "FAIBASE DHCPC SYSADMIN XORG TRISQUEL WORKSTATION"
53 ;;
54
55 *)
56
57
58 echo "FAIBASE DHCPC DEMO XORG GNOME";;
59esac
60
61if [ $nogrub -eq 0 ]; then
62 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
63fi
64
65exit 0