don't reload apache2 all the time

This commit is contained in:
pettai 2024-06-13 15:00:22 +02:00
parent 4e124a1714
commit 3589751773
No known key found for this signature in database
GPG key ID: CDF2C381E9A751BD

View file

@ -19,10 +19,15 @@ class dns::apache2 {
refreshonly => true,
notify => Service['apache2'],
}
exec { 'a2dissite 000-default':
subscribe => File['/etc/apache2/sites-available/dns-rest-api.conf'],
refreshonly => true,
notify => Service['apache2'],
}
exec { 'a2ensite dns-rest-api':
subscribe => File['/etc/apache2/sites-available/dns-rest-api.conf'],
refreshonly => true,
notify => Service['apache2'],
}
sunet::nftables::rule { 'apache-http':