Fix some env variables and add LUKS and ecryptfs support
[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 contop*)
39 echo "FAIBASE $GRUB NW_MGR XORG TRISQUEL WORKSTATION FSF CONTOP"
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 SYSADMIN STREAM XORG TRISQUEL LPCONF"
52 ;;
53 streamtop*)
54 echo "FAIBASE $GRUB SYSADMIN STREAM XORG TRISQUEL LAPTOP LPCONF"
55 ;;
56 freetop*)
57 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LAPTOP 3DPRINT"
58 ;;
59 sfreetop*)
60 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LAPTOP 3DPRINT LUKS ECRYPTFS"
61 ;;
62 libretop*)
63 echo "FAIBASE $GRUB NW_MGR SYSADMIN XORG TRISQUEL WORKSTATION LAPTOP LPCONF"
64 ;;
65 mwikiserver*)
66 echo "FAIBASE MEDIAWIKI SYSADMIN VM"
67 ;;
68 ploneserver*)
69 echo "FAIBASE PLONE SYSADMIN VM"
70 ;;
71 printserver*)
72 echo "FAIBASE CUPS SYSADMIN VM"
73 ;;
74 crmserver*)
75 echo "FAIBASE WWW CIVICRM SYSADMIN VM"
76 ;;
77 crmdevserver*)
78 echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
79 ;;
80 gnusocial*)
81 echo "FAIBASE WWW SYSADMIN VM MYSQLD GNUSOCIAL YOURLS"
82 ;;
83 nagios*)
84 echo "FAIBASE SYSADMIN VM MYSQLD NAGIOS WWW"
85 ;;
86 shopserver*)
87 echo "FAIBASE SYSADMIN KOSA MARIADB WWW LETSENCRYPT"
88 ;;
89 kdev*)
90 echo "FAIBASE SYSADMIN KOSA VM MYSQLD PLONE WWW"
91 ;;
92 dcimserver*)
93 echo "FAIBASE SYSADMIN VM WWW MYSQLD ODCIM"
94 ;;
95 irc*)
96 echo "FAIBASE SYSADMIN KOSA SYSADMIN VM WWW LETSENCRYPT IRC"
97 ;;
98 glamp*)
99 echo "FAIBASE MYSQLD PHP5 SYSADMIN WWW"
100 ;;
101 gmg*libreplanet.org)
102 echo "FAIBASE VM PSQL GMG SYSADMIN LETSENCRYPT LIBREPLANET"
103 ;;
104 gmg*)
105 echo "FAIBASE VM PSQL GMG SYSADMIN LETSENCRYPT"
106 ;;
107 *)
108 echo "FAIBASE"
109 ;;
110esac
111
112exit 0