From 8896896fa02dda115af9d8258e3980920d30c8fc Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 12 Apr 2008 14:12:53 +0000 Subject: extending apache to centos usage, vhost and crypto stuff on immer8 and class to enable server-status for munin-plugins, where not yet done --- manifests/init.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index a710744..fdf672d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -68,6 +68,15 @@ class apache::centos inherits apache::base{ File[vhosts_dir]{ path => "$config_dir/vhosts.d/", } + + file{"${config_dir}/conf.d/vhosts.conf": + source => "puppet://$servername/apache/centos/vhosts.conf", + owner => root, group => 0, mode => 0755; + } + file{"${config_dir}/conf.d/ssl.conf": + source => "puppet://$servername/apache/centos/ssl.conf", + owner => root, group => 0, mode => 0755; + } } class apache::gentoo inherits apache::base { @@ -203,3 +212,15 @@ class apache::php inherits apache { } } +class apache::status { + case $operatingsystem { + centos: { include apache::status::centos } + } +} + +class apache::status::centos { + file{"/etc/httpd/conf.d/status.conf": + source => "puppet://$servername/centos/status.conf", + owner => root, group => 0, mode => 644; + } +} -- cgit v1.2.3