Skip to content

Commit 1f78fee

Browse files
authored
Merge pull request #893 from voxpupuli/el9
add EL9 support
2 parents af49dd8 + aa55e43 commit 1f78fee

File tree

8 files changed

+38
-9
lines changed

8 files changed

+38
-9
lines changed

metadata.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"operatingsystem": "RedHat",
6161
"operatingsystemrelease": [
6262
"7",
63-
"8"
63+
"8",
64+
"9"
6465
]
6566
},
6667
{
@@ -74,7 +75,8 @@
7475
"operatingsystem": "OracleLinux",
7576
"operatingsystemrelease": [
7677
"7",
77-
"8"
78+
"8",
79+
"9"
7880
]
7981
},
8082
{
@@ -88,7 +90,8 @@
8890
"operatingsystem": "CentOS",
8991
"operatingsystemrelease": [
9092
"7",
91-
"8"
93+
"8",
94+
"9"
9295
]
9396
},
9497
{

spec/acceptance/server_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class { 'postgresql::globals':
4949
supported_versions.each do |zabbix_version|
5050
# >= 5.2 server packages are not available for RHEL 7
5151
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
52+
# < 6.0 server packages are not available for RHEL 9
53+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
5254

5355
context "deploys a zabbix #{zabbix_version} server" do
5456
# Using puppet_apply as a helper

spec/acceptance/zabbix_application_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
supported_versions.each do |zabbix_version|
88
# Application API was removed in Zabbix 5.4
99
next if zabbix_version >= '5.4'
10+
# < 6.0 server packages are not available for RHEL 9
11+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1012

1113
template = case zabbix_version
1214
when '5.0'
@@ -22,7 +24,9 @@
2224
class { 'apache':
2325
mpm_module => 'prefork',
2426
}
25-
include apache::mod::php
27+
if $facts['os']['family'] != 'RedHat' {
28+
include apache::mod::php
29+
}
2630
class { 'postgresql::globals':
2731
locale => 'en_US.UTF-8',
2832
manage_package_repo => $facts['os']['release']['major'] != '8',

spec/acceptance/zabbix_host_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
supported_versions.each do |zabbix_version|
99
# >= 5.2 server packages are not available for RHEL 7
1010
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
11+
# < 6.0 server packages are not available for RHEL 9
12+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1113

1214
context "create zabbix_host resources with zabbix version #{zabbix_version}" do
1315
# This will deploy a running Zabbix setup (server, web, db) which we can
@@ -31,7 +33,9 @@
3133
class { 'apache':
3234
mpm_module => 'prefork',
3335
}
34-
include apache::mod::php
36+
if $facts['os']['family'] != 'RedHat' {
37+
include apache::mod::php
38+
}
3539
class { 'postgresql::globals':
3640
locale => 'en_US.UTF-8',
3741
manage_package_repo => $facts['os']['release']['major'] != '8',

spec/acceptance/zabbix_hostgroup_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
supported_versions.each do |zabbix_version|
88
# >= 5.2 server packages are not available for RHEL 7
99
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
10+
# < 6.0 server packages are not available for RHEL 9
11+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1012

1113
context "create zabbix_hostgroup resources with zabbix version #{zabbix_version}" do
1214
# This will deploy a running Zabbix setup (server, web, db) which we can
@@ -15,7 +17,9 @@
1517
class { 'apache':
1618
mpm_module => 'prefork',
1719
}
18-
include apache::mod::php
20+
if $facts['os']['family'] != 'RedHat' {
21+
include apache::mod::php
22+
}
1923
class { 'postgresql::globals':
2024
locale => 'en_US.UTF-8',
2125
manage_package_repo => $facts['os']['release']['major'] != '8',

spec/acceptance/zabbix_proxy_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
supported_versions.each do |zabbix_version|
99
# >= 5.2 server packages are not available for RHEL 7
1010
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
11+
# < 6.0 server packages are not available for RHEL 9
12+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1113

1214
context "create zabbix_proxy resources with zabbix version #{zabbix_version}" do
1315
# This will deploy a running Zabbix setup (server, web, db) which we can
@@ -16,7 +18,9 @@
1618
class { 'apache':
1719
mpm_module => 'prefork',
1820
}
19-
include apache::mod::php
21+
if $facts['os']['family'] != 'RedHat' {
22+
include apache::mod::php
23+
}
2024
class { 'postgresql::globals':
2125
locale => 'en_US.UTF-8',
2226
manage_package_repo => $facts['os']['release']['major'] != '8',

spec/acceptance/zabbix_template_host_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
next if zabbix_version == '6.0'
1010
# >= 5.2 server packages are not available for RHEL 7
1111
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
12+
# < 6.0 server packages are not available for RHEL 9
13+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1214

1315
context "create zabbix_template_host resources with zabbix version #{zabbix_version}" do
1416
template = case zabbix_version
@@ -24,7 +26,9 @@
2426
class { 'apache':
2527
mpm_module => 'prefork',
2628
}
27-
include apache::mod::php
29+
if $facts['os']['family'] != 'RedHat' {
30+
include apache::mod::php
31+
}
2832
class { 'postgresql::globals':
2933
locale => 'en_US.UTF-8',
3034
manage_package_repo => $facts['os']['release']['major'] != '8',

spec/acceptance/zabbix_template_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
supported_versions.each do |zabbix_version|
88
# >= 5.2 server packages are not available for RHEL 7
99
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
10+
# < 6.0 server packages are not available for RHEL 9
11+
next if zabbix_version < '6.0' && default[:platform] == 'el-9-x86_64'
1012

1113
context "create zabbix_template resources with zabbix version #{zabbix_version}" do
1214
# This will deploy a running Zabbix setup (server, web, db) which we can
@@ -15,7 +17,9 @@
1517
class { 'apache':
1618
mpm_module => 'prefork',
1719
}
18-
include apache::mod::php
20+
if $facts['os']['family'] != 'RedHat' {
21+
include apache::mod::php
22+
}
1923
class { 'postgresql::globals':
2024
locale => 'en_US.UTF-8',
2125
manage_package_repo => $facts['os']['release']['major'] != '8',

0 commit comments

Comments
 (0)