Merge branch 'master' of vcs.fsf.org:fai-configs
[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
bd6c2111 9 faiserver*)
77c721a5
LMM
10 echo "FAIBASE FAISEVER SYSADMIN VM"
11 nogrub=1 ;;
2d1f8014 12 demohost)
5caa1613 13 echo "FAIBASE DHCPC DEMO" ;;
3dfaa361 14 rms)
5caa1613 15 echo "FAIBASE DHCPC DEMO XORG TRISQUEL RMS";;
2d1f8014 16 gnomehost)
5caa1613 17 echo "FAIBASE DHCPC DEMO XORG GNOME";;
2d1f8014 18 atom*)
5caa1613 19 echo "FAIBASE DHCPC DEMO" ;;
2d1f8014 20 bear)
5caa1613 21 echo "FAIBASE DHCPC LVM_XEN_SERVER XEN" ;;
2d1f8014 22 puma)
5caa1613 23 echo "FAIBASE DHCPC RAID_XEN_VIRTUAL" ;;
f733d6b3
LMM
24 diskstation*)
25 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
afc7bce2 26 nogrub=1 ;;
04ee438e
LMM
27 freestation04)
28 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
29 nogrub=1 ;;
8d8df5d7
LMM
30 freestation06)
31 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN JAPANESE"
32 nogrub=1 ;;
37c16f88 33 freestation*)
c5b48639 34 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
5caa1613 35 nogrub=1 ;;
fdb181c0 36 freetop-x60*)
fa9db267 37 echo "FAIBASE DHCPC XORG TRISQUEL WORKSTATION FSF"
fdb181c0 38 ;;
81410d1e 39 iwikiserver*)
1f4c822b 40 echo "FAIBASE IKIWIKI SYSADMIN VM"
81410d1e 41 nogrub=1
42 ;;
04ee438e 43 jobserver*)
432e3669 44 echo "FAIBASE JOB SYSADMIN VM"
04ee438e
LMM
45 nogrub=1
46 ;;
b75f015b 47 mysqlserver*)
b4a13bdf 48 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
b75f015b
LMM
49 nogrub=1
50 ;;
6441b4e5 51 streamstation*)
aa115edc 52 echo "FAIBASE DHCPC SYSADMIN STREAM LIBREPLANET"
6441b4e5 53 ;;
54 freetop*)
aa115edc 55 echo "FAIBASE DHCPC SYSADMIN XORG TRISQUEL WORKSTATION LIBREPLANET"
6441b4e5 56 ;;
57
5caa1613 58 *)
6441b4e5 59
60
5caa1613 61 echo "FAIBASE DHCPC DEMO XORG GNOME";;
2d1f8014 62esac
63
5caa1613 64if [ $nogrub -eq 0 ]; then
65 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
66fi
00743eb1 67
2d1f8014 68exit 0