Compare commits
2 commits
f05cb85e38
...
cc36ec8957
Author | SHA1 | Date | |
---|---|---|---|
pettai | cc36ec8957 | ||
pettai | c879b4566b |
|
@ -34,6 +34,11 @@ class dns::knotdns(
|
|||
ensure => installed,
|
||||
}
|
||||
|
||||
service { 'knot':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
|
||||
exec {"Install KnotREST":
|
||||
command => "apt install -fy python3-knot-rest=$knotrestversion && touch $control_file",
|
||||
unless => "test -f $control_file",
|
||||
|
@ -60,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 {
|
||||
|
|
Loading…
Reference in a new issue