database: Add 5.x version schema.
MODIFY
manifests/database/mysql.pp
manifests/database/mysql.pp
@@ -28,9 +28,9 @@ class zabbix::database::mysql (
assert_private()
#
- # Adjustments for version 3.0/4.0 - structure of package with sqls differs from previous versions
+ # Adjustments for version 3.x/4.x/5.x - structure of package with sqls differs from previous versions
case $zabbix_version {
- /^(3|4).\d+$/: {
+ /^(3|4|5).\d+$/: {
if ($database_schema_path == false) or ($database_schema_path == '') {
$schema_path = '/usr/share/doc/zabbix-*-mysql*'
}

MODIFY
manifests/database/postgresql.pp
manifests/database/postgresql.pp
@@ -28,9 +28,9 @@ class zabbix::database::postgresql (
assert_private()
#
- # Adjustments for version 3.0/4.0 - structure of package with sqls differs from previous versions
+ # Adjustments for version 3.x/4.x/5.x - structure of package with sqls differs from previous versions
case $zabbix_version {
- /^(3|4).\d+$/: {
+ /^(3|4|5).\d+$/: {
if ($database_schema_path == false) or ($database_schema_path == '') {
case $facts['os']['name'] {
'CentOS', 'RedHat', 'OracleLinux', 'VirtuozzoLinux': {

MODIFY
manifests/web.pp
manifests/web.pp
@@ -355,9 +355,7 @@ class zabbix::web (
require => Class['zabbix::repo'],
tag => 'zabbix',
}
-
} else {
-
package { "zabbix-web-${db}":
ensure => $zabbix_package_state,
before => Package[$zabbix_web_package],

MODIFY
spec/acceptance/agent_spec.rb
spec/acceptance/agent_spec.rb
@@ -6,7 +6,7 @@ def agent_supported(version)
true
end
-['2.4', '3.2', '3.4', '4.0', '4.2', '4.4'].each do |version|
+['2.4', '3.2', '3.4', '4.0', '4.2', '4.4', '5.0', '5.2'].each do |version|
describe "zabbix::agent class with zabbix_version #{version}", if: agent_supported(version) do
it 'works idempotently with no errors' do
pp = <<-EOS

MODIFY
spec/acceptance/zabbix_application_spec.rb
spec/acceptance/zabbix_application_spec.rb
@@ -26,7 +26,7 @@ describe 'zabbix_application type', unless: default[:platform] =~ %r{debian-10-a
-> class { 'postgresql::server': }
class { 'zabbix':
- zabbix_version => '4.4',
+ zabbix_version => '5.0',
zabbix_url => 'localhost',
zabbix_api_user => 'Admin',
zabbix_api_pass => 'zabbix',

database: Add 5.x version schema.