forked from puppetlabs/puppetlabs-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
131 changed files
with
2,515 additions
and
1,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--no-single_quote_string_with_variables-check | ||
--no-80chars-check | ||
--no-class_inherits_from_params_class-check | ||
--no-class_parameter_defaults-check | ||
--no-documentation-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,154 @@ | ||
class apache::default_mods ( | ||
$all = true, | ||
$mods = undef, | ||
$all = true, | ||
$mods = undef, | ||
$apache_version = $::apache::apache_version | ||
) { | ||
# These are modules required to run the default configuration. | ||
# They are not configurable at this time, so we just include | ||
# them to make sure it works. | ||
case $::osfamily { | ||
'redhat', 'freebsd': { | ||
apache::mod { 'log_config': } | ||
::apache::mod { 'log_config': } | ||
} | ||
default: {} | ||
} | ||
apache::mod { 'authz_host': } | ||
::apache::mod { 'authz_host': } | ||
|
||
# The rest of the modules only get loaded if we want all modules enabled | ||
if $all { | ||
case $::osfamily { | ||
'debian': { | ||
include apache::mod::reqtimeout | ||
include ::apache::mod::reqtimeout | ||
} | ||
'redhat': { | ||
include apache::mod::cache | ||
include apache::mod::mime | ||
include apache::mod::mime_magic | ||
include apache::mod::vhost_alias | ||
include apache::mod::rewrite | ||
apache::mod { 'actions': } | ||
apache::mod { 'auth_digest': } | ||
apache::mod { 'authn_alias': } | ||
apache::mod { 'authn_anon': } | ||
apache::mod { 'authn_dbm': } | ||
apache::mod { 'authn_default': } | ||
apache::mod { 'authz_dbm': } | ||
apache::mod { 'authz_owner': } | ||
apache::mod { 'expires': } | ||
apache::mod { 'ext_filter': } | ||
apache::mod { 'include': } | ||
apache::mod { 'logio': } | ||
apache::mod { 'speling': } | ||
apache::mod { 'substitute': } | ||
apache::mod { 'suexec': } | ||
apache::mod { 'usertrack': } | ||
apache::mod { 'version': } | ||
include ::apache::mod::cache | ||
include ::apache::mod::mime | ||
include ::apache::mod::mime_magic | ||
include ::apache::mod::vhost_alias | ||
include ::apache::mod::rewrite | ||
::apache::mod { 'actions': } | ||
::apache::mod { 'auth_digest': } | ||
::apache::mod { 'authn_anon': } | ||
::apache::mod { 'authn_dbm': } | ||
::apache::mod { 'authz_dbm': } | ||
::apache::mod { 'authz_owner': } | ||
::apache::mod { 'expires': } | ||
::apache::mod { 'ext_filter': } | ||
::apache::mod { 'include': } | ||
::apache::mod { 'logio': } | ||
::apache::mod { 'speling': } | ||
::apache::mod { 'substitute': } | ||
::apache::mod { 'suexec': } | ||
::apache::mod { 'usertrack': } | ||
::apache::mod { 'version': } | ||
|
||
if $apache_version >= 2.4 { | ||
# Lets fork it | ||
::apache::mod { 'systemd': } | ||
|
||
::apache::mod { 'unixd': } | ||
::apache::mod { 'authn_core': } | ||
} | ||
else { | ||
::apache::mod { 'authn_alias': } | ||
::apache::mod { 'authn_default': } | ||
} | ||
} | ||
'freebsd': { | ||
include apache::mod::cache | ||
include apache::mod::disk_cache | ||
include apache::mod::headers | ||
include apache::mod::info | ||
include apache::mod::mime_magic | ||
include apache::mod::reqtimeout | ||
include apache::mod::rewrite | ||
include apache::mod::userdir | ||
include apache::mod::vhost_alias | ||
include ::apache::mod::cache | ||
include ::apache::mod::disk_cache | ||
include ::apache::mod::headers | ||
include ::apache::mod::info | ||
include ::apache::mod::mime_magic | ||
include ::apache::mod::reqtimeout | ||
include ::apache::mod::rewrite | ||
include ::apache::mod::userdir | ||
include ::apache::mod::vhost_alias | ||
|
||
apache::mod { 'actions': } | ||
apache::mod { 'asis': } | ||
apache::mod { 'auth_digest': } | ||
apache::mod { 'authn_alias': } | ||
apache::mod { 'authn_anon': } | ||
apache::mod { 'authn_dbm': } | ||
apache::mod { 'authn_default': } | ||
apache::mod { 'authz_dbm': } | ||
apache::mod { 'authz_owner': } | ||
apache::mod { 'cern_meta': } | ||
apache::mod { 'charset_lite': } | ||
apache::mod { 'dumpio': } | ||
apache::mod { 'expires': } | ||
apache::mod { 'file_cache': } | ||
apache::mod { 'filter':} | ||
apache::mod { 'imagemap':} | ||
apache::mod { 'include': } | ||
apache::mod { 'logio': } | ||
apache::mod { 'speling': } | ||
apache::mod { 'unique_id': } | ||
apache::mod { 'usertrack': } | ||
apache::mod { 'version': } | ||
::apache::mod { 'actions': } | ||
::apache::mod { 'asis': } | ||
::apache::mod { 'auth_digest': } | ||
::apache::mod { 'authn_alias': } | ||
::apache::mod { 'authn_anon': } | ||
::apache::mod { 'authn_dbm': } | ||
::apache::mod { 'authn_default': } | ||
::apache::mod { 'authz_dbm': } | ||
::apache::mod { 'authz_owner': } | ||
::apache::mod { 'cern_meta': } | ||
::apache::mod { 'charset_lite': } | ||
::apache::mod { 'dumpio': } | ||
::apache::mod { 'expires': } | ||
::apache::mod { 'file_cache': } | ||
::apache::mod { 'filter':} | ||
::apache::mod { 'imagemap':} | ||
::apache::mod { 'include': } | ||
::apache::mod { 'logio': } | ||
::apache::mod { 'speling': } | ||
::apache::mod { 'unique_id': } | ||
::apache::mod { 'usertrack': } | ||
::apache::mod { 'version': } | ||
} | ||
default: {} | ||
} | ||
case $apache::mpm_module { | ||
case $::apache::mpm_module { | ||
'prefork': { | ||
include apache::mod::cgi | ||
include ::apache::mod::cgi | ||
} | ||
'worker': { | ||
include apache::mod::cgid | ||
include ::apache::mod::cgid | ||
} | ||
default: { | ||
# do nothing | ||
} | ||
} | ||
include apache::mod::alias | ||
include apache::mod::autoindex | ||
include apache::mod::dav | ||
include apache::mod::dav_fs | ||
include apache::mod::deflate | ||
include apache::mod::dir | ||
include apache::mod::mime | ||
include apache::mod::negotiation | ||
include apache::mod::setenvif | ||
apache::mod { 'auth_basic': } | ||
apache::mod { 'authn_file': } | ||
apache::mod { 'authz_default': } | ||
apache::mod { 'authz_groupfile': } | ||
apache::mod { 'authz_user': } | ||
apache::mod { 'env': } | ||
include ::apache::mod::alias | ||
include ::apache::mod::autoindex | ||
include ::apache::mod::dav | ||
include ::apache::mod::dav_fs | ||
include ::apache::mod::deflate | ||
include ::apache::mod::dir | ||
include ::apache::mod::mime | ||
include ::apache::mod::negotiation | ||
include ::apache::mod::setenvif | ||
::apache::mod { 'auth_basic': } | ||
::apache::mod { 'authn_file': } | ||
|
||
if $apache_version >= 2.4 { | ||
# authz_core is needed for 'Require' directive | ||
::apache::mod { 'authz_core': | ||
id => 'authz_core_module', | ||
} | ||
|
||
# filter is needed by mod_deflate | ||
::apache::mod { 'filter': } | ||
} else { | ||
::apache::mod { 'authz_default': } | ||
} | ||
|
||
::apache::mod { 'authz_groupfile': } | ||
::apache::mod { 'authz_user': } | ||
::apache::mod { 'env': } | ||
} elsif $mods { | ||
apache::default_mods::load { $mods: } | ||
::apache::default_mods::load { $mods: } | ||
|
||
if $apache_version >= 2.4 { | ||
# authz_core is needed for 'Require' directive | ||
::apache::mod { 'authz_core': | ||
id => 'authz_core_module', | ||
} | ||
|
||
# filter is needed by mod_deflate | ||
::apache::mod { 'filter': } | ||
} | ||
} else { | ||
if $apache_version >= 2.4 { | ||
# authz_core is needed for 'Require' directive | ||
::apache::mod { 'authz_core': | ||
id => 'authz_core_module', | ||
} | ||
|
||
# filter is needed by mod_deflate | ||
::apache::mod { 'filter': } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# private define | ||
define apache::default_mods::load ($module = $title) { | ||
if defined("apache::mod::${module}") { | ||
include "apache::mod::${module}" | ||
include "::apache::mod::${module}" | ||
} else { | ||
apache::mod { $module: } | ||
::apache::mod { $module: } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.