Skip to content

Commit 758ea52

Browse files
author
Björn Thoor
committed
chore: added smsdevices to zabbix::server block
1 parent 4983c88 commit 758ea52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifests/init.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@
274274
$database_tablespace = $zabbix::params::server_database_tablespace,
275275
Optional[Enum['required', 'verify_ca', 'verify_full']] $database_tlsconnect = $zabbix::params::server_database_tlsconnect,
276276
Optional[Stdlib::Absolutepath] $database_tlscafile = $zabbix::params::server_database_tlscafile,
277-
$smsdevices = $zabbix::params::server_smsdevices,
278277
$startpollers = $zabbix::params::server_startpollers,
279278
$startipmipollers = $zabbix::params::server_startipmipollers,
280279
Integer[0, 1000] $startodbcpollers = $zabbix::params::server_startodbcpollers,
@@ -306,6 +305,7 @@
306305
$cachesize = $zabbix::params::server_cachesize,
307306
$cacheupdatefrequency = $zabbix::params::server_cacheupdatefrequency,
308307
$startdbsyncers = $zabbix::params::server_startdbsyncers,
308+
Optional[String] $smsdevices = $zabbix::params::server_smsdevices,
309309
$historycachesize = $zabbix::params::server_historycachesize,
310310
Zabbix::Historyics $historyindexcachesize = $zabbix::params::server_historyindexcachesize,
311311
$trendcachesize = $zabbix::params::server_trendcachesize,
@@ -425,6 +425,7 @@
425425
database_port => $database_port,
426426
database_tlsconnect => $database_tlsconnect,
427427
database_tlscafile => $database_tlscafile,
428+
smsdevices => $smsdevices,
428429
startpollers => $startpollers,
429430
startipmipollers => $startipmipollers,
430431
startpollersunreachable => $startpollersunreachable,
@@ -438,7 +439,6 @@
438439
starttimers => $starttimers,
439440
javagateway => $javagateway,
440441
javagatewayport => $javagatewayport,
441-
smsdevices => $smsdevices,
442442
startjavapollers => $startjavapollers,
443443
startlldprocessors => $startlldprocessors,
444444
startvmwarecollectors => $startvmwarecollectors,

templates/zabbix_server.conf.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ LoadModulePath=<%= @loadmodulepath %>
962962
# Mandatory: no
963963
# Default:
964964
# SMSDevices=
965-
<% if @smsdevices %>SMSDevices=<%= @smsdevices %>
965+
<% if @smsdevices != '' %>SMSDevices=<%= @smsdevices -%><% end %>
966966
<% end %>
967967

968968
<% if @zabbix_version.to_f >= 5.4 %>

0 commit comments

Comments
 (0)