initial suppport for raid 10
[automated-distro-installer] / fai / config / class / 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 demohost)
11 echo "FAIBASE DEBIAN DESKTOP MANY_DISK STABLE" ;;
12 x2)
13 echo "FAIBASE DEBIAN DESKTOP ONE_DISK" ;;
14 tp)
15 echo "FAIBASE DEBIAN DESKTOP TWO_DISK" ;;
16 # faiserver)
17 # echo "FAIBASE DEBIAN DEMO FAISERVER" ;;
18 # xfcehost)
19 # echo "FAIBASE DEBIAN DEMO XORG XFCE LVM";;
20 # gnomehost)
21 # echo "FAIBASE DEBIAN DEMO XORG GNOME";;
22 # centos)
23 # echo "FAIBASE CENTOS" # you may want to add class XORG here
24 # ifclass I386 && echo CENTOS6_32 # AFAIK there's no 32bit C7
25 # ifclass AMD64 && echo CENTOS7_64
26 # exit 0 ;; # CentOS does not use the GRUB class
27 # slchost)
28 # # Scientific Linux Cern, is very similar to CentOS. SLC should alsways use the class CENTOS
29 # echo "FAIBASE CENTOS SLC" # you may want to add class XORG here
30 # ifclass I386 && echo SLC7_32
31 # ifclass AMD64 && echo SLC7_64
32 # exit 0 ;; # CentOS/SLC does not use the GRUB class
33 *)
34 echo "FAIBASE DEBIAN DESKTOP" ;;
35 esac
36
37 if grep ^52:54:00: /sys/class/net/eth0/address &>/dev/null; then
38 # if our eth0 mac is in the kvm range, we are a vm.
39 echo "VM"
40 fi