Skip to content

Support for Zabbix 7.2 - #981

Closed
Safranil wants to merge 1 commit into
voxpupuli:masterfrom
capsi-informatique:master
Closed

Safranil wants to merge 1 commit into
voxpupuli:masterfrom
capsi-informatique:master

Conversation

@Safranil

@Safranil Safranil commented Dec 14, 2024 •

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

Zabbix 7.2 was published some day ago and some structural change was made by Zabbix Team:

  • The repository base URL changed to https://repo.zabbix.com/zabbix/7.2/release/<os> ;
  • The PHP UI directory change to /usr/share/zabbix/ui ;
  • The SQL script directory change to /usr/share/zabbix/sql-scripts.

This Pull Request (PR) fixes the following issues

No issue was opened.

@Safranil
Safranil marked this pull request as draft December 14, 2024 23:08
@Safranil
Safranil force-pushed the master branch 2 times, most recently from f104712 to e5147c9 Compare December 14, 2024 23:36
@Safranil Safranil changed the title Repository URL change since Zabbix 7.2 Support fort Zabbix 7.2 Dec 14, 2024
@Safranil
Safranil force-pushed the master branch 2 times, most recently from 08a00e2 to 2496d29 Compare December 15, 2024 00:03
@Safranil
Safranil marked this pull request as ready for review December 15, 2024 00:30
@Valantin

Copy link
Copy Markdown
Contributor

Hi, actually the module test supports only LTS release of zabbix, due to the short release schedule of that standard one.
I suggest you to change the PR to add parameter to support 7.2 without add explicit check for it.

@Valantin Valantin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just use $database_schema_path?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as for mysql

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread manifests/repo.pp

$_repo_location = $repo_location ? {
undef => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/",
undef => versioncmp($zabbix_version, '7.2') ? {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can specify $repo_location

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread manifests/web.pp

# Is set to true, it will create the apache vhost.
if $manage_vhost {
$zabbix_ui_dir = versioncmp($zabbix_version, '7.2') ? {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set zabbix_ui_dir as a parameter with the default as /usr/share/zabbix

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test for standard release

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test for standard release

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread spec/classes/repo_spec.rb
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test for standard release

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove 7.2 because we only test LTS release

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

@bartjackbakker bartjackbakker left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread manifests/repo.pp

$_repo_location = $repo_location ? {
undef => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/",
undef => versioncmp($zabbix_version, '7.2') ? {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread manifests/web.pp

# Is set to true, it will create the apache vhost.
if $manage_vhost {
$zabbix_ui_dir = versioncmp($zabbix_version, '7.2') ? {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

Comment thread spec/classes/repo_spec.rb
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a good preparation for the LTS version 8.0.

@Heidistein

Copy link
Copy Markdown
Contributor

Hi.
Yes, I agree with @bartjackbakker . Allthough you dont want to support normal releases (fair enough, I guess), all these changes are comming to 8.0. The moment 8.0 will be released the 7.2 tests can be changes to 8.0. In my opinion.

And, yes, this is in my own interest, because I'd like 7.2 deployed. :)

@Safranil Safranil changed the title Support fort Zabbix 7.2 Support for Zabbix 7.2 Apr 22, 2025
@d1nuc0m

d1nuc0m commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

@Safranil @Valantin any news on this? Zabbix 7.4 is planned for Q2 2025 and 8.0 LTS for Q4 2025 and the paths changes (that also affect the vhost) seem to be the same

@Valantin

Valantin commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

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.

@d1nuc0m

d1nuc0m commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Zabbix 7.2 is EOL as of 2025/12/31, probably sticking to LTS only is better

@d1nuc0m d1nuc0m closed this Sep 10, 2026
@Safranil

Copy link
Copy Markdown
Contributor Author

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.

@d1nuc0m

d1nuc0m commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

@Safranil that would be good, as 8.0 is in prerelease and is an LTS, reopen and ping me when it's ready

@Safranil

Safranil commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor Author

@Safranil that would be good, as 8.0 is in prerelease and is an LTS, reopen and ping me when it's ready

@d1nuc0m I opened a new PR here: #1040.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants