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
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 zoneminder*)
39 echo "FAIBASE DISKLESS SYSADMIN FSF ZONEMINDER"
40 ;;
41 freetop-x60*)
42 echo "FAIBASE $GRUB NW_MGR XORG TRISQUEL WORKSTATION FSF"
43 ;;
44 iwikiserver*)
45 echo "FAIBASE IKIWIKI SYSADMIN VM"
46 ;;
47 jobserver*)
48 echo "FAIBASE JOB SYSADMIN VM"
49 ;;
50 mysqlserver*)
51 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
52 ;;
53 streamstation*)
54 echo "FAIBASE $GRUB SYSADMIN STREAM LIBREPLANET"
55 ;;
56 freetop*)
57 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LIBREPLANET 3DPRINT"
58 ;;
59 mwikiserver*)
60 echo "FAIBASE MEDIAWIKI SYSADMIN VM"
61 ;;
62 ploneserver*)
63 echo "FAIBASE PLONE SYSADMIN VM"
64 ;;
65 printserver*)
66 echo "FAIBASE CUPS SYSADMIN VM"
67 ;;
68 crmserver*)
69 echo "FAIBASE WWW CIVICRM SYSADMIN VM"
70 ;;
71 crmdevserver*)
72 echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
73 ;;
74 gnusocial*)
75 echo "FAIBASE WWW SYSADMIN VM MYSQLD GNUSOCIAL YOURLS"
76 ;;
77 nagios*)
78 echo "FAIBASE SYSADMIN VM MYSQLD NAGIOS WWW"
79 ;;
80 shopserver*)
81 echo "FAIBASE SYSADMIN KOSA MARIADB WWW"
82 ;;
83 kdev*)
84 echo "FAIBASE SYSADMIN KOSA VM MYSQLD PLONE WWW"
85 ;;
86 *)
87 echo "FAIBASE"
88 ;;
89esac
90
91exit 0