class nodo::physical inherits nodo {
  include syslog-ng
  include firewall
  include initramfs
  include modprobe
  include firewire
  include sysctl
  include ups
  include utils::physical
  include smartmontools

  # Vserver configuration
  $vserver_vdirbase = "/var/vservers"
  include vserver::host

  if $use_nagios != false {
    include nagios::target
    nagios::service::ping { "$fqdn": }
  }

  # Time configuration
  case $ntpdate {
    false:   { include timezone }
    default: { include ntpdate  }
  }

  # DNS resolver
  $resolvconf_domain = "$domain"
  $resolvconf_search = "$fqdn"
  include resolvconf

  # SSH Server
  #
  # We need to restrict listen address so multiple instances
  # can live together in the same physical host.
  #
  case $sshd_listen_address {
    '': { $sshd_listen_address = [ "$ipaddress" ] }
  }
  include sshd

  backupninja::sys { "sys":
    ensure => present,
  }

  # Munin configuration
  munin_node { "$hostname":
    port => '4900',
  }

  # Monkeysphere configuration
  monkeysphere_host { "$hostname": }

  # SMART monitoring
  include munin::plugins::smart
  munin::plugin { "smart_sda":
    ensure => "smart_",
    config => "user root\ngroup disk",
  }

  # Removeable media folder
  file { [ "/media/usb", "/media/cdrom" ]:
    ensure => directory,
    mode   => 0755,
  }
}