File tree Expand file tree Collapse file tree 8 files changed +38
-9
lines changed Expand file tree Collapse file tree 8 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 6060 "operatingsystem" : " RedHat" ,
6161 "operatingsystemrelease" : [
6262 " 7" ,
63- " 8"
63+ " 8" ,
64+ " 9"
6465 ]
6566 },
6667 {
7475 "operatingsystem" : " OracleLinux" ,
7576 "operatingsystemrelease" : [
7677 " 7" ,
77- " 8"
78+ " 8" ,
79+ " 9"
7880 ]
7981 },
8082 {
8890 "operatingsystem" : " CentOS" ,
8991 "operatingsystemrelease" : [
9092 " 7" ,
91- " 8"
93+ " 8" ,
94+ " 9"
9295 ]
9396 },
9497 {
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ class { 'postgresql::globals':
4949 supported_versions . each do |zabbix_version |
5050 # >= 5.2 server packages are not available for RHEL 7
5151 next if zabbix_version >= '5.2' && default [ :platform ] == 'el-7-x86_64'
52+ # < 6.0 server packages are not available for RHEL 9
53+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
5254
5355 context "deploys a zabbix #{ zabbix_version } server" do
5456 # Using puppet_apply as a helper
Original file line number Diff line number Diff line change 77 supported_versions . each do |zabbix_version |
88 # Application API was removed in Zabbix 5.4
99 next if zabbix_version >= '5.4'
10+ # < 6.0 server packages are not available for RHEL 9
11+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1012
1113 template = case zabbix_version
1214 when '5.0'
2224 class { 'apache':
2325 mpm_module => 'prefork',
2426 }
25- include apache::mod::php
27+ if $facts['os']['family'] != 'RedHat' {
28+ include apache::mod::php
29+ }
2630 class { 'postgresql::globals':
2731 locale => 'en_US.UTF-8',
2832 manage_package_repo => $facts['os']['release']['major'] != '8',
Original file line number Diff line number Diff line change 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+ # < 6.0 server packages are not available for RHEL 9
12+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1113
1214 context "create zabbix_host resources with zabbix version #{ zabbix_version } " do
1315 # This will deploy a running Zabbix setup (server, web, db) which we can
3133 class { 'apache':
3234 mpm_module => 'prefork',
3335 }
34- include apache::mod::php
36+ if $facts['os']['family'] != 'RedHat' {
37+ include apache::mod::php
38+ }
3539 class { 'postgresql::globals':
3640 locale => 'en_US.UTF-8',
3741 manage_package_repo => $facts['os']['release']['major'] != '8',
Original file line number Diff line number Diff line change 77 supported_versions . each do |zabbix_version |
88 # >= 5.2 server packages are not available for RHEL 7
99 next if zabbix_version >= '5.2' && default [ :platform ] == 'el-7-x86_64'
10+ # < 6.0 server packages are not available for RHEL 9
11+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1012
1113 context "create zabbix_hostgroup resources with zabbix version #{ zabbix_version } " do
1214 # This will deploy a running Zabbix setup (server, web, db) which we can
1517 class { 'apache':
1618 mpm_module => 'prefork',
1719 }
18- include apache::mod::php
20+ if $facts['os']['family'] != 'RedHat' {
21+ include apache::mod::php
22+ }
1923 class { 'postgresql::globals':
2024 locale => 'en_US.UTF-8',
2125 manage_package_repo => $facts['os']['release']['major'] != '8',
Original file line number Diff line number Diff line change 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+ # < 6.0 server packages are not available for RHEL 9
12+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1113
1214 context "create zabbix_proxy resources with zabbix version #{ zabbix_version } " do
1315 # This will deploy a running Zabbix setup (server, web, db) which we can
1618 class { 'apache':
1719 mpm_module => 'prefork',
1820 }
19- include apache::mod::php
21+ if $facts['os']['family'] != 'RedHat' {
22+ include apache::mod::php
23+ }
2024 class { 'postgresql::globals':
2125 locale => 'en_US.UTF-8',
2226 manage_package_repo => $facts['os']['release']['major'] != '8',
Original file line number Diff line number Diff line change 99 next if zabbix_version == '6.0'
1010 # >= 5.2 server packages are not available for RHEL 7
1111 next if zabbix_version >= '5.2' && default [ :platform ] == 'el-7-x86_64'
12+ # < 6.0 server packages are not available for RHEL 9
13+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1214
1315 context "create zabbix_template_host resources with zabbix version #{ zabbix_version } " do
1416 template = case zabbix_version
2426 class { 'apache':
2527 mpm_module => 'prefork',
2628 }
27- include apache::mod::php
29+ if $facts['os']['family'] != 'RedHat' {
30+ include apache::mod::php
31+ }
2832 class { 'postgresql::globals':
2933 locale => 'en_US.UTF-8',
3034 manage_package_repo => $facts['os']['release']['major'] != '8',
Original file line number Diff line number Diff line change 77 supported_versions . each do |zabbix_version |
88 # >= 5.2 server packages are not available for RHEL 7
99 next if zabbix_version >= '5.2' && default [ :platform ] == 'el-7-x86_64'
10+ # < 6.0 server packages are not available for RHEL 9
11+ next if zabbix_version < '6.0' && default [ :platform ] == 'el-9-x86_64'
1012
1113 context "create zabbix_template resources with zabbix version #{ zabbix_version } " do
1214 # This will deploy a running Zabbix setup (server, web, db) which we can
1517 class { 'apache':
1618 mpm_module => 'prefork',
1719 }
18- include apache::mod::php
20+ if $facts['os']['family'] != 'RedHat' {
21+ include apache::mod::php
22+ }
1923 class { 'postgresql::globals':
2024 locale => 'en_US.UTF-8',
2125 manage_package_repo => $facts['os']['release']['major'] != '8',
You can’t perform that action at this time.
0 commit comments