add apache2

This commit is contained in:
pettai 2024-06-13 11:01:58 +02:00
parent 27289f0be5
commit 720331cd43
No known key found for this signature in database
GPG key ID: CDF2C381E9A751BD

View file

@ -0,0 +1,21 @@
class dns::apache2 {
package { ['apache2', 'libapache2-mod-qos']:
ensure => installed,
}
service { 'apache2':
ensure => running,
enable => true,
}
exec { 'a2enmod ssl && a2enmod headers && a2enmod proxy && a2enmod proxy_http && a2enmod request && a2enmod rewrite':
subscribe => File['/etc/apache2/sites-available/default-ssl.conf'],
refreshonly => true,
notify => Service['apache2'],
}
# exec { 'a2dissite default-ssl.conf':
# notify => Service['apache2'],
# }
# exec { 'a2dissite default-000.conf':
# notify => Service['apache2'],
# }
}