# unbound installieren

class ubuntu_server::unbound{

    File{
        owner => 'root',
        group => 'root',
        mode  => '0644',
    }

    package{'unbound':
        ensure => present,
    }

    file{'/etc/unbound/unbound.conf.d/prefetch.conf':
        ensure  => present,
        source  => 'puppet:///modules/ubuntu_server/etc/unbound/unbound.conf.d/prefetch.conf',
        require => Package['unbound'],
        notify  => Service['unbound'],
    }

    service { 'unbound':
        ensure  => running,
        enable  => true,
        require => Package['unbound'],
    }
}