class resolver {
  # DNS resolver
  case $resolvconf_nameservers {
    '': {
      package { 'resolvconf':
        ensure => present,
      }

      file { '/etc/resolv.conf':
        ensure => '/etc/resolvconf/run/resolv.conf',
        require => Package['resolvconf'],
      }
    }
    default: {
      class { 'resolvconf':
        search      => $::fqdn,
        nameservers => $resolvconf_nameservers,
      }
    }
  }
}