Repository navigation
Conversation
f104712 to
e5147c9
Compare
08a00e2 to
2496d29
Compare
|
Hi, actually the module test supports only LTS release of zabbix, due to the short release schedule of that standard one. |
Valantin
left a comment
There was a problem hiding this comment.
use the variable instead add new complexity for standar release every 6 month
|
|
||
| if ($database_schema_path == false) or ($database_schema_path == '') { | ||
| if versioncmp($zabbix_version, '6.0') >= 0 { | ||
| if versioncmp($zabbix_version, '7.2') >= 0 { |
There was a problem hiding this comment.
why not just use $database_schema_path?
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| if $database_schema_path != false and $database_schema_path != '' { | ||
| $schema_path = $database_schema_path | ||
| } elsif versioncmp($zabbix_version, '6.0') >= 0 { | ||
| } elsif versioncmp($zabbix_version, '7.2') >= 0 { |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| $_repo_location = $repo_location ? { | ||
| undef => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/", | ||
| undef => versioncmp($zabbix_version, '7.2') ? { |
There was a problem hiding this comment.
You can specify $repo_location
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| # Is set to true, it will create the apache vhost. | ||
| if $manage_vhost { | ||
| $zabbix_ui_dir = versioncmp($zabbix_version, '7.2') ? { |
There was a problem hiding this comment.
set zabbix_ui_dir as a parameter with the default as /usr/share/zabbix
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| supported_versions.each do |zabbix_version| | ||
| # path to sql files on Debian and RedHat | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') >= 0 | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '7.2') >= 0 |
There was a problem hiding this comment.
no test for standard release
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| supported_versions.each do |zabbix_version| | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') >= 0 | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '7.2') >= 0 |
There was a problem hiding this comment.
no test for standard release
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| it { is_expected.to contain_yumrepo('zabbix-nonsupported').with_gpgkey('https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-B5333005') } if facts[:os]['release']['major'].to_i < 9 | ||
| it { is_expected.to contain_yumrepo('zabbix-nonsupported').with_gpgkey('https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-08EFA7DD') } if facts[:os]['release']['major'].to_i >= 9 | ||
| end | ||
|
|
There was a problem hiding this comment.
no test for standard release
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| def supported_versions | ||
| supported_versions = %w[5.0 6.0 7.0] | ||
| supported_versions = %w[5.0 6.0 7.0 7.2] |
There was a problem hiding this comment.
remove 7.2 because we only test LTS release
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
bartjackbakker
left a comment
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| if ($database_schema_path == false) or ($database_schema_path == '') { | ||
| if versioncmp($zabbix_version, '6.0') >= 0 { | ||
| if versioncmp($zabbix_version, '7.2') >= 0 { |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| if $database_schema_path != false and $database_schema_path != '' { | ||
| $schema_path = $database_schema_path | ||
| } elsif versioncmp($zabbix_version, '6.0') >= 0 { | ||
| } elsif versioncmp($zabbix_version, '7.2') >= 0 { |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| $_repo_location = $repo_location ? { | ||
| undef => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/", | ||
| undef => versioncmp($zabbix_version, '7.2') ? { |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| # Is set to true, it will create the apache vhost. | ||
| if $manage_vhost { | ||
| $zabbix_ui_dir = versioncmp($zabbix_version, '7.2') ? { |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| supported_versions.each do |zabbix_version| | ||
| # path to sql files on Debian and RedHat | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') >= 0 | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '7.2') >= 0 |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| supported_versions.each do |zabbix_version| | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') >= 0 | ||
| path = if Puppet::Util::Package.versioncmp(zabbix_version, '7.2') >= 0 |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
| it { is_expected.to contain_yumrepo('zabbix-nonsupported').with_gpgkey('https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-B5333005') } if facts[:os]['release']['major'].to_i < 9 | ||
| it { is_expected.to contain_yumrepo('zabbix-nonsupported').with_gpgkey('https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-08EFA7DD') } if facts[:os]['release']['major'].to_i >= 9 | ||
| end | ||
|
|
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
|
||
| def supported_versions | ||
| supported_versions = %w[5.0 6.0 7.0] | ||
| supported_versions = %w[5.0 6.0 7.0 7.2] |
There was a problem hiding this comment.
This change is a good preparation for the LTS version 8.0.
|
Hi. And, yes, this is in my own interest, because I'd like 7.2 deployed. :) |
|
need to fix CI again, after that I try to recheck it, but I think we can't run acceptance for non lts release In spare time I try to refactor acceptance. |
|
Zabbix 7.2 is EOL as of 2025/12/31, probably sticking to LTS only is better |
Zabbix 7.4 and 8.0 (not yet released) follow the same repository pattern. I can rework this MR to support Zabbix 8.0 instead of Zabbix 7.2. |
|
@Safranil that would be good, as 8.0 is in prerelease and is an LTS, reopen and ping me when it's ready |
Pull Request (PR) description
Zabbix 7.2 was published some day ago and some structural change was made by Zabbix Team:
https://repo.zabbix.com/zabbix/7.2/release/<os>;/usr/share/zabbix/ui;/usr/share/zabbix/sql-scripts.This Pull Request (PR) fixes the following issues
No issue was opened.