From 51e45b7091ba5482b80aa7e92f69700b7d17c613 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 4 Nov 2010 01:09:23 +0000 Subject: - add a module for apache --- modules/apache/manifests/init.pp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/apache/manifests/init.pp (limited to 'modules/apache') diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp new file mode 100644 index 00000000..48bb1835 --- /dev/null +++ b/modules/apache/manifests/init.pp @@ -0,0 +1,32 @@ +class apache { + + class base { + package { "apache-mpm-prefork": + ensure => installed + } + + service { apache: + ensure => running, + subscribe => [ Package['apache-mpm-prefork'] ], + path => "/etc/init.d/httpd" + } + } + + class mod_php inherits base { + package { "apache-mod_php": + ensure => installed + } + } + + class mod_perl inherits base { + package { "apache-mod_perl": + ensure => installed + } + } + + class mod_wsgi inherits base { + package { "apache-mod_wsgi": + ensure => installed + } + } +} -- cgit v1.2.1