- if $::hostname in [pasquini,tristano] {
- include ganeti2
- }
-
- if $::kernel == Linux {
- include linux
- } elsif $::kernel == 'GNU/kFreeBSD' {
- include kfreebsd
- }
-
- if $::kvmdomain {
- include acpi
- }
-
- if $::mta == 'exim4' {
- if getfromhash($site::nodeinfo, 'heavy_exim') {
- include exim::mx
- } else {
- include exim
- }
- } else {
- include postfix
- }
-
- if $::lsbdistcodename != 'lenny' {
- include unbound
- }
-
- if getfromhash($site::nodeinfo, 'puppetmaster') {
- include puppetmaster
- }
-
- if getfromhash($site::nodeinfo, 'muninmaster') {
- include munin::master
- }
-
- if getfromhash($site::nodeinfo, 'nagiosmaster') {
- include nagios::server
- }
-
- if getfromhash($site::nodeinfo, 'buildd') {
- include buildd
- }
+ # this is magic: it will include whatever classes says we should
+ # include, based on the value of the "classes" array
+ hiera_include('classes')