test notify knot if file(s) changes
This commit is contained in:
parent
f05cb85e38
commit
c879b4566b
|
@ -34,6 +34,19 @@ class dns::knotdns(
|
||||||
ensure => installed,
|
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":
|
exec {"Install KnotREST":
|
||||||
command => "apt install -fy python3-knot-rest=$knotrestversion && touch $control_file",
|
command => "apt install -fy python3-knot-rest=$knotrestversion && touch $control_file",
|
||||||
unless => "test -f $control_file",
|
unless => "test -f $control_file",
|
||||||
|
|
Loading…
Reference in a new issue