Skip to content

Commit 3ff1d95

Browse files
fix: use known types (and what tests are using) in zabbix_server.conf.epp
1 parent a4ad064 commit 3ff1d95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/zabbix_server.conf.epp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
String[1] $database_host,
77
String[1] $database_name,
88
Variant[String[1], Sensitive[String[8]]] $database_password,
9-
Optional[String[1]] $database_port,
9+
Optional[Stdlib::Port::Unprivileged] $database_port,
1010
Optional[String[1]] $database_schema,
1111
Optional[String[1]] $database_socket,
1212
Optional[Stdlib::Absolutepath] $database_tlscafile,
@@ -32,7 +32,7 @@
3232
String[1] $loadmodulepath,
3333
Optional[Stdlib::Absolutepath] $logfile,
3434
String[1] $logfilesize,
35-
Integer $logslowqueries,
35+
Variant[Integer,String[1]] $logslowqueries,
3636
Enum['console', 'file', 'system'] $logtype,
3737
String[1] $maxhousekeeperdelete,
3838
String[1] $pidfile,
@@ -53,12 +53,12 @@
5353
String[1] $startipmipollers,
5454
String[1] $startjavapollers,
5555
Integer[1,100] $startlldprocessors,
56-
Integer $startpingers,
56+
Variant[Integer, String[1]] $startpingers,
5757
Variant[Integer, String[1]] $startpollers,
5858
Variant[Integer, String[1]] $startpollersunreachable,
5959
Integer[1, 1000] $startpreprocessors,
6060
Variant[Integer, String[1]] $startproxypollers,
61-
Optional[String[1]] $startreportwriters,
61+
Optional[Integer] $startreportwriters,
6262
Variant[Integer, String[1]] $startsnmptrapper,
6363
Variant[Integer, String[1]] $starttimers,
6464
Variant[Integer, String[1]] $starttrappers,
@@ -714,7 +714,7 @@ LoadModulePath=<%= $loadmodulepath %>
714714
<% if $tlscipherall { %>TLSCipherAll=<%= $tlscipherall %><% } -%>
715715
<% } -%>
716716

717-
<% if versioncmp($zabbix_version,'6.2') >= 0 { -%>
717+
<% if versioncmp($zabbix_version,'5.2') >= 0 { -%>
718718
### Option: VaultToken
719719
# Vault authentication token that should have been generated exclusively for Zabbix server with read only permission
720720
# to paths specified in Vault macros and read only permission to path specified in optional VaultDBPath

0 commit comments

Comments
 (0)