Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
unbound.pp 852 B
Newer Older
Benedikt Wegmann's avatar
Benedikt Wegmann committed
# unbound installieren

class ubuntu_server::unbound{

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

    Exec{
        path => $::path,
    }

Benedikt Wegmann's avatar
Benedikt Wegmann committed
    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'],
    }
Benedikt Wegmann's avatar
Benedikt Wegmann committed
}