Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Zabbix 5.2 and 5.4 which are EOL upstream #886

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Take a look at the [REFERENCE.md](https://github.com/voxpupuli/puppet-zabbix/blo

## Limitations

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)
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)
Please have a look into the metadata.json for all supported operating systems.

This module is supported on both the community and the Enterprise version of Puppet.
Expand Down
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ This will install and configure the zabbix-agent deamon

```puppet
class { 'zabbix::agent':
zabbix_version => '5.2',
zabbix_version => '6.0',
server => '192.168.1.1',
}
```
Expand Down Expand Up @@ -2336,7 +2336,7 @@ This will install and configure the zabbix-agent deamon

```puppet
class { 'zabbix::javagateway':
zabbix_version => '5.2',
zabbix_version => '6.0',
}
```

Expand Down
8 changes: 1 addition & 7 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
# agent_configfile_path)
# @example Basic installation:
# class { 'zabbix::agent':
# zabbix_version => '5.2',
# zabbix_version => '6.0',
# server => '192.168.1.1',
# }
#
Expand Down Expand Up @@ -221,12 +221,6 @@
String $service_type = $zabbix::params::service_type,
Boolean $manage_startup_script = $zabbix::params::manage_startup_script,
) inherits zabbix::params {
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
if versioncmp($zabbix_version, '5.2') == 0 {
fail('Zabbix 5.2 is not supported on Debian 11!')
}
}

# Find if listenip is set. If not, we can set to specific ip or
# to network name. If more than 1 interfaces are available, we
# can find the ipaddress of this specific interface if listenip
Expand Down
2 changes: 1 addition & 1 deletion manifests/javagateway.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# @param timeout Number of worker threads to start.
# @example
# class { 'zabbix::javagateway':
# zabbix_version => '5.2',
# zabbix_version => '6.0',
# }
# @author Werner Dijkerman [email protected]
class zabbix::javagateway (
Expand Down
6 changes: 0 additions & 6 deletions manifests/proxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,6 @@
fail('Archlinux is currently not supported for zabbix::proxy ')
}

if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
if versioncmp($zabbix_version, '5.2') == 0 {
fail('Zabbix 5.2 is not supported on Debian 11!')
}
}

# Find if listenip is set. If not, we can set to specific ip or
# to network name. If more than 1 interfaces are available, we
# can find the ipaddress of this specific interface if listenip
Expand Down
6 changes: 0 additions & 6 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@
}
}

if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
if versioncmp($zabbix_version, '5.2') == 0 {
fail('Zabbix 5.2 is not supported on Debian 11!')
}
}

# Only include the repo class if it has not yet been included
unless defined(Class['Zabbix::Repo']) {
class { 'zabbix::repo':
Expand Down
6 changes: 0 additions & 6 deletions manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@
}
}

if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') == 0 {
if versioncmp($zabbix_version, '5.2') == 0 {
fail('Zabbix 5.2 is not supported on Debian 11!')
}
}

# Only include the repo class if it has not yet been included
unless defined(Class['Zabbix::Repo']) {
class { 'zabbix::repo':
Expand Down
3 changes: 0 additions & 3 deletions spec/acceptance/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
require 'spec_helper_acceptance'

supported_versions.each do |version|
# No Zabbix 5.2 packages on Debian 11
next if version == '5.2' && default[:platform] == 'debian-11-amd64'

describe "zabbix::agent class with zabbix_version #{version}" do
it 'works idempotently with no errors' do
pp = <<-EOS
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/zabbix_application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@

describe 'zabbix_application type', unless: default[:platform] =~ %r{archlinux} do
supported_versions.each do |zabbix_version|
# 5.2 and 5.4 server packages are not available for RHEL 7
next if zabbix_version == '5.2' && default[:platform] == 'el-7-x86_64'
# Application API was removed in Zabbix 5.4
next if zabbix_version >= '5.4'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'
bastelfreak marked this conversation as resolved.
Show resolved Hide resolved

template = case zabbix_version
when '4.0'
Expand Down Expand Up @@ -54,23 +50,23 @@
}
EOS
# setup zabbix. Apache module isn't idempotent and requires a second run
it 'works with no error on the first apply' do

Check failure on line 53 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the first apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170004659.pp.3RQGIn Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies Info: Class[Zabbix::Web]: Unscheduling all events on Class[Zabbix::Web] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 65.48 seconds

Check failure on line 53 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 5.0 works with no error on the first apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170149259.pp.swI3pI Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies Info: Class[Zabbix::Web]: Unscheduling all events on Class[Zabbix::Web] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 48.76 seconds

Check failure on line 53 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the first apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165730496.pp.By9ceD Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-docroot]/Concat_fragment[localhost-docroot]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 50.03 seconds

Check failure on line 53 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type create zabbix_application resources with zabbix version 5.0 works with no error on the first apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165854177.pp.S78RtS Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-docroot]/Concat_fragment[localhost-docroot]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 38.61 seconds

Check failure on line 53 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Debian 10

zabbix_application type create zabbix_application resources with zabbix version 5.0 works with no error on the first apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165934343.pp.3w8iP3 Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies Info: Class[Zabbix::Web]: Unscheduling all events on Class[Zabbix::Web] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 39.50 seconds
# Cleanup old database
prepare_host

apply_manifest(pp1, catch_failures: true)
end

it 'works with no error on the second apply' do

Check failure on line 60 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the second apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170114934.pp.lKrT4H Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-apache-header]/Concat_fragment[localhost-apache-header]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-docroot]/Concat_fragment[localhost-docroot]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies �[mNotice: Applied catalog in 2.37 seconds

Check failure on line 60 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 5.0 works with no error on the second apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170242589.pp.XMmoZT Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-apache-header]/Concat_fragment[localhost-apache-header]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-docroot]/Concat_fragment[localhost-docroot]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies �[mNotice: Applied catalog in 1.59 seconds

Check failure on line 60 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the second apply Failure/Error: apply_manifest(pp1, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165824449.pp.dJwyue Last 10 lines of output were: Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-apache-header]/Concat_fragment[localhost-apache-header]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-docroot]/Concat_fragment[localhost-docroot]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-directories]/Concat_fragment[localhost-directories]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-logging]/Concat_fragment[localhost-logging]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-serversignature]/Concat_fragment[localhost-serversignature]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-access_log]/Concat_fragment[localhost-access_log]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-rewrite]/Concat_fragment[localhost-rewrite]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-custom_fragment]/Concat_fragment[localhost-custom_fragment]: Skipping because of failed dependencies Warning: /Stage[main]/Zabbix::Web/Apache::Vhost[localhost]/Concat::Fragment[localhost-file_footer]/Concat_fragment[localhost-file_footer]: Skipping because of failed dependencies �[mNotice: Applied catalog in 5.02 seconds
apply_manifest(pp1, catch_failures: true)
end

# configure the applications within zabbix
it 'works with no error on the third apply' do

Check failure on line 65 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the third apply Failure/Error: apply_manifest(pp2, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170121712.pp.Mol0iJ Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352484' Error: /Stage[main]/Main/Zabbix_application[TestApplication1]: Could not evaluate: Failed to open TCP connection to localhost:80 (Cannot assign requested address - connect(2) for "localhost" port 80) �[mNotice: Applied catalog in 0.04 seconds

Check failure on line 65 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 5.0 works with no error on the third apply Failure/Error: apply_manifest(pp2, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170248751.pp.kj4o6u Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352571' Error: /Stage[main]/Main/Zabbix_application[TestApplication1]: Could not evaluate: Failed to open TCP connection to localhost:80 (Cannot assign requested address - connect(2) for "localhost" port 80) �[mNotice: Applied catalog in 0.04 seconds

Check failure on line 65 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type create zabbix_application resources with zabbix version 4.0 works with no error on the third apply Failure/Error: apply_manifest(pp2, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165833220.pp.tQQdpr Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352315' Error: Could not find a suitable provider for zabbix_application �[mNotice: Applied catalog in 0.04 seconds
apply_manifest(pp2, catch_failures: true)
end

it 'works without changes on the fourth apply' do

Check failure on line 69 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 4.0 works without changes on the fourth apply Failure/Error: apply_manifest(pp2, catch_changes: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170124359.pp.gFIjyY Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352486' Error: /Stage[main]/Main/Zabbix_application[TestApplication1]: Could not evaluate: Failed to open TCP connection to localhost:80 (Cannot assign requested address - connect(2) for "localhost" port 80) �[mNotice: Applied catalog in 0.04 seconds

Check failure on line 69 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type create zabbix_application resources with zabbix version 5.0 works without changes on the fourth apply Failure/Error: apply_manifest(pp2, catch_changes: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_170251415.pp.WgalPU Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352573' Error: /Stage[main]/Main/Zabbix_application[TestApplication1]: Could not evaluate: Failed to open TCP connection to localhost:80 (Cannot assign requested address - connect(2) for "localhost" port 80) �[mNotice: Applied catalog in 0.04 seconds

Check failure on line 69 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type create zabbix_application resources with zabbix version 4.0 works without changes on the fourth apply Failure/Error: apply_manifest(pp2, catch_changes: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_165835465.pp.Jw5yNK Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet7.example.com in environment production in 0.02 seconds Info: Using environment 'production' Info: Applying configuration version '1696352317' Error: Could not find a suitable provider for zabbix_application �[mNotice: Applied catalog in 0.04 seconds
apply_manifest(pp2, catch_changes: true)
end
end
Expand All @@ -82,7 +78,7 @@
context 'TestApplication1' do
let(:template1) { result_templates.select { |t| t['host'] == template }.first }

it "is attached to #{template}" do

Check failure on line 81 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type TestApplication1 is attached to Template OS Linux Failure/Error: JSON.parse(result.stdout.chomp) JSON::ParserError: 809: unexpected token at ''

Check failure on line 81 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

zabbix_application type TestApplication1 is attached to Template OS Linux by Zabbix agent Failure/Error: JSON.parse(result.stdout.chomp) JSON::ParserError: 809: unexpected token at ''

Check failure on line 81 in spec/acceptance/zabbix_application_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

zabbix_application type TestApplication1 is attached to Template OS Linux Failure/Error: JSON.parse(result.stdout.chomp) JSON::ParserError: 809: unexpected token at ''
expect(template1['applications'].map { |a| a['name'] }).to include('TestApplication1')
end
end
Expand Down
4 changes: 0 additions & 4 deletions spec/acceptance/zabbix_host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
supported_versions.each do |zabbix_version|
# >= 5.2 server packages are not available for RHEL 7
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'

context "create zabbix_host resources with zabbix version #{zabbix_version}" do
# This will deploy a running Zabbix setup (server, web, db) which we can
Expand All @@ -29,8 +27,6 @@
['Template OS Linux SNMPv2']
when '5.0'
['Template OS Linux SNMP']
when '5.2', '5.4'
['Linux SNMP']
else
['Linux by SNMP']
end
Expand Down
2 changes: 0 additions & 2 deletions spec/acceptance/zabbix_hostgroup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
supported_versions.each do |zabbix_version|
# >= 5.2 server packages are not available for RHEL 7
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'

context "create zabbix_hostgroup resources with zabbix version #{zabbix_version}" do
# This will deploy a running Zabbix setup (server, web, db) which we can
Expand Down
2 changes: 0 additions & 2 deletions spec/acceptance/zabbix_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
supported_versions.each do |zabbix_version|
# >= 5.2 server packages are not available for RHEL 7
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'

context "create zabbix_proxy resources with zabbix version #{zabbix_version}" do
# This will deploy a running Zabbix setup (server, web, db) which we can
Expand Down
2 changes: 0 additions & 2 deletions spec/acceptance/zabbix_template_host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
next if zabbix_version == '6.0'
# >= 5.2 server packages are not available for RHEL 7
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'

context "create zabbix_template_host resources with zabbix version #{zabbix_version}" do
template = case zabbix_version
Expand Down
2 changes: 0 additions & 2 deletions spec/acceptance/zabbix_template_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
supported_versions.each do |zabbix_version|
# >= 5.2 server packages are not available for RHEL 7
next if zabbix_version >= '5.2' && default[:platform] == 'el-7-x86_64'
# No Zabbix 5.2 packages on Debian 11
next if zabbix_version == '5.2' && default[:platform] == 'debian-11-amd64'

context "create zabbix_template resources with zabbix version #{zabbix_version}" do
# This will deploy a running Zabbix setup (server, web, db) which we can
Expand Down
15 changes: 0 additions & 15 deletions spec/classes/proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -437,21 +437,6 @@
it { is_expected.to contain_file('/etc/zabbix/zabbix_proxy.conf').with_content %r{^LogFileSize=10$} }
end
end

describe 'with zabbix_version 5.2 and Vault parameters defined' do
let :params do
{
zabbix_version: '5.2',
vaultdbpath: 'secret/zabbix/database',
vaulttoken: 'FKTYPEGL156DK',
vaulturl: 'https://127.0.0.1:8200',
}
end

it { is_expected.to contain_file('/etc/zabbix/zabbix_proxy.conf').with_content %r{^VaultDBPath=secret/zabbix/database$} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_proxy.conf').with_content %r{^VaultToken=FKTYPEGL156DK$} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_proxy.conf').with_content %r{^VaultURL=https://127.0.0.1:8200$} }
end
end
end
end
Expand Down
31 changes: 0 additions & 31 deletions spec/classes/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,37 +392,6 @@
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^LogFileSize=10$} }
end
end

# Zabbix Server 5.2 is not supported on RedHat family and Debian 11
if facts[:osfamily] != 'RedHat' && facts[:os]['release']['major'] != '11'
describe 'with zabbix_version 5.2 and Vault parameters defined' do
let :params do
{
zabbix_version: '5.2',
vaultdbpath: 'secret/zabbix/database',
vaulttoken: 'FKTYPEGL156DK',
vaulturl: 'https://127.0.0.1:8200',
}
end

it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^VaultDBPath=secret/zabbix/database$} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^VaultToken=FKTYPEGL156DK$} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^VaultURL=https://127.0.0.1:8200$} }
end

describe 'with zabbix_version 5.4 and report parameters defined' do
let :params do
{
zabbix_version: '5.4',
startreportwriters: 1,
webserviceurl: 'http://localhost:10053/report',
}
end

it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartReportWriters=1} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^WebServiceURL=http://localhost:10053/report} }
end
end
end
end
end
2 changes: 0 additions & 2 deletions spec/classes/web_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
next if facts[:os]['name'] == 'windows'
next if facts[:os]['name'] == 'Archlinux'
next if facts[:os]['name'] == 'Gentoo'
# There are no zabbix 5.2 packages for Debian 11
next if facts[:os]['name'] == 'Debian' && facts[:os]['release']['major'] == '11' && zabbix_version == '5.2'

context "on #{os}" do
let :facts do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/acceptance/supported_versions.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

def supported_versions
%w[4.0 5.0 5.2 5.4 6.0]
%w[4.0 5.0 6.0]
end
Loading