X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F50-host-classes;h=3548b1f001c8931e7bb2285b2d91b8ecdfbf3b1b;hb=7815dd8b158226f7186bf987d270b4f824902555;hp=0922b2f710f84c351607117e3c25d0b46420d037;hpb=6252cf1a2a83b33425fa0fbac87b6d2c16033fd9;p=automated-distro-installer diff --git a/fai/config/class/50-host-classes b/fai/config/class/50-host-classes index 0922b2f..3548b1f 100755 --- a/fai/config/class/50-host-classes +++ b/fai/config/class/50-host-classes @@ -7,25 +7,44 @@ # use a list of classes for our demo machine case $HOSTNAME in - faiserver) - echo "FAIBASE DEBIAN DEMO FAISERVER" ;; - demohost|client*) - echo "FAIBASE DEBIAN DEMO" ;; - xfcehost) - echo "FAIBASE DEBIAN DEMO XORG XFCE LVM";; - gnomehost) - echo "FAIBASE DEBIAN DEMO XORG GNOME";; - centos) - echo "FAIBASE CENTOS" # you may want to add class XORG here - ifclass I386 && echo CENTOS6_32 # AFAIK there's no 32bit C7 - ifclass AMD64 && echo CENTOS7_64 - exit 0 ;; # CentOS does not use the GRUB class - slchost) - # Scientific Linux Cern, is very similar to CentOS. SLC should alsways use the class CENTOS - echo "FAIBASE CENTOS SLC" # you may want to add class XORG here - ifclass I386 && echo SLC7_32 - ifclass AMD64 && echo SLC7_64 - exit 0 ;; # CentOS/SLC does not use the GRUB class + demohost) + echo "FAIBASE DEBIAN DESKTOP" ;; + x2) + echo "FAIBASE DEBIAN DESKTOP PARTITION_PROMPT" ;; + tp) + echo "FAIBASE DEBIAN DESKTOP PARTITION_PROMPT STABLE" ;; + frodo) + echo "FAIBASE DEBIAN DESKTOP PARTITION_PROMPT" ;; + treetowl) + echo "FAIBASE DEBIAN DESKTOP PARTITION_PROMPT" ;; + lj) + echo "FAIBASE DEBIAN LINODESTABLE PARTITION_PROMPT" ;; + li) + echo "FAIBASE DEBIAN LINODESTABLE PARTITION_PROMPT" ;; + do) + echo "FAIBASE DEBIAN STABLE PARTITION_PROMPT" ;; + # faiserver) + # echo "FAIBASE DEBIAN DEMO FAISERVER" ;; + # xfcehost) + # echo "FAIBASE DEBIAN DEMO XORG XFCE LVM";; + # gnomehost) + # echo "FAIBASE DEBIAN DEMO XORG GNOME";; + # centos) + # echo "FAIBASE CENTOS" # you may want to add class XORG here + # ifclass I386 && echo CENTOS6_32 # AFAIK there's no 32bit C7 + # ifclass AMD64 && echo CENTOS7_64 + # exit 0 ;; # CentOS does not use the GRUB class + # slchost) + # # Scientific Linux Cern, is very similar to CentOS. SLC should alsways use the class CENTOS + # echo "FAIBASE CENTOS SLC" # you may want to add class XORG here + # ifclass I386 && echo SLC7_32 + # ifclass AMD64 && echo SLC7_64 + # exit 0 ;; # CentOS/SLC does not use the GRUB class *) - echo "FAIBASE DEBIAN" ;; + echo "FAIBASE DEBIAN DESKTOP" ;; esac + +if grep ^52:54:00: /sys/class/net/eth0/address &>/dev/null; then + # if our eth0 mac is in the kvm range, we are a vm. + echo "VM" +fi