Skip to content

Commit 619e9c9

Browse files
committed
Properly require proxy mods
This ensures the proxy module is always loaded at the right time.
1 parent 9951bec commit 619e9c9

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

manifests/mod/proxy_ajp.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# @see https://httpd.apache.org/docs/current/mod/mod_proxy_ajp.html for additional documentation.
55
#
66
class apache::mod::proxy_ajp {
7-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_ajp']
7+
require apache::mod::proxy
88
::apache::mod { 'proxy_ajp': }
99
}

manifests/mod/proxy_balancer.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
Array $allow_from = ['127.0.0.1','::1'],
2222
Optional[String] $apache_version = $apache::apache_version,
2323
) {
24-
include apache::mod::proxy
25-
include apache::mod::proxy_http
24+
require apache::mod::proxy
25+
require apache::mod::proxy_http
2626
if versioncmp($apache_version, '2.4') >= 0 {
2727
::apache::mod { 'slotmem_shm': }
2828
}
2929

30-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_balancer']
31-
Class['apache::mod::proxy_http'] -> Class['apache::mod::proxy_balancer']
3230
::apache::mod { 'proxy_balancer': }
3331
if $manager {
3432
include apache::mod::status

manifests/mod/proxy_connect.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#
55
class apache::mod::proxy_connect {
66
include apache
7-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_connect']
7+
require apache::mod::proxy
88
apache::mod { 'proxy_connect': }
99
}

manifests/mod/proxy_fcgi.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# @see https://httpd.apache.org/docs/current/mod/mod_proxy_fcgi.html for additional documentation.
55
#
66
class apache::mod::proxy_fcgi {
7-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_fcgi']
7+
require apache::mod::proxy
88
::apache::mod { 'proxy_fcgi': }
99
}

manifests/mod/proxy_html.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
class apache::mod::proxy_html {
77
include apache
8-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_html']
9-
Class['apache::mod::proxy_http'] -> Class['apache::mod::proxy_html']
8+
require apache::mod::proxy
9+
require apache::mod::proxy_http
1010

1111
# Add libxml2
1212
case $facts['os']['family'] {

manifests/mod/proxy_http.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# @see https://httpd.apache.org/docs/current/mod/mod_proxy_http.html for additional documentation.
55
#
66
class apache::mod::proxy_http {
7-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_http']
7+
require apache::mod::proxy
88
::apache::mod { 'proxy_http': }
99
}

manifests/mod/proxy_wstunnel.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# @see https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html for additional documentation.
55
#
66
class apache::mod::proxy_wstunnel {
7-
include apache, apache::mod::proxy
8-
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_wstunnel']
7+
include apache
8+
require apache::mod::proxy
99
::apache::mod { 'proxy_wstunnel': }
1010
}

manifests/vhost.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,6 @@
24882488
# - $proxy_add_headers
24892489
# - $no_proxy_uris
24902490
if ($proxy_dest or $proxy_pass or $proxy_pass_match or $proxy_dest_match or $proxy_preserve_host) and $ensure == 'present' {
2491-
include apache::mod::proxy
24922491
include apache::mod::proxy_http
24932492

24942493
concat::fragment { "${name}-proxy":

0 commit comments

Comments
 (0)