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/gentoo.pp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 manifests/gentoo.pp (limited to 'manifests/gentoo.pp') 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; + } +} + -- cgit v1.2.3