summaryrefslogtreecommitdiff
path: root/manifests/gentoo.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-05-17 22:27:05 +0200
committermh <mh@immerda.ch>2009-05-17 22:27:05 +0200
commitfbb3cb7dcd8406f085e80f3f11fa873b55bd5073 (patch)
treea95d59498674420347e7c115569cc42407d85d82 /manifests/gentoo.pp
parentc4b3c53375ab001c5cb6407537d64ff3b2ec35cf (diff)
extracted every define and class in it's own file
Diffstat (limited to 'manifests/gentoo.pp')
-rw-r--r--manifests/gentoo.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/manifests/gentoo.pp b/manifests/gentoo.pp
new file mode 100644
index 0000000..10839f0
--- /dev/null
+++ b/manifests/gentoo.pp
@@ -0,0 +1,34 @@
+### gentoo
+class apache::gentoo inherits apache::package {
+ $config_dir = '/etc/apache2/'
+
+ # needs module gentoo
+ gentoo::etcconfd {
+ apache2: require => "Package[apache]",
+ notify => Service[apache],
+ }
+ Package[apache]{
+ category => 'www-servers',
+ }
+ File[vhosts_dir]{
+ path => "$config_dir/vhosts.d/",
+ }
+ File[modules_dir]{
+ path => "$config_dir/modules.d/",
+ }
+
+ apache::gentoo::module { '00_default_settings': }
+ apache::gentoo::module { '00_error_documents': }
+ apache::config::file { 'default_vhost.include':
+ source => "apache/vhosts.d/default_vhost.include",
+ destination => "$config_dir/vhosts.d/default_vhost.include",
+ }
+
+ # set the default for the ServerName
+ file{"${config_dir}/modules.d/00_default_settings_ServerName.conf":
+ content => template('apache/modules_dir_00_default_settings_ServerName.conf.erb'),
+ require => Package[apache],
+ owner => root, group => 0, mode => 0644;
+ }
+}
+