From cc36ec8957614641a192503aa6ff531496e23520 Mon Sep 17 00:00:00 2001 From: pettai Date: Fri, 14 Jun 2024 16:08:57 +0200 Subject: [PATCH] restruct --- .../etc/puppet/modules/dns/manifests/knotdns.pp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp index fe9505d..78d667f 100644 --- a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp +++ b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp @@ -39,14 +39,6 @@ class dns::knotdns( enable => true, } - file { '/etc/knot/conf.d/*.conf', - ensure => file, - owner => 'knot', - group => 'knot', - refreshonly => true, - notify => Service['knot'], - } - exec {"Install KnotREST": command => "apt install -fy python3-knot-rest=$knotrestversion && touch $control_file", unless => "test -f $control_file", @@ -73,6 +65,13 @@ class dns::knotdns( owner => 'knot', group => 'knot', } + file { '/etc/knot/conf.d/*.conf', + ensure => file, + owner => 'knot', + group => 'knot', + refreshonly => true, + notify => Service['knot'], + } # Install KnotREST configuration if $knot_rest_token_secret {