Skip to content

Commit 848171f

Browse files
committed
drop support for Zabbix 5.2 and 5.4 which are EOL upstream
1 parent 42f1338 commit 848171f

18 files changed

+6
-97
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Take a look at the [REFERENCE.md](https://github.com/voxpupuli/puppet-zabbix/blo
427427

428428
## Limitations
429429

430-
This module supports Zabbix 4.0, 5.0, 5.2, 5.4 and 6.0. The upstream supported versions are documented [here](https://www.zabbix.com/de/life_cycle_and_release_policy)
430+
This module supports Zabbix 4.0, 5.0, and 6.0. The upstream supported versions are documented [here](https://www.zabbix.com/life_cycle_and_release_policy)
431431
Please have a look into the metadata.json for all supported operating systems.
432432

433433
This module is supported on both the community and the Enterprise version of Puppet.

REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ This will install and configure the zabbix-agent deamon
13171317

13181318
```puppet
13191319
class { 'zabbix::agent':
1320-
zabbix_version => '5.2',
1320+
zabbix_version => '6.0',
13211321
server => '192.168.1.1',
13221322
}
13231323
```
@@ -2336,7 +2336,7 @@ This will install and configure the zabbix-agent deamon
23362336

23372337
```puppet
23382338
class { 'zabbix::javagateway':
2339-
zabbix_version => '5.2',
2339+
zabbix_version => '6.0',
23402340
}
23412341
```
23422342

manifests/agent.pp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
# agent_configfile_path)
126126
# @example Basic installation:
127127
# class { 'zabbix::agent':
128-
# zabbix_version => '5.2',
128+
# zabbix_version => '6.0',
129129
# server => '192.168.1.1',
130130
# }
131131
#
@@ -221,12 +221,6 @@
221221
String $service_type = $zabbix::params::service_type,
222222
Boolean $manage_startup_script = $zabbix::params::manage_startup_script,
223223
) inherits zabbix::params {
224-
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
225-
if versioncmp($zabbix_version, '5.2') == 0 {
226-
fail('Zabbix 5.2 is not supported on Debian 11!')
227-
}
228-
}
229-
230224
# Find if listenip is set. If not, we can set to specific ip or
231225
# to network name. If more than 1 interfaces are available, we
232226
# can find the ipaddress of this specific interface if listenip

manifests/javagateway.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# @param timeout Number of worker threads to start.
1111
# @example
1212
# class { 'zabbix::javagateway':
13-
# zabbix_version => '5.2',
13+
# zabbix_version => '6.0',
1414
# }
1515
# @author Werner Dijkerman [email protected]
1616
class zabbix::javagateway (

manifests/proxy.pp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,6 @@
305305
fail('Archlinux is currently not supported for zabbix::proxy ')
306306
}
307307

308-
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
309-
if versioncmp($zabbix_version, '5.2') == 0 {
310-
fail('Zabbix 5.2 is not supported on Debian 11!')
311-
}
312-
}
313-
314308
# Find if listenip is set. If not, we can set to specific ip or
315309
# to network name. If more than 1 interfaces are available, we
316310
# can find the ipaddress of this specific interface if listenip

manifests/server.pp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,6 @@
281281
}
282282
}
283283

284-
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
285-
if versioncmp($zabbix_version, '5.2') == 0 {
286-
fail('Zabbix 5.2 is not supported on Debian 11!')
287-
}
288-
}
289-
290284
# Only include the repo class if it has not yet been included
291285
unless defined(Class['Zabbix::Repo']) {
292286
class { 'zabbix::repo':

manifests/web.pp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@
158158
}
159159
}
160160

161-
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
162-
if versioncmp($zabbix_version, '5.2') == 0 {
163-
fail('Zabbix 5.2 is not supported on Debian 11!')
164-
}
165-
}
166-
167161
# Only include the repo class if it has not yet been included
168162
unless defined(Class['Zabbix::Repo']) {
169163
class { 'zabbix::repo':

spec/acceptance/agent_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
require 'spec_helper_acceptance'
44

55
supported_versions.each do |version|
6-
# No Zabbix 5.2 packages on Debian 11
7-
next if version == '5.2' && default[:platform] == 'debian-11-amd64'
8-
96
describe "zabbix::agent class with zabbix_version #{version}" do
107
it 'works idempotently with no errors' do
118
pp = <<-EOS

spec/acceptance/zabbix_application_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55

66
describe 'zabbix_application type', unless: default[:platform] =~ %r{archlinux} do
77
supported_versions.each do |zabbix_version|
8-
# 5.2 and 5.4 server packages are not available for RHEL 7
9-
next if zabbix_version == '5.2' && default[:platform] == 'el-7-x86_64'
108
# Application API was removed in Zabbix 5.4
119
next if zabbix_version >= '5.4'
12-
# No Zabbix 5.2 packages on Debian 11
13-
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'
1410

1511
template = case zabbix_version
1612
when '4.0'

spec/acceptance/zabbix_host_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
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-
# No Zabbix 5.2 packages on Debian 11
12-
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'
1311

1412
context "create zabbix_host resources with zabbix version #{zabbix_version}" do
1513
# This will deploy a running Zabbix setup (server, web, db) which we can
@@ -29,8 +27,6 @@
2927
['Template OS Linux SNMPv2']
3028
when '5.0'
3129
['Template OS Linux SNMP']
32-
when '5.2', '5.4'
33-
['Linux SNMP']
3430
else
3531
['Linux by SNMP']
3632
end

0 commit comments

Comments
 (0)