diff --git a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp index e142041..78f93fe 100644 --- a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp +++ b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp @@ -23,8 +23,12 @@ class dns::knotdns( } # Install the package stuff - exec {"Install KnotDNS + KnotREST": - command => "apt install -fy knot knot-host knot-dnsutils libknot14 python3-knot-rest=$knotrestversion && touch $control_file", + package { ['knot', 'knot-host', 'knot-dnsutils', 'libknot14']: + ensure => installed, + } + + exec {"Install KnotREST": + command => "apt install -fy python3-knot-rest=$knotrestversion && touch $control_file", unless => "test -f $control_file", } exec {"Let user knot_rest use knot's socket":