fixed classes file
[fai-configs.git] / class / 50-host-classes
... / ...
CommitLineData
1#! /bin/bash
2. /usr/lib/fai/subroutines
3# assign classes hosts
4
5if (ifclass I386 || ifclass AMD64) ; then
6 GRUB="GRUB_PC"
7fi
8
9# use a list of classes for our demo machine
10case $HOSTNAME in
11 faiserver*)
12 echo "FAIBASE FAISEVER SYSADMIN VM"
13 ;;
14 demohost)
15 echo "FAIBASE $GRUB DHCPC DEMO" ;;
16 rms)
17 echo "FAIBASE $GRUB DHCPC DEMO XORG TRISQUEL RMS";;
18 gnomehost)
19 echo "FAIBASE $GRUB DHCPC DEMO XORG GNOME";;
20 atom*)
21 echo "FAIBASE $GRUB DHCPC DEMO" ;;
22 bear)
23 echo "FAIBASE $GRUB DHCPC LVM_XEN_SERVER XEN" ;;
24 puma)
25 echo "FAIBASE $GRUB DHCPC RAID_XEN_VIRTUAL" ;;
26 diskstation*)
27 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
28 ;;
29 freestation7)
30 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
31 ;;
32 freestation06)
33 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN JAPANESE"
34 ;;
35 freestation*)
36 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
37 ;;
38 freetop-x60*)
39 echo "FAIBASE $GRUB DHCPC XORG TRISQUEL WORKSTATION FSF"
40 ;;
41 iwikiserver*)
42 echo "FAIBASE IKIWIKI SYSADMIN VM"
43 ;;
44 jobserver*)
45 echo "FAIBASE JOB SYSADMIN VM"
46 ;;
47 mysqlserver*)
48 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
49 ;;
50 streamstation*)
51 echo "FAIBASE $GRUB DHCPC SYSADMIN STREAM LIBREPLANET"
52 ;;
53 freetop*)
54 echo "FAIBASE $GRUB DHCPC SYSADMIN XORG TRISQUEL WORKSTATION LIBREPLANET"
55 ;;
56 mwikiserver*)
57 echo "FAIBASE MEDIAWIKI SYSADMIN VM"
58 ;;
59 ploneserver*)
60 echo "FAIBASE PLONE SYSADMIN VM"
61 ;;
62 printserver*)
63 echo "FAIBASE CUPS SYSADMIN VM"
64 ;;
65 crmserver*)
66 echo "FAIBASE WWW CIVICRM SYSADMIN VM"
67 ;;
68 crmdevserver*)
69 echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
70 ;;
71 gnusocial*)
72 echo "FAIBASE WWW SYSADMIN VM MYSQLD"
73 ;;
74 nagios*)
75 echo "FAIBASE SYSADMIN VM MYSQLD NAGIOS WWW"
76 ;;
77 *)
78 echo "FAIBASE"
79 ;;
80esac
81
82exit 0