diff options
author | mh <mh@immerda.ch> | 2008-07-26 15:21:59 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-07-26 15:21:59 +0000 |
commit | d6a3b141488165e350359207a5b4b63a305b27ce (patch) | |
tree | 7ef63cd364d5d27f47ef3b7cc27653c9f6679f96 /manifests/modules | |
parent | f6d135d7e52f27d2dadad243417d81da62f3f347 (diff) |
factered out the modules of the apache module
Diffstat (limited to 'manifests/modules')
-rw-r--r-- | manifests/modules/mod_extract_forwarded2.pp | 7 | ||||
-rw-r--r-- | manifests/modules/mod_perl.pp | 25 | ||||
-rw-r--r-- | manifests/modules/mod_security.pp | 69 | ||||
-rw-r--r-- | manifests/modules/mod_unique_id.pp | 14 | ||||
-rw-r--r-- | manifests/modules/php.pp | 84 |
5 files changed, 0 insertions, 199 deletions
diff --git a/manifests/modules/mod_extract_forwarded2.pp b/manifests/modules/mod_extract_forwarded2.pp deleted file mode 100644 index f904477..0000000 --- a/manifests/modules/mod_extract_forwarded2.pp +++ /dev/null @@ -1,7 +0,0 @@ -# modules/apache/manifests/modules/mod_extract_forwarded2.pp -# 2008 - admin(at)immerda.ch -# License: GPLv3 - -class mod_extract_forwarded2 { - -} diff --git a/manifests/modules/mod_perl.pp b/manifests/modules/mod_perl.pp deleted file mode 100644 index 18559cb..0000000 --- a/manifests/modules/mod_perl.pp +++ /dev/null @@ -1,25 +0,0 @@ -# modules/apache/manifests/modules/mod_perl.pp -# 2008 - admin(at)immerda.ch -# License: GPLv3 - -class apache::mod_perl { - case $operatingsystem { - gentoo: { include apache::mod_perl::gentoo } - default: { include apache::mod_perl::base } - } -} - -class apache::mod_perl::base { - package{mod_perl: - ensure => installed, - notify => Service[apache], - } -} - -class apache::mod_perl::gentoo inherits apache::mod_perl::base { - Package[mod_perl]{ - category => 'www-apache', - } -} - - diff --git a/manifests/modules/mod_security.pp b/manifests/modules/mod_security.pp deleted file mode 100644 index bbc04c9..0000000 --- a/manifests/modules/mod_security.pp +++ /dev/null @@ -1,69 +0,0 @@ -# modules/apache/manifests/modules/mod_security.pp -# 2008 - admin(at)immerda.ch -# License: GPLv3 - -class apache::mod_security { - case $operatingsystem { - gentoo: { include apache::mod_security::gentoo } - default: { include apache::mod_security::base } - } -} - -class apache::mod_security::base { - #mod_unique_id is needed for mod_security - include mod_unique_id - - package{mod_security: - ensure => installed, - notify => Service[apache], - } -# file{custom_rule_dir: -# path => "/etc/apache2/modules.d/mod_security/Zcustom_rules", -# ensure => directory, -# owner => root, -# group => 0, -# mode => 755, -# require => Package[mod_security], -# notify => Service[apache], -# } - - file{custom_rules: - path => "/etc/apache2/modules.d/mod_security/Zcustom_rules/", - source => "puppet://$server/apache/mod_security/custom_rules/", - recurse => true, - owner => root, - group => 0, - mode => 644, - require => Package[mod_security], - notify => Service[apache], - } - -# file{custom_host_rules: -# path => "/etc/apache2/modules.d/mod_security/Zcustom_rules/", -# source => [ "puppet://$server/files/apache/mod_security/custom_rules/${fqdn}", -# "puppet://$server/apache/mod_security/custom_rules.Default_keep_it_empty/" ], -# recurse => true, -# owner => root, -# group => 0, -# mode => 644, -# require => File[custom_rule_dir], -# notify => Service[apache], -# } -} - -class apache::mod_security::gentoo inherits apache::mod_security::base { - Package[mod_security]{ - category => 'www-apache', - } - - file{"/etc/apache2/modules.d/99_mod_security.conf": - source => "puppet://$server/apache/mod_security/configs/gentoo/99_mod_security.conf", - owner => root, - group => 0, - mode => 644, - require => Package[mod_security], - notify => Service[apache], - } -} - - diff --git a/manifests/modules/mod_unique_id.pp b/manifests/modules/mod_unique_id.pp deleted file mode 100644 index 25d8f13..0000000 --- a/manifests/modules/mod_unique_id.pp +++ /dev/null @@ -1,14 +0,0 @@ -# modules/apache/manifests/modules/mod_unique_id.pp -# 2008 - admin(at)immerda.ch -# License: GPLv3 - -class apache::mod_unique_id { - case $operatingsystem { - default: { include apache::mod_unique_id::base } - } -} - -class apache::mod_unique_id::base { - #noting todo yet -} - diff --git a/manifests/modules/php.pp b/manifests/modules/php.pp deleted file mode 100644 index 9609a96..0000000 --- a/manifests/modules/php.pp +++ /dev/null @@ -1,84 +0,0 @@ -# php/manifests/init.pp - various ways of installing php -# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> -# changed and improved by immerda project group admin(at)immerda.ch -# See LICENSE for the full license granted to you. - -class php::base { - package{php: - ensure => installed, - before => Service[apache], - notify => Service[apache], - } - file{php_ini_config: - path => "/etc/php/apache2-php5/php.ini", - source => [ - "puppet://$server/files/apache/php/apache2_php5_php.ini/${fqdn}/php.ini", - "puppet://$server/files/apache/php/apache2_php5_php.ini/php.ini", - "puppet://$server/apache/php/apache2_php5_php.ini/php.ini" - ], - owner => root, - group => 0, - mode => 0644, - require => [ Package[php], Package[apache] ], - notify => Service[apache], - } -} - -class php::centos inherits php::base {} - -define php::debian::pear ($version = '') { - include "php::debian::pear::common" - - package { "php${version}-${name}": ensure => installed } -} - -class php::debian::pear::common { - package { ["php-pear", "php5-common" ]: ensure => installed } -} - -class php::debian inherits php::base { - #dunno yet about this config file under debian - File[php_ini_config]{ - ensure => absent, - } - Package[php]{ - name => 'php5', - } - - package { [ "php5", "php5-cli", "libapache2-mod-php5", "phpunit2" ]: - ensure => installed, - required => Package[php], - } - - php::debian::pear { [ - "auth-pam", "curl", "idn", "imap", "json", "ldap", "mcrypt", "mhash", - "ming", "mysql", "odbc", "pgsql", "ps", "pspell", "recode", "snmp", - "sqlite", "sqlrelay", "tidy", "uuid", "xapian", "xmlrpc", "xsl" - ]: - version => 5 - } - - include "php::debian::common" -} -# ubuntu might be the same as debian -class php::ubuntu inherits php::debian {} - - -class php::debian::common { - php::pear { - [ auth, benchmark, cache, cache-lite, date, db, file, fpdf, gettext, - html-template-it, http, http-request, log, mail, mail-mime, net-checkip, - net-dime, net-ftp, net-imap, net-ldap, net-sieve, net-smartirc, net-smtp, - net-socket, net-url, pager, radius, simpletest, services-weather, soap, - sqlite3, xajax, xml-parser, xml-serializer, xml-util ]: - } -} - -class php::gentoo inherits php::base { - Package[php]{ - category => 'dev-lang', - } -} - - - |