From fe6e9e5a30b2b78f9ba78751043abfc25d214226 Mon Sep 17 00:00:00 2001 From: pettai Date: Wed, 12 Jun 2024 22:00:12 +0200 Subject: [PATCH] exec -> package for knot --- .../overlay/etc/puppet/modules/dns/manifests/knotdns.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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":