added LAPTOP class for diskconfig
[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 FAISERVER SYSADMIN VM"
13 ;;
14 nekohost)
15 echo "FAIBASE $GRUB DHCPC DEMO"
16 ;;
17 rms)
18 echo "FAIBASE $GRUB DHCPC DEMO XORG TRISQUEL RMS"
19 ;;
20 diskstation*)
21 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
22 ;;
23 freestation7)
24 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN MV"
25 ;;
26 freestation06)
27 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF SYSADMIN JAPANESE"
28 ;;
29 freestation*)
30 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
31 ;;
32 zoneminder*)
33 echo "FAIBASE SYSADMIN FSF ZONEMINDER MYSQLD"
34 ;;
35 freetop-x60*)
36 echo "FAIBASE $GRUB NW_MGR XORG TRISQUEL WORKSTATION FSF"
37 ;;
38 iwikiserver*)
39 echo "FAIBASE IKIWIKI SYSADMIN VM"
40 ;;
41 jobserver*)
42 echo "FAIBASE JOB SYSADMIN VM"
43 ;;
44 mysqlserver*)
45 echo "FAIBASE KVMGUEST SYSADMIN MYSQLD"
46 ;;
47 streamstation*)
48 echo "FAIBASE $GRUB SYSADMIN STREAM XORG TRISQUEL LPCONF"
49 ;;
50 streamtop*)
51 echo "FAIBASE $GRUB SYSADMIN STREAM XORG TRISQUEL LAPTOP LPCONF"
52 ;;
53 freetop*)
54 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LAPTOP 3DPRINT"
55 ;;
56
57 libretop*)
58 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LAPTOP LPCONF"
59 ;;
60 mwikiserver*)
61 echo "FAIBASE MEDIAWIKI SYSADMIN VM"
62 ;;
63 ploneserver*)
64 echo "FAIBASE PLONE SYSADMIN VM"
65 ;;
66 printserver*)
67 echo "FAIBASE CUPS SYSADMIN VM"
68 ;;
69 crmserver*)
70 echo "FAIBASE WWW CIVICRM SYSADMIN VM"
71 ;;
72 crmdevserver*)
73 echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
74 ;;
75 gnusocial*)
76 echo "FAIBASE WWW SYSADMIN VM MYSQLD GNUSOCIAL YOURLS"
77 ;;
78 nagios*)
79 echo "FAIBASE SYSADMIN VM MYSQLD NAGIOS WWW"
80 ;;
81 shopserver*)
82 echo "FAIBASE SYSADMIN KOSA MARIADB WWW"
83 ;;
84 kdev*)
85 echo "FAIBASE SYSADMIN KOSA VM MYSQLD PLONE WWW"
86 ;;
87 dcimserver*)
88 echo "FAIBASE SYSADMIN VM WWW MYSQLD ODCIM"
89 ;;
90 irc*)
91 echo "FAIBASE SYSADMIN KOSA SYSADMIN VM WWW LETSENCRYPT IRC"
92 ;;
93 glamp*)
94 echo "FAIBASE MYSQLD PHP5 SYSADMIN WWW"
95 ;;
96 gmg*libreplanet.org)
97 echo "FAIBASE VM PSQL GMG SYSADMIN LETSENCRYPT LIBREPLANET"
98 ;;
99 gmg*)
100 echo "FAIBASE VM PSQL GMG SYSADMIN LETSENCRYPT"
101 ;;
102 *)
103 echo "FAIBASE"
104 ;;
105esac
106
107exit 0