test notify knot if file(s) changes

This commit is contained in:
pettai 2024-06-14 16:02:17 +02:00
parent f05cb85e38
commit c879b4566b
No known key found for this signature in database
GPG key ID: CDF2C381E9A751BD

View file

@ -34,6 +34,19 @@ class dns::knotdns(
ensure => installed,
}
service { 'knot':
ensure => running,
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",