class apache::base { include apache::var # apache-mpm-prefork is merged from mga3 up $apache_server = $lsbdistrelease ? { /1|2/ => 'apache-mpm-prefork', default => 'apache', } package { '$apache_server': alias => 'apache-server' } package { $apache::var::pkg_conf: } service { 'httpd': alias => 'apache', subscribe => [ Package['apache-server'] ], } exec { 'service httpd configtest': refreshonly => true, notify => Service['apache'], } apache::config { '/etc/httpd/conf.d/customization.conf': content => template('apache/customization.conf'), require => Package[$apache::var::pkg_conf]; '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf': content => template('apache/00_default_vhosts.conf'), require => Package[$apache::var::pkg_conf]; } file { '/etc/logrotate.d/httpd': content => template('apache/logrotate') } }