Commit e531898a authored by mh's avatar mh
Browse files

new style for 2.7

parent 0f2dc972
class mod_perl::base {
include apache
package{mod_perl:
ensure => installed,
require => Package['apache'],
notify => Service['apache'],
}
include apache
package{mod_perl:
ensure => installed,
require => Package['apache'],
notify => Service['apache'],
}
}
class mod_perl::centos inherits mod_perl::base {
apache::config::global{'perl.conf':
source => "modules/mod_perl/apache/${operatingsystem}/perl.conf",
source => "modules/mod_perl/apache/${::operatingsystem}/perl.conf",
require => Package['mod_perl'],
}
}
class mod_perl::disable inherits mod_perl {
case $operatingsystem {
centos: { include mod_perl::disable::centos }
default: { include mod_perl::disable::base }
}
}
\ No newline at end of file
case $::operatingsystem {
centos: { include mod_perl::disable::centos }
default: { include mod_perl::disable::base }
}
}
class mod_perl::gentoo inherits mod_perl::base {
Package[mod_perl]{
category => 'www-apache',
}
Package[mod_perl]{
category => 'www-apache',
}
}
......@@ -10,9 +10,9 @@
#
class mod_perl {
case $operatingsystem {
gentoo: { include mod_perl::gentoo }
centos: { include mod_perl::centos }
default: { include mod_perl::base }
}
case $::operatingsystem {
gentoo: { include mod_perl::gentoo }
centos: { include mod_perl::centos }
default: { include mod_perl::base }
}
}
class mod_perl::itk_plus inherits mod_perl {
case $operatingsystem {
case $::operatingsystem {
centos: { include mod_perl::itk_plus::centos }
}
}
class mod_perl::itk_plus::centos inherits mod_perl::centos {
Apache::Conf::Gloabl['perl.conf']{
source => "modules/mod_perl/itk_plus/${operatingsystem}/perl.conf"
source => "modules/mod_perl/itk_plus/${::operatingsystem}/perl.conf"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment