diff options
author | mh <mh@immerda.ch> | 2009-05-17 22:27:05 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-05-17 22:27:05 +0200 |
commit | fbb3cb7dcd8406f085e80f3f11fa873b55bd5073 (patch) | |
tree | a95d59498674420347e7c115569cc42407d85d82 /manifests/centos.pp | |
parent | c4b3c53375ab001c5cb6407537d64ff3b2ec35cf (diff) |
extracted every define and class in it's own file
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 41 |
1 files changed, 41 insertions, 0 deletions
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': } +} + |