Puppet Class: zabbix

Inherits:
zabbix::params
Defined in:
manifests/init.pp

Summary

This will install and configure the zabbix-server on a single host.

Overview

Examples:

Single host setup:

class { 'zabbix':
  zabbix_url => 'zabbix.dj-wasabi.nl',
}

This assumes that you want to use the postgresql database. If not and you want to supply your own database crendentials:

class { 'zabbix':
  zabbix_url        => 'zabbix.dj-wasabi.nl',
  database_type     => 'mysql',
  database_user     => 'zabbix',
  database_password => 'ThisIsVeryDifficult.nl',
}

Parameters:

  • zabbix_url (Any) (defaults to: '')

    Url on which zabbix needs to be available. Will create an vhost in apache. Only needed when manage_vhost is set to true. Example: zabbix.example.com

  • zabbix_version (Any) (defaults to: $zabbix::params::zabbix_version)

    This is the zabbix version.

  • zabbix_timezone (Any) (defaults to: $zabbix::params::zabbix_timezone)

    The current timezone for vhost configuration needed for the php timezone. Example: Europe/Amsterdam

  • zabbix_template_dir (Any) (defaults to: $zabbix::params::zabbix_template_dir)

    The directory where all templates are stored before uploading via API

  • zabbix_package_state (Any) (defaults to: $zabbix::params::zabbix_package_state)

    The state of the package that needs to be installed: present or latest.

  • zabbix_server (Any) (defaults to: $zabbix::params::zabbix_server)

    This is the FQDN for the host running zabbix-server. This parameter is used when database_type = mysql. Default: localhost

  • zabbix_server_ip (Any) (defaults to: $zabbix::params::zabbix_server_ip)

    This is the actual ip address of the host running zabbix-server This parameter is used when database_type = postgresql. Default: 127.0.0.1

  • zabbix_web (Any) (defaults to: $zabbix::params::zabbix_web)

    This is the hostname of the server which is running the zabbix-web package. This parameter is used when database_type = mysql. When single node: localhost

  • zabbix_web_ip (Any) (defaults to: $zabbix::params::zabbix_web_ip)

    This is the ip address of the server which is running the zabbix-web package. This parameter is used when database_type = postgresql. When single node: 127.0.0.1

  • database_type (Zabbix::Databases) (defaults to: $zabbix::params::database_type)

    Type of database. Can use the following 2 databases:

    • postgresql

    • mysql

  • database_path (Any) (defaults to: $zabbix::params::database_path)

    When database binaries are not found on the default path: /bin:/usr/bin:/usr/local/sbin:/usr/local/bin you can use this parameter to add the database_path to the above mentioned path.

  • manage_database (Any) (defaults to: $zabbix::params::manage_database)

    When true, it will configure the database and execute the sql scripts.

  • manage_repo (Any) (defaults to: $zabbix::params::manage_repo)

    When true (default) this module will manage the Zabbix repository.

  • manage_firewall (Any) (defaults to: $zabbix::params::manage_firewall)

    When true, it will create iptables rules.

  • manage_service (Any) (defaults to: $zabbix::params::manage_service)

    When true, it will ensure service running and enabled. When false, it does not care about service

  • manage_resources (Any) (defaults to: $zabbix::params::manage_resources)

    When true, it will export resources to something like puppetdb. When set to true, you’ll need to configure ‘storeconfigs’ to make this happen. Default is set to false, as not everyone has this enabled.

  • manage_vhost (Any) (defaults to: $zabbix::params::manage_vhost)

    When true, it will create an vhost for apache. The parameter zabbix_url has to be set.

  • default_vhost (Any) (defaults to: $zabbix::params::default_vhost)

    When true priority of 15 is passed to zabbix vhost which would end up with marking zabbix vhost as default one, when false priority is set to 25

  • apache_use_ssl (Any) (defaults to: $zabbix::params::apache_use_ssl)

    Will create an ssl vhost. Also nonssl vhost will be created for redirect nonssl to ssl vhost.

  • apache_ssl_cert (Any) (defaults to: $zabbix::params::apache_ssl_cert)

    The location of the ssl certificate file. You’ll need to make sure this file is present on the system, this module will not install this file.

  • apache_ssl_key (Any) (defaults to: $zabbix::params::apache_ssl_key)

    The location of the ssl key file. You’ll need to make sure this file is present on the system, this module will not install this file.

  • apache_ssl_cipher (Any) (defaults to: $zabbix::params::apache_ssl_cipher)

    The ssl cipher used. Cipher is used from this website: wiki.mozilla.org/Security/Server_Side_TLS

  • apache_ssl_chain (Any) (defaults to: $zabbix::params::apache_ssl_chain)

    The ssl chain file.

  • apache_listen_ip (Any) (defaults to: $zabbix::params::apache_listen_ip)

    The IP the apache service should listen on.

  • apache_listenport (Variant[Array[Stdlib::Port], Stdlib::Port]) (defaults to: $zabbix::params::apache_listenport)

    The port for the apache vhost.

  • apache_listenport_ssl (Variant[Array[Stdlib::Port], Stdlib::Port]) (defaults to: $zabbix::params::apache_listenport_ssl)

    The port for the apache SSL vhost.

  • apache_php_max_execution_time (Any) (defaults to: $zabbix::params::apache_php_max_execution_time)

    Max execution time for php. Default: 300

  • apache_php_memory_limit (Any) (defaults to: $zabbix::params::apache_php_memory_limit)

    PHP memory size limit. Default: 128M

  • apache_php_post_max_size (Any) (defaults to: $zabbix::params::apache_php_post_max_size)

    PHP maximum post size data. Default: 16M

  • apache_php_upload_max_filesize (Any) (defaults to: $zabbix::params::apache_php_upload_max_filesize)

    PHP maximum upload filesize. Default: 2M

  • apache_php_max_input_time (Any) (defaults to: $zabbix::params::apache_php_max_input_time)

    Max input time for php. Default: 300

  • apache_php_always_populate_raw_post_data (Any) (defaults to: $zabbix::params::apache_php_always_populate_raw_post_data)

    Default: -1

  • ldap_cacert (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::ldap_cacert)

    Set location of ca_cert used by LDAP authentication.

  • ldap_clientcert (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::ldap_clientcert)

    Set location of client cert used by LDAP authentication.

  • ldap_clientkey (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::ldap_clientkey)

    Set location of client key used by LDAP authentication.

  • ldap_reqcert (Optional[Enum['never', 'allow', 'try', 'demand', 'hard']]) (defaults to: $zabbix::params::ldap_reqcert)

    Specifies what checks to perform on a server certificate

  • zabbix_api_user (Any) (defaults to: $zabbix::params::server_api_user)

    Name of the user which the api should connect to. Default: Admin

  • zabbix_api_pass (Any) (defaults to: $zabbix::params::server_api_pass)

    Password of the user which connects to the api. Default: zabbix

  • zabbix_api_access (Optional[Array[Stdlib::Host,1]]) (defaults to: $zabbix::params::server_api_access)

    Which host has access to the api. Default: no restriction

  • listenport (Any) (defaults to: $zabbix::params::server_listenport)

    Listen port for the zabbix-server. Default: 10051

  • sourceip (Any) (defaults to: $zabbix::params::server_sourceip)

    Source ip address for outgoing connections.

  • logfile (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::server_logfile)

    Name of log file.

  • logfilesize (Any) (defaults to: $zabbix::params::server_logfilesize)

    Maximum size of log file in MB.

  • logtype (Enum['console', 'file', 'system']) (defaults to: $zabbix::params::server_logtype)

    Specifies where log messages are written to. (options: console, file, system)

  • debuglevel (Any) (defaults to: $zabbix::params::server_debuglevel)

    Specifies debug level.

  • pidfile (Any) (defaults to: $zabbix::params::server_pidfile)

    Name of pid file.

  • database_host (Any) (defaults to: $zabbix::params::server_database_host)

    Database host name.

  • database_name (Any) (defaults to: $zabbix::params::server_database_name)

    Database name.

  • database_schema (Any) (defaults to: $zabbix::params::server_database_schema)

    Schema name. used for ibm db2.

  • database_double_ieee754 (Boolean) (defaults to: $zabbix::params::server_database_double_ieee754)

    Enable extended range of float values for new installs of Zabbix >= 5.0 and after patching upgraded installs to 5.0 or greater. www.zabbix.com/documentation/5.0/manual/installation/upgrade_notes_500#enabling_extended_range_of_numeric_float_values

  • database_user (Any) (defaults to: $zabbix::params::server_database_user)

    Database user. ignored for sqlite.

  • database_password (Any) (defaults to: $zabbix::params::server_database_password)

    Database password. ignored for sqlite.

  • database_socket (Any) (defaults to: $zabbix::params::server_database_socket)

    Path to mysql socket.

  • database_port (Any) (defaults to: $zabbix::params::server_database_port)

    Database port when not using local socket. Ignored for sqlite.

  • database_charset (Any) (defaults to: $zabbix::params::server_database_charset)

    The default charset of the database.

  • database_collate (Any) (defaults to: $zabbix::params::server_database_collate)

    The default collation of the database.

  • database_tablespace (Any) (defaults to: $zabbix::params::server_database_tablespace)

    The tablespace the database will be created in. This setting only affects PostgreSQL databases.

  • database_tlsconnect (Optional[Enum['required', 'verify_ca', 'verify_full']]) (defaults to: $zabbix::params::server_database_tlsconnect)

    Available options:

    • required - connect using TLS

    • verify_ca - connect using TLS and verify certificate

    • verify_full - connect using TLS, verify certificate and verify that database identity specified by DBHost matches its certificate

  • database_tlscafile (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::server_database_tlscafile)

    Full pathname of a file containing the top-level CA(s) certificates for database certificate verification.

  • startpollers (Any) (defaults to: $zabbix::params::server_startpollers)

    Number of pre-forked instances of pollers.

  • startpreprocessors (Integer[1, 1000]) (defaults to: $zabbix::params::server_startpreprocessors)

    Number of pre-forked instances of preprocessing workers

  • startipmipollers (Any) (defaults to: $zabbix::params::server_startipmipollers)

    Number of pre-forked instances of ipmi pollers.

  • startodbcpollers (Integer[0, 1000]) (defaults to: $zabbix::params::server_startodbcpollers)

    Number of pre-forked instances of ODBC pollers.

  • startpollersunreachable (Any) (defaults to: $zabbix::params::server_startpollersunreachable)

    Number of pre-forked instances of pollers for unreachable hosts (including ipmi).

  • starttrappers (Any) (defaults to: $zabbix::params::server_starttrappers)

    Number of pre-forked instances of trappers.

  • startpingers (Any) (defaults to: $zabbix::params::server_startpingers)

    Number of pre-forked instances of icmp pingers.

  • startalerters (Integer[1, 100]) (defaults to: $zabbix::params::server_startalerters)

    Number of pre-forked instances of alerters.

  • startdiscoverers (Any) (defaults to: $zabbix::params::server_startdiscoverers)

    Number of pre-forked instances of discoverers.

  • startescalators (Integer[1, 100]) (defaults to: $zabbix::params::server_startescalators)

    Number of pre-forked instances of escalators.

  • starthttppollers (Any) (defaults to: $zabbix::params::server_starthttppollers)

    Number of pre-forked instances of http pollers.

  • starttimers (Any) (defaults to: $zabbix::params::server_starttimers)

    Number of pre-forked instances of timers.

  • javagateway (Any) (defaults to: $zabbix::params::server_javagateway)

    IP address (or hostname) of zabbix java gateway.

  • javagatewayport (Any) (defaults to: $zabbix::params::server_javagatewayport)

    Port that zabbix java gateway listens on.

  • startjavapollers (Any) (defaults to: $zabbix::params::server_startjavapollers)

    Number of pre-forked instances of java pollers.

  • startlldprocessors (Integer[1, 100]) (defaults to: $zabbix::params::server_startlldprocessors)

    Number of pre-forked instances of low-level discovery (LLD) workers.

  • startvmwarecollectors (Any) (defaults to: $zabbix::params::server_startvmwarecollectors)

    Number of pre-forked vmware collector instances.

  • vaultdbpath (Optional[String[1]]) (defaults to: $zabbix::params::server_vaultdbpath)

    Vault path from where credentials for database will be retrieved by keys ‘password’ and ‘username’.

  • vaulttoken (Optional[String[1]]) (defaults to: $zabbix::params::server_vaulttoken)

    Vault authentication token that should have been generated exclusively for Zabbix proxy with read-only permission to the path specified in the optional VaultDBPath configuration parameter.

  • vaulturl (Stdlib::HTTPSUrl) (defaults to: $zabbix::params::server_vaulturl)

    Vault server HTTP URL. System-wide CA certificates directory will be used if SSLCALocation is not specified.

  • vmwarefrequency (Any) (defaults to: $zabbix::params::server_vmwarefrequency)

    How often zabbix will connect to vmware service to obtain a new datan.

  • vmwarecachesize (Any) (defaults to: $zabbix::params::server_vmwarecachesize)

    Size of vmware cache, in bytes.

  • vmwaretimeout (Any) (defaults to: $zabbix::params::server_vmwaretimeout)

    The maximum number of seconds vmware collector will wait for a response from VMware service.

  • snmptrapperfile (Any) (defaults to: $zabbix::params::server_snmptrapperfile)

    Temporary file used for passing data from snmp trap daemon to the server.

  • startsnmptrapper (Any) (defaults to: $zabbix::params::server_startsnmptrapper)

    If 1, snmp trapper process is started.

  • listenip (Any) (defaults to: $zabbix::params::server_listenip)

    List of comma delimited ip addresses that the zabbix-server should listen on.

  • housekeepingfrequency (Any) (defaults to: $zabbix::params::server_housekeepingfrequency)

    How often zabbix will perform housekeeping procedure (in hours).

  • maxhousekeeperdelete (Any) (defaults to: $zabbix::params::server_maxhousekeeperdelete)

    the table “housekeeper” contains “tasks” for housekeeping procedure in the format: [housekeeperid], [tablename], [field], [value]. no more than ‘maxhousekeeperdelete’ rows (corresponding to [tablename], [field], [value]) will be deleted per one task in one housekeeping cycle. sqlite3 does not use this parameter, deletes all corresponding rows without a limit. if set to 0 then no limit is used at all. in this case you must know what you are doing!

  • cachesize (Any) (defaults to: $zabbix::params::server_cachesize)

    Size of configuration cache, in bytes.

  • cacheupdatefrequency (Any) (defaults to: $zabbix::params::server_cacheupdatefrequency)

    How often zabbix will perform update of configuration cache, in seconds.

  • startdbsyncers (Any) (defaults to: $zabbix::params::server_startdbsyncers)

    Number of pre-forked instances of db syncers.

  • historycachesize (Any) (defaults to: $zabbix::params::server_historycachesize)

    Size of history cache, in bytes.

  • historyindexcachesize (Zabbix::Historyics) (defaults to: $zabbix::params::server_historyindexcachesize)

    Size of history index cache, in bytes.

  • trendcachesize (Any) (defaults to: $zabbix::params::server_trendcachesize)

    Size of trend cache, in bytes.

  • valuecachesize (Any) (defaults to: $zabbix::params::server_valuecachesize)

    Size of history value cache, in bytes.

  • timeout (Any) (defaults to: $zabbix::params::server_timeout)

    Specifies how long we wait for agent, snmp device or external check (in seconds).

  • tlscafile (Any) (defaults to: $zabbix::params::server_tlscafile)

    Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification.

  • tlscertfile (Any) (defaults to: $zabbix::params::server_tlscertfile)

    Full pathname of a file containing the server certificate or certificate chain.

  • tlscrlfile (Any) (defaults to: $zabbix::params::server_tlscrlfile)

    Full pathname of a file containing revoked certificates.

  • tlskeyfile (Any) (defaults to: $zabbix::params::server_tlskeyfile)

    Full pathname of a file containing the server private key.

  • tlscipherall (Any) (defaults to: $zabbix::params::server_tlscipherall)

    GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.

  • tlscipherall13 (Any) (defaults to: $zabbix::params::server_tlscipherall13)

    Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.

  • tlsciphercert (Any) (defaults to: $zabbix::params::server_tlsciphercert)

    GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. Override the default ciphersuite selection criteria for certificate-based encryption.

  • tlsciphercert13 (Any) (defaults to: $zabbix::params::server_tlsciphercert13)

    Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. Override the default ciphersuite selection criteria for certificate-based encryption.

  • tlscipherpsk (Any) (defaults to: $zabbix::params::server_tlscipherpsk)

    GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. Override the default ciphersuite selection criteria for PSK-based encryption.

  • tlscipherpsk13 (Any) (defaults to: $zabbix::params::server_tlscipherpsk13)

    Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. Override the default ciphersuite selection criteria for PSK-based encryption.

  • trappertimeout (Any) (defaults to: $zabbix::params::server_trappertimeout)

    Specifies how many seconds trapper may spend processing new data.

  • unreachableperiod (Any) (defaults to: $zabbix::params::server_unreachableperiod)

    After how many seconds of unreachability treat a host as unavailable.

  • unavailabledelay (Any) (defaults to: $zabbix::params::server_unavailabledelay)

    How often host is checked for availability during the unavailability period, in seconds.

  • unreachabledelay (Any) (defaults to: $zabbix::params::server_unreachabledelay)

    How often host is checked for availability during the unreachability period, in seconds.

  • alertscriptspath (Any) (defaults to: $zabbix::params::server_alertscriptspath)

    Full path to location of custom alert scripts.

  • externalscripts (Any) (defaults to: $zabbix::params::server_externalscripts)

    Full path to location of external scripts.

  • fpinglocation (Any) (defaults to: $zabbix::params::server_fpinglocation)

    Location of fping.

  • fping6location (Any) (defaults to: $zabbix::params::server_fping6location)

    Location of fping6.

  • sshkeylocation (Any) (defaults to: $zabbix::params::server_sshkeylocation)

    Location of public and private keys for ssh checks and actions.

  • logslowqueries (Any) (defaults to: $zabbix::params::server_logslowqueries)

    How long a database query may take before being logged (in milliseconds).

  • tmpdir (Any) (defaults to: $zabbix::params::server_tmpdir)

    Temporary directory.

  • startproxypollers (Any) (defaults to: $zabbix::params::server_startproxypollers)

    Number of pre-forked instances of pollers for passive proxies.

  • proxyconfigfrequency (Any) (defaults to: $zabbix::params::server_proxyconfigfrequency)

    How often zabbix server sends configuration data to a zabbix proxy in seconds.

  • proxydatafrequency (Any) (defaults to: $zabbix::params::server_proxydatafrequency)

    How often zabbix server requests history data from a zabbix proxy in seconds.

  • allowroot (Any) (defaults to: $zabbix::params::server_allowroot)

    Allow the server to run as ‘root’.

  • include_dir (Any) (defaults to: $zabbix::params::server_include)

    You may include individual files or all files in a directory in the configuration file.

  • loadmodulepath (Any) (defaults to: $zabbix::params::server_loadmodulepath)

    Full path to location of server modules.

  • loadmodule (Any) (defaults to: $zabbix::params::server_loadmodule)

    Module to load at server startup.

  • socketdir (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::server_socketdir)

    IPC socket directory. Directory to store IPC sockets used by internal Zabbix services.

  • manage_selinux (Boolean) (defaults to: $zabbix::params::manage_selinux)

    Whether we should manage SELinux rules.

  • additional_service_params (String) (defaults to: $zabbix::params::additional_service_params)

    Additional parameters to pass to the service.

  • zabbix_user (Optional[String[1]]) (defaults to: $zabbix::params::server_zabbix_user)

    User the zabbix service will run as.

  • zabbix_server_name (Optional[String]) (defaults to: $zabbix::params::zabbix_server)

    The fqdn name of the host running the zabbix-server. When single node: localhost This can also be used to upave a different name such as “Zabbix DEV”

  • saml_sp_key (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::saml_sp_key)

    The location of the SAML Service Provider Key file.

  • saml_sp_cert (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::saml_sp_cert)

    The location of the SAML Service Provider Certificate.

  • saml_idp_cert (Optional[Stdlib::Absolutepath]) (defaults to: $zabbix::params::saml_idp_cert)

    The location of the SAML Identity Provider Certificate.

  • saml_settings (Hash[String[1], Variant[ScalarData, Hash]]) (defaults to: $zabbix::params::saml_settings)

    A hash of additional SAML SSO settings.

Author:

  • Werner Dijkerman ikben@werner-dijkerman.nl



216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'manifests/init.pp', line 216

class zabbix (
  $zabbix_url                                                                 = '',
  $zabbix_version                                                             = $zabbix::params::zabbix_version,
  $zabbix_package_state                                                       = $zabbix::params::zabbix_package_state,
  $zabbix_timezone                                                            = $zabbix::params::zabbix_timezone,
  $zabbix_web                                                                 = $zabbix::params::zabbix_web,
  $zabbix_server                                                              = $zabbix::params::zabbix_server,
  $zabbix_server_ip                                                           = $zabbix::params::zabbix_server_ip,
  $zabbix_template_dir                                                        = $zabbix::params::zabbix_template_dir,
  $zabbix_web_ip                                                              = $zabbix::params::zabbix_web_ip,
  Zabbix::Databases $database_type                                            = $zabbix::params::database_type,
  $database_path                                                              = $zabbix::params::database_path,
  $manage_database                                                            = $zabbix::params::manage_database,
  $default_vhost                                                              = $zabbix::params::default_vhost,
  $manage_vhost                                                               = $zabbix::params::manage_vhost,
  $manage_firewall                                                            = $zabbix::params::manage_firewall,
  $manage_repo                                                                = $zabbix::params::manage_repo,
  $manage_resources                                                           = $zabbix::params::manage_resources,
  $manage_service                                                             = $zabbix::params::manage_service,
  $apache_use_ssl                                                             = $zabbix::params::apache_use_ssl,
  $apache_ssl_cert                                                            = $zabbix::params::apache_ssl_cert,
  $apache_ssl_key                                                             = $zabbix::params::apache_ssl_key,
  $apache_ssl_cipher                                                          = $zabbix::params::apache_ssl_cipher,
  $apache_ssl_chain                                                           = $zabbix::params::apache_ssl_chain,
  $apache_listen_ip                                                           = $zabbix::params::apache_listen_ip,
  Variant[Array[Stdlib::Port], Stdlib::Port] $apache_listenport               = $zabbix::params::apache_listenport,
  Variant[Array[Stdlib::Port], Stdlib::Port] $apache_listenport_ssl           = $zabbix::params::apache_listenport_ssl,
  $apache_php_max_execution_time                                              = $zabbix::params::apache_php_max_execution_time,
  $apache_php_memory_limit                                                    = $zabbix::params::apache_php_memory_limit,
  $apache_php_post_max_size                                                   = $zabbix::params::apache_php_post_max_size,
  $apache_php_upload_max_filesize                                             = $zabbix::params::apache_php_upload_max_filesize,
  $apache_php_max_input_time                                                  = $zabbix::params::apache_php_max_input_time,
  $apache_php_always_populate_raw_post_data                                   = $zabbix::params::apache_php_always_populate_raw_post_data,
  Optional[Stdlib::Absolutepath] $ldap_cacert                                 = $zabbix::params::ldap_cacert,
  Optional[Stdlib::Absolutepath] $ldap_clientcert                             = $zabbix::params::ldap_clientcert,
  Optional[Stdlib::Absolutepath] $ldap_clientkey                              = $zabbix::params::ldap_clientkey,
  Optional[Enum['never', 'allow', 'try', 'demand', 'hard']] $ldap_reqcert     = $zabbix::params::ldap_reqcert,
  $zabbix_api_user                                                            = $zabbix::params::server_api_user,
  $zabbix_api_pass                                                            = $zabbix::params::server_api_pass,
  Optional[Array[Stdlib::Host,1]] $zabbix_api_access                          = $zabbix::params::server_api_access,
  $listenport                                                                 = $zabbix::params::server_listenport,
  $sourceip                                                                   = $zabbix::params::server_sourceip,
  Enum['console', 'file', 'system'] $logtype                                  = $zabbix::params::server_logtype,
  Optional[Stdlib::Absolutepath] $logfile                                     = $zabbix::params::server_logfile,
  $logfilesize                                                                = $zabbix::params::server_logfilesize,
  $debuglevel                                                                 = $zabbix::params::server_debuglevel,
  $pidfile                                                                    = $zabbix::params::server_pidfile,
  $database_host                                                              = $zabbix::params::server_database_host,
  $database_name                                                              = $zabbix::params::server_database_name,
  $database_schema                                                            = $zabbix::params::server_database_schema,
  Boolean $database_double_ieee754                                            = $zabbix::params::server_database_double_ieee754,
  $database_user                                                              = $zabbix::params::server_database_user,
  $database_password                                                          = $zabbix::params::server_database_password,
  $database_socket                                                            = $zabbix::params::server_database_socket,
  $database_port                                                              = $zabbix::params::server_database_port,
  $database_charset                                                           = $zabbix::params::server_database_charset,
  $database_collate                                                           = $zabbix::params::server_database_collate,
  $database_tablespace                                                        = $zabbix::params::server_database_tablespace,
  Optional[Enum['required', 'verify_ca', 'verify_full']] $database_tlsconnect = $zabbix::params::server_database_tlsconnect,
  Optional[Stdlib::Absolutepath] $database_tlscafile                          = $zabbix::params::server_database_tlscafile,
  $startpollers                                                               = $zabbix::params::server_startpollers,
  $startipmipollers                                                           = $zabbix::params::server_startipmipollers,
  Integer[0, 1000] $startodbcpollers                                          = $zabbix::params::server_startodbcpollers,
  $startpollersunreachable                                                    = $zabbix::params::server_startpollersunreachable,
  Integer[1, 1000] $startpreprocessors                                        = $zabbix::params::server_startpreprocessors,
  $starttrappers                                                              = $zabbix::params::server_starttrappers,
  $startpingers                                                               = $zabbix::params::server_startpingers,
  Integer[1, 100] $startalerters                                              = $zabbix::params::server_startalerters,
  $startdiscoverers                                                           = $zabbix::params::server_startdiscoverers,
  Integer[1, 100] $startescalators                                            = $zabbix::params::server_startescalators,
  $starthttppollers                                                           = $zabbix::params::server_starthttppollers,
  $starttimers                                                                = $zabbix::params::server_starttimers,
  $javagateway                                                                = $zabbix::params::server_javagateway,
  $javagatewayport                                                            = $zabbix::params::server_javagatewayport,
  $startjavapollers                                                           = $zabbix::params::server_startjavapollers,
  Integer[1, 100] $startlldprocessors                                         = $zabbix::params::server_startlldprocessors,
  $startvmwarecollectors                                                      = $zabbix::params::server_startvmwarecollectors,
  Optional[String[1]] $vaultdbpath                                            = $zabbix::params::server_vaultdbpath,
  Optional[String[1]] $vaulttoken                                             = $zabbix::params::server_vaulttoken,
  Stdlib::HTTPSUrl $vaulturl                                                  = $zabbix::params::server_vaulturl,
  $vmwarefrequency                                                            = $zabbix::params::server_vmwarefrequency,
  $vmwarecachesize                                                            = $zabbix::params::server_vmwarecachesize,
  $vmwaretimeout                                                              = $zabbix::params::server_vmwaretimeout,
  $snmptrapperfile                                                            = $zabbix::params::server_snmptrapperfile,
  $startsnmptrapper                                                           = $zabbix::params::server_startsnmptrapper,
  $listenip                                                                   = $zabbix::params::server_listenip,
  $housekeepingfrequency                                                      = $zabbix::params::server_housekeepingfrequency,
  $maxhousekeeperdelete                                                       = $zabbix::params::server_maxhousekeeperdelete,
  $cachesize                                                                  = $zabbix::params::server_cachesize,
  $cacheupdatefrequency                                                       = $zabbix::params::server_cacheupdatefrequency,
  $startdbsyncers                                                             = $zabbix::params::server_startdbsyncers,
  $historycachesize                                                           = $zabbix::params::server_historycachesize,
  Zabbix::Historyics $historyindexcachesize                                   = $zabbix::params::server_historyindexcachesize,
  $trendcachesize                                                             = $zabbix::params::server_trendcachesize,
  $valuecachesize                                                             = $zabbix::params::server_valuecachesize,
  $timeout                                                                    = $zabbix::params::server_timeout,
  $tlscafile                                                                  = $zabbix::params::server_tlscafile,
  $tlscertfile                                                                = $zabbix::params::server_tlscertfile,
  $tlscrlfile                                                                 = $zabbix::params::server_tlscrlfile,
  $tlskeyfile                                                                 = $zabbix::params::server_tlskeyfile,
  $tlscipherall                                                               = $zabbix::params::server_tlscipherall,
  $tlscipherall13                                                             = $zabbix::params::server_tlscipherall13,
  $tlsciphercert                                                              = $zabbix::params::server_tlsciphercert,
  $tlsciphercert13                                                            = $zabbix::params::server_tlsciphercert13,
  $tlscipherpsk                                                               = $zabbix::params::server_tlscipherpsk,
  $tlscipherpsk13                                                             = $zabbix::params::server_tlscipherpsk13,
  $trappertimeout                                                             = $zabbix::params::server_trappertimeout,
  $unreachableperiod                                                          = $zabbix::params::server_unreachableperiod,
  $unavailabledelay                                                           = $zabbix::params::server_unavailabledelay,
  $unreachabledelay                                                           = $zabbix::params::server_unreachabledelay,
  $alertscriptspath                                                           = $zabbix::params::server_alertscriptspath,
  $externalscripts                                                            = $zabbix::params::server_externalscripts,
  $fpinglocation                                                              = $zabbix::params::server_fpinglocation,
  $fping6location                                                             = $zabbix::params::server_fping6location,
  $sshkeylocation                                                             = $zabbix::params::server_sshkeylocation,
  $logslowqueries                                                             = $zabbix::params::server_logslowqueries,
  $tmpdir                                                                     = $zabbix::params::server_tmpdir,
  $startproxypollers                                                          = $zabbix::params::server_startproxypollers,
  $proxyconfigfrequency                                                       = $zabbix::params::server_proxyconfigfrequency,
  $proxydatafrequency                                                         = $zabbix::params::server_proxydatafrequency,
  $allowroot                                                                  = $zabbix::params::server_allowroot,
  $include_dir                                                                = $zabbix::params::server_include,
  $loadmodulepath                                                             = $zabbix::params::server_loadmodulepath,
  $loadmodule                                                                 = $zabbix::params::server_loadmodule,
  Optional[Stdlib::Absolutepath] $socketdir                                   = $zabbix::params::server_socketdir,
  Boolean $manage_selinux                                                     = $zabbix::params::manage_selinux,
  String $additional_service_params                                           = $zabbix::params::additional_service_params,
  Optional[String[1]] $zabbix_user                                            = $zabbix::params::server_zabbix_user,
  Optional[String] $zabbix_server_name                                        = $zabbix::params::zabbix_server,
  Optional[Stdlib::Absolutepath] $saml_sp_key                                 = $zabbix::params::saml_sp_key,
  Optional[Stdlib::Absolutepath] $saml_sp_cert                                = $zabbix::params::saml_sp_cert,
  Optional[Stdlib::Absolutepath] $saml_idp_cert                               = $zabbix::params::saml_idp_cert,
  Hash[String[1], Variant[ScalarData, Hash]] $saml_settings                   = $zabbix::params::saml_settings,
) inherits zabbix::params {
  class { 'zabbix::web':
    zabbix_url                               => $zabbix_url,
    database_type                            => $database_type,
    manage_repo                              => $manage_repo,
    zabbix_version                           => $zabbix_version,
    zabbix_package_state                     => $zabbix_package_state,
    zabbix_timezone                          => $zabbix_timezone,
    zabbix_template_dir                      => $zabbix_template_dir,
    default_vhost                            => $default_vhost,
    manage_vhost                             => $manage_vhost,
    manage_resources                         => $manage_resources,
    apache_use_ssl                           => $apache_use_ssl,
    apache_ssl_cert                          => $apache_ssl_cert,
    apache_ssl_key                           => $apache_ssl_key,
    apache_ssl_cipher                        => $apache_ssl_cipher,
    apache_ssl_chain                         => $apache_ssl_chain,
    apache_listen_ip                         => $apache_listen_ip,
    apache_listenport                        => $apache_listenport,
    apache_listenport_ssl                    => $apache_listenport_ssl,
    zabbix_api_user                          => $zabbix_api_user,
    zabbix_api_pass                          => $zabbix_api_pass,
    zabbix_api_access                        => $zabbix_api_access,
    database_host                            => $database_host,
    database_name                            => $database_name,
    database_schema                          => $database_schema,
    database_double_ieee754                  => $database_double_ieee754,
    database_user                            => $database_user,
    database_password                        => $database_password,
    database_socket                          => $database_socket,
    database_port                            => $database_port,
    zabbix_server                            => $zabbix_server,
    zabbix_server_name                       => $zabbix_server_name,
    zabbix_listenport                        => $listenport,
    apache_php_max_execution_time            => $apache_php_max_execution_time,
    apache_php_memory_limit                  => $apache_php_memory_limit,
    apache_php_post_max_size                 => $apache_php_post_max_size,
    apache_php_upload_max_filesize           => $apache_php_upload_max_filesize,
    apache_php_max_input_time                => $apache_php_max_input_time,
    apache_php_always_populate_raw_post_data => $apache_php_always_populate_raw_post_data,
    ldap_cacert                              => $ldap_cacert,
    ldap_clientcert                          => $ldap_clientcert,
    ldap_clientkey                           => $ldap_clientkey,
    ldap_reqcert                             => $ldap_reqcert,
    saml_sp_key                              => $saml_sp_key,
    saml_sp_cert                             => $saml_sp_cert,
    saml_idp_cert                            => $saml_idp_cert,
    saml_settings                            => $saml_settings,
    manage_selinux                           => $manage_selinux,
    require                                  => Class['zabbix::server'],
  }

  class { 'zabbix::server':
    database_type             => $database_type,
    database_path             => $database_path,
    zabbix_version            => $zabbix_version,
    zabbix_package_state      => $zabbix_package_state,
    manage_firewall           => $manage_firewall,
    manage_repo               => $manage_repo,
    manage_database           => $manage_database,
    manage_service            => $manage_service,
    listenport                => $listenport,
    sourceip                  => $sourceip,
    logfile                   => $logfile,
    logfilesize               => $logfilesize,
    logtype                   => $logtype,
    debuglevel                => $debuglevel,
    pidfile                   => $pidfile,
    database_host             => $database_host,
    database_name             => $database_name,
    database_schema           => $database_schema,
    database_user             => $database_user,
    database_password         => $database_password,
    database_socket           => $database_socket,
    database_port             => $database_port,
    database_tlsconnect       => $database_tlsconnect,
    database_tlscafile        => $database_tlscafile,
    startpollers              => $startpollers,
    startipmipollers          => $startipmipollers,
    startpollersunreachable   => $startpollersunreachable,
    startpreprocessors        => $startpreprocessors,
    starttrappers             => $starttrappers,
    startpingers              => $startpingers,
    startalerters             => $startalerters,
    startdiscoverers          => $startdiscoverers,
    startescalators           => $startescalators,
    starthttppollers          => $starthttppollers,
    starttimers               => $starttimers,
    javagateway               => $javagateway,
    javagatewayport           => $javagatewayport,
    startjavapollers          => $startjavapollers,
    startlldprocessors        => $startlldprocessors,
    startvmwarecollectors     => $startvmwarecollectors,
    vaultdbpath               => $vaultdbpath,
    vaulttoken                => $vaulttoken,
    vaulturl                  => $vaulturl,
    vmwarefrequency           => $vmwarefrequency,
    vmwarecachesize           => $vmwarecachesize,
    vmwaretimeout             => $vmwaretimeout,
    snmptrapperfile           => $snmptrapperfile,
    startsnmptrapper          => $startsnmptrapper,
    listenip                  => $listenip,
    housekeepingfrequency     => $housekeepingfrequency,
    maxhousekeeperdelete      => $maxhousekeeperdelete,
    cachesize                 => $cachesize,
    cacheupdatefrequency      => $cacheupdatefrequency,
    startdbsyncers            => $startdbsyncers,
    historycachesize          => $historycachesize,
    trendcachesize            => $trendcachesize,
    historyindexcachesize     => $historyindexcachesize,
    valuecachesize            => $valuecachesize,
    timeout                   => $timeout,
    tlscafile                 => $tlscafile,
    tlscertfile               => $tlscertfile,
    tlscrlfile                => $tlscrlfile,
    tlskeyfile                => $tlskeyfile,
    tlscipherall              => $tlscipherall,
    tlscipherall13            => $tlscipherall13,
    tlsciphercert             => $tlsciphercert,
    tlsciphercert13           => $tlsciphercert13,
    tlscipherpsk              => $tlscipherpsk,
    tlscipherpsk13            => $tlscipherpsk13,
    trappertimeout            => $trappertimeout,
    unreachableperiod         => $unreachableperiod,
    unavailabledelay          => $unavailabledelay,
    unreachabledelay          => $unreachabledelay,
    alertscriptspath          => $alertscriptspath,
    externalscripts           => $externalscripts,
    fpinglocation             => $fpinglocation,
    fping6location            => $fping6location,
    sshkeylocation            => $sshkeylocation,
    logslowqueries            => $logslowqueries,
    tmpdir                    => $tmpdir,
    startproxypollers         => $startproxypollers,
    proxyconfigfrequency      => $proxyconfigfrequency,
    proxydatafrequency        => $proxydatafrequency,
    allowroot                 => $allowroot,
    include_dir               => $include_dir,
    loadmodulepath            => $loadmodulepath,
    loadmodule                => $loadmodule,
    manage_selinux            => $manage_selinux,
    additional_service_params => $additional_service_params,
    require                   => Class['zabbix::database'],
  }

  class { 'zabbix::database':
    zabbix_type         => 'server',
    zabbix_web          => $zabbix_web,
    zabbix_server       => $zabbix_server,
    zabbix_web_ip       => $zabbix_web_ip,
    zabbix_server_ip    => $zabbix_server_ip,
    manage_database     => $manage_database,
    database_type       => $database_type,
    database_name       => $database_name,
    database_user       => $database_user,
    database_password   => $database_password,
    database_host       => $database_host,
    database_charset    => $database_charset,
    database_collate    => $database_collate,
    database_tablespace => $database_tablespace,
  }
}