added gnusocial to 50hostclasses
[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 freestation7)
28 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
29 nogrub=1 ;;
30 freestation06)
31 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN JAPANESE"
32 nogrub=1 ;;
33 freestation*)
34 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
35 nogrub=1 ;;
36 freetop-x60*)
37 echo "FAIBASE DHCPC XORG TRISQUEL WORKSTATION FSF"
38 ;;
39 iwikiserver*)
40 echo "FAIBASE IKIWIKI SYSADMIN VM"
41 nogrub=1
42 ;;
43 jobserver*)
44 echo "FAIBASE JOB SYSADMIN VM"
45 nogrub=1
46 ;;
47 mysqlserver*)
48 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
49 nogrub=1
50 ;;
51 streamstation*)
52 echo "FAIBASE DHCPC SYSADMIN STREAM LIBREPLANET"
53 ;;
54 freetop*)
55 echo "FAIBASE DHCPC SYSADMIN XORG TRISQUEL WORKSTATION LIBREPLANET"
56 ;;
57 mwikiserver*)
58 echo "FAIBASE MEDIAWIKI SYSADMIN VM"
59 nogrub=1
60 ;;
61 printserver*)
62 echo "FAIBASE CUPS SYSADMIN VM"
63 nogrub=1
64 ;;
65 crmserver*)
66 echo "FAIBASE WWW CIVICRM SYSADMIN VM"
67 nogrub=1
68 ;;
69 crmdevserver*)
70 echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
71 nogrub=1
72 ;;
73 gnusocial*)
74 echo "FAIBASE WWW SYSADMIN VM MYSQLD"
75 nogrub=1
76 ;;
77 *)
78 echo "FAIBASE"
79 nogrub=1
80 ;;
81esac
82
83if [ $nogrub -eq 0 ]; then
84 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
85fi
86
87exit 0