From fbb3cb7dcd8406f085e80f3f11fa873b55bd5073 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 17 May 2009 22:27:05 +0200 Subject: extracted every define and class in it's own file --- manifests/centos.pp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 manifests/centos.pp (limited to 'manifests/centos.pp') diff --git a/manifests/centos.pp b/manifests/centos.pp new file mode 100644 index 0000000..604a9ca --- /dev/null +++ b/manifests/centos.pp @@ -0,0 +1,41 @@ +### centos +class apache::centos inherits apache::package { + $config_dir = '/etc/httpd/' + + Package[apache]{ + name => 'httpd', + } + Service[apache]{ + name => 'httpd', + restart => '/etc/init.d/httpd graceful', + } + File[vhosts_dir]{ + path => "$config_dir/vhosts.d/", + } + File[config_dir]{ + path => "$config_dir/conf.d/", + } + File[modules_dir]{ + path => "$config_dir/modules.d/", + } + File[web_dir]{ + path => "/var/www/vhosts", + } + File[default_apache_index]{ + path => '/var/www/html/index.html', + } + + file{'/etc/sysconfig/httpd': + source => [ "puppet://$server/files/apache/sysconfig/${fqdn}/httpd", + "puppet://$server/files/apache/sysconfig/httpd", + "puppet://$server/apache/sysconfig/${operatingsystem}/httpd", + "puppet://$server/apache/sysconfig/httpd" ], + require => Package['apache'], + notify => Service['apache'], + owner => root, group => 0, mode => 0644; + } + + apache::config::file{ 'welcome.conf': } + apache::config::file{ 'vhosts.conf': } +} + -- cgit v1.2.3