Newer
Older
# 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'],
}
exec { 'unbound-control-setup':
command => 'unbound-control-setup',
creates => '/etc/unbound/unbound_control.pem',
notify => Service['unbound'],
require => Package['unbound'],
}