class apache { class base { package { "apache-mpm-prefork": alias => apache, ensure => installed } service { httpd: alias => apache, ensure => running, subscribe => [ Package['apache-mpm-prefork'] ], } file { "customization.conf": ensure => present, path => "/etc/httpd/conf/customization.conf", content => template("apache/customization.conf"), require => Package["apache"], notify => Service["apache"], owner => root, group => root, mode => 644, } } class mod_php inherits base { package { "apache-mod_php": ensure => installed } } class mod_perl inherits base { package { "apache-mod_perl": ensure => installed } } class mod_fcgid inherits base { package { "apache-mod_fcgid": ensure => installed } } class mod_fastcgi inherits base { package { "apache-mod_fastcgi": ensure => installed } } class mod_wsgi inherits base { package { "apache-mod_wsgi": ensure => installed } } }