Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nationellt superdatorcentrum
puppetmodules
apache
Commits
1a0dffdd
Commit
1a0dffdd
authored
11 years ago
by
Thomas Bellman
Browse files
Options
Downloads
Patches
Plain Diff
Add class apache::mod_perl for managing the mod_perl module.
parent
00148adb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/mod_perl.pp
+59
-0
59 additions, 0 deletions
manifests/mod_perl.pp
with
59 additions
and
0 deletions
manifests/mod_perl.pp
0 → 100644
+
59
−
0
View file @
1a0dffdd
import
"apache"
/*
*
Install
the
Apache
mod_perl
module
.
*/
class
apache::mod_perl
{
include
apache
$default_options
=
{
# Enable taint checking by default. Lots of Perl modules fail with
# this, though, so users may need to disable this.
'PerlSwitches'
=>
'-T'
,
}
package
{
'mod_perl'
:
ensure
=>
installed
,
# We want conf.d to be cleaned up from whatever mod_perl puts there
before
=>
File
[
$apache::configdir
];
}
apache::module::globalconfig
{
'perl'
:
loadmodule
=>
'perl_module modules/mod_perl.so'
,
directives
=>
[],
defaultoptions
=>
$default_options
,
options
=>
{
},
require
=>
Package
[
'mod_perl'
];
}
}
/*
*
As
apache::mod_perl
,
but
do
not
run
Perl
in
taint
mode
.
*/
class
apache::mod_perl::notaint
inherits
apache::mod_perl
{
Apache
::
Module
::
Globalconfig
[
'perl'
]
{
defaultoptions
=>
{
},
}
}
class
apache::mod_perl::absent
inherits
apache::mod_perl
{
# Remove the configuration referencing the module before the actual
# module, in case the machine reboots in the middle.
Package
[
'mod_perl'
]
{
ensure
=>
absent
,
before
=>
[],
}
Apache
::
Module
::
Globalconfig
[
'perl'
]
{
ensure
=>
absent
,
require
=>
[],
before
=>
Package
[
'mod_perl'
],
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment