From a8d4d352fda677fad2aea4e8d048806763c2f52a Mon Sep 17 00:00:00 2001 From: pettai Date: Wed, 12 Jun 2024 15:20:55 +0200 Subject: [PATCH] don't (re)install unless ... --- global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp index c500f0a..fae52cb 100644 --- a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp +++ b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp @@ -19,6 +19,7 @@ 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", + unless => "test -f $control_file", } # Install KnotDNS configuration