Skip to content

Commit dfd4536

Browse files
committed
support lbmethod modules
1 parent c85bf70 commit dfd4536

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

manifests/mod/lbmethod_bybusyness.pp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @summary
2+
# Installs `lbmethod_bybusyness`.
3+
#
4+
# @param apache_version
5+
# Version of Apache to install module on.
6+
#
7+
# @see https://httpd.apache.org/docs/2.4/mod/mod_lbmethod_bybusyness.html for additional documentation.
8+
#
9+
class apache::mod::lbmethod_bybusyness (
10+
Optional[String] $apache_version = $apache::apache_version,
11+
) {
12+
require apache::mod::proxy_balancer
13+
14+
if versioncmp($apache_version, '2.3') >= 0 {
15+
apache::mod { 'lbmethod_bybusyness': }
16+
} else {
17+
fail('Unsuported version for mod lbmethod_bybusyness')
18+
}
19+
}

manifests/mod/lbmethod_byrequests.pp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @summary
2+
# Installs `lbmethod_byrequests`.
3+
#
4+
# @param apache_version
5+
# Version of Apache to install module on.
6+
#
7+
# @see https://httpd.apache.org/docs/2.4/mod/mod_lbmethod_byrequests.html for additional documentation.
8+
#
9+
class apache::mod::lbmethod_byrequests (
10+
Optional[String] $apache_version = $apache::apache_version,
11+
) {
12+
require apache::mod::proxy_balancer
13+
14+
if versioncmp($apache_version, '2.3') >= 0 {
15+
apache::mod { 'lbmethod_byrequests': }
16+
} else {
17+
fail('Unsuported version for mod lbmethod_byrequests')
18+
}
19+
}

manifests/mod/lbmethod_bytraffic.pp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @summary
2+
# Installs `lbmethod_bytraffic`.
3+
#
4+
# @param apache_version
5+
# Version of Apache to install module on.
6+
#
7+
# @see https://httpd.apache.org/docs/2.4/mod/mod_lbmethod_bytraffic.html for additional documentation.
8+
#
9+
class apache::mod::lbmethod_bytraffic (
10+
Optional[String] $apache_version = $apache::apache_version,
11+
) {
12+
require apache::mod::proxy_balancer
13+
14+
if versioncmp($apache_version, '2.3') >= 0 {
15+
apache::mod { 'lbmethod_bytraffic': }
16+
} else {
17+
fail('Unsuported version for mod lbmethod_bytraffic')
18+
}
19+
}

manifests/mod/lbmethod_heartbeat.pp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @summary
2+
# Installs `lbmethod_heartbeat`.
3+
#
4+
# @param apache_version
5+
# Version of Apache to install module on.
6+
#
7+
# @see https://httpd.apache.org/docs/2.4/mod/mod_lbmethod_heartbeat.html for additional documentation.
8+
#
9+
class apache::mod::lbmethod_heartbeat (
10+
Optional[String] $apache_version = $apache::apache_version,
11+
) {
12+
require apache::mod::proxy_balancer
13+
14+
if versioncmp($apache_version, '2.3') >= 0 {
15+
apache::mod { 'lbmethod_heartbeat': }
16+
} else {
17+
fail('Unsuported version for mod lbmethod_heartbeat')
18+
}
19+
}

0 commit comments

Comments
 (0)