df38b888827b358166058648db04ad3574fe7de2
[automated-distro-installer] / 50-host-classes
1 #! /bin/bash
2
3 # assign classes to hosts based on their hostname
4
5 # do not use this if a menu will be presented
6 [ "$flag_menu" ] && exit 0
7
8 # use a list of classes for our demo machine
9 case $HOSTNAME in
10 faiserver)
11 echo "FAIBASE DEBIAN DEMO FAISERVER" ;;
12 demohost|client*)
13 echo "FAIBASE DEBIAN DEMO" ;;
14 xfcehost)
15 echo "FAIBASE DEBIAN DEMO XORG XFCE LVM";;
16 gnomehost)
17 echo "FAIBASE DEBIAN DEMO XORG GNOME";;
18 ubuntuhost)
19 echo "FAIBASE DEBIAN DEMO UBUNTU FOCAL FOCAL64 XORG";;
20 centos)
21 echo "FAIBASE CENTOS" # you may want to add class XORG here
22 ifclass AMD64 && echo CENTOS8_64
23 ;;
24 slchost)
25 # Scientific Linux Cern, is very similar to CentOS. SLC should alsways use the class CENTOS
26 echo "FAIBASE CENTOS SLC" # you may want to add class XORG here
27 ifclass I386 && echo SLC7_32
28 ifclass AMD64 && echo SLC7_64
29 ;;
30 *)
31 echo "FAIBASE DEBIAN DEMO" ;;
32 esac