-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To not reveal Secrets, accept Datatype Sensitive. Render Templates as sensitive Content, if Secrets were given as Sensitive.
- Loading branch information
Showing
18 changed files
with
225 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,88 +147,93 @@ | |
# | ||
# @author Werner Dijkerman [email protected] | ||
class zabbix::agent ( | ||
$zabbix_version = $zabbix::params::zabbix_version, | ||
$zabbix_package_state = $zabbix::params::zabbix_package_state, | ||
$zabbix_package_agent = $zabbix::params::zabbix_package_agent, | ||
Optional[String[1]] $zabbix_package_provider = $zabbix::params::zabbix_package_provider, | ||
Optional[Stdlib::Windowspath] $zabbix_package_source = undef, | ||
Boolean $manage_choco = $zabbix::params::manage_choco, | ||
Boolean $manage_firewall = $zabbix::params::manage_firewall, | ||
Boolean $manage_repo = $zabbix::params::manage_repo, | ||
Boolean $manage_resources = $zabbix::params::manage_resources, | ||
$monitored_by_proxy = $zabbix::params::monitored_by_proxy, | ||
$agent_use_ip = $zabbix::params::agent_use_ip, | ||
Variant[String[1],Array[String[1]]] $zbx_groups = $zabbix::params::agent_zbx_groups, | ||
$zbx_group_create = $zabbix::params::agent_zbx_group_create, | ||
$zbx_templates = $zabbix::params::agent_zbx_templates, | ||
Array[Hash] $zbx_macros = [], | ||
Integer[1,4] $zbx_interface_type = 1, | ||
Variant[Array, Hash] $zbx_interface_details = [], | ||
$agent_configfile_path = $zabbix::params::agent_configfile_path, | ||
$pidfile = $zabbix::params::agent_pidfile, | ||
$servicename = $zabbix::params::agent_servicename, | ||
Enum['console', 'file', 'system'] $logtype = $zabbix::params::agent_logtype, | ||
Optional[Stdlib::Absolutepath] $logfile = $zabbix::params::agent_logfile, | ||
$logfilesize = $zabbix::params::agent_logfilesize, | ||
$debuglevel = $zabbix::params::agent_debuglevel, | ||
$sourceip = $zabbix::params::agent_sourceip, | ||
Optional[String[1]] $allowkey = $zabbix::params::agent_allowkey, | ||
Optional[String[1]] $denykey = $zabbix::params::agent_denykey, | ||
$enableremotecommands = $zabbix::params::agent_enableremotecommands, | ||
$logremotecommands = $zabbix::params::agent_logremotecommands, | ||
$server = $zabbix::params::agent_server, | ||
$listenport = $zabbix::params::agent_listenport, | ||
$listenip = $zabbix::params::agent_listenip, | ||
$startagents = $zabbix::params::agent_startagents, | ||
$serveractive = $zabbix::params::agent_serveractive, | ||
Stdlib::Ensure::Service $service_ensure = $zabbix::params::agent_service_ensure, | ||
Boolean $service_enable = $zabbix::params::agent_service_enable, | ||
$hostname = $zabbix::params::agent_hostname, | ||
$hostnameitem = $zabbix::params::agent_hostnameitem, | ||
$hostmetadata = $zabbix::params::agent_hostmetadata, | ||
$hostmetadataitem = $zabbix::params::agent_hostmetadataitem, | ||
Optional[Stdlib::Fqdn] $hostinterface = $zabbix::params::agent_hostinterface, | ||
Optional[Stdlib::Fqdn] $hostinterfaceitem = $zabbix::params::agent_hostinterfaceitem, | ||
$refreshactivechecks = $zabbix::params::agent_refreshactivechecks, | ||
$buffersend = $zabbix::params::agent_buffersend, | ||
$buffersize = $zabbix::params::agent_buffersize, | ||
$maxlinespersecond = $zabbix::params::agent_maxlinespersecond, | ||
Optional[Array] $zabbix_alias = $zabbix::params::agent_zabbix_alias, | ||
$timeout = $zabbix::params::agent_timeout, | ||
$allowroot = $zabbix::params::agent_allowroot, | ||
Optional[String[1]] $zabbix_user = $zabbix::params::agent_zabbix_user, | ||
$include_dir = $zabbix::params::agent_include, | ||
$include_dir_purge = $zabbix::params::agent_include_purge, | ||
$unsafeuserparameters = $zabbix::params::agent_unsafeuserparameters, | ||
$userparameter = $zabbix::params::agent_userparameter, | ||
Optional[String[1]] $loadmodulepath = $zabbix::params::agent_loadmodulepath, | ||
$loadmodule = $zabbix::params::agent_loadmodule, | ||
Optional[Variant[Array[Enum['unencrypted','psk','cert']],Enum['unencrypted','psk','cert']]] $tlsaccept = $zabbix::params::agent_tlsaccept, | ||
$tlscafile = $zabbix::params::agent_tlscafile, | ||
$tlscertfile = $zabbix::params::agent_tlscertfile, | ||
Optional[String[1]] $tlscertissuer = undef, | ||
Optional[String[1]] $tlscertsubject = undef, | ||
Optional[String[1]] $tlscipherall = $zabbix::params::agent_tlscipherall, | ||
Optional[String[1]] $tlscipherall13 = $zabbix::params::agent_tlscipherall13, | ||
Optional[String[1]] $tlsciphercert = $zabbix::params::agent_tlsciphercert, | ||
Optional[String[1]] $tlsciphercert13 = $zabbix::params::agent_tlsciphercert13, | ||
Optional[String[1]] $tlscipherpsk = $zabbix::params::agent_tlscipherpsk, | ||
Optional[String[1]] $tlscipherpsk13 = $zabbix::params::agent_tlscipherpsk13, | ||
$zabbix_version = $zabbix::params::zabbix_version, | ||
$zabbix_package_state = $zabbix::params::zabbix_package_state, | ||
$zabbix_package_agent = $zabbix::params::zabbix_package_agent, | ||
Optional[String[1]] $zabbix_package_provider = $zabbix::params::zabbix_package_provider, | ||
Optional[Stdlib::Windowspath] $zabbix_package_source = undef, | ||
Boolean $manage_choco = $zabbix::params::manage_choco, | ||
Boolean $manage_firewall = $zabbix::params::manage_firewall, | ||
Boolean $manage_repo = $zabbix::params::manage_repo, | ||
Boolean $manage_resources = $zabbix::params::manage_resources, | ||
$monitored_by_proxy = $zabbix::params::monitored_by_proxy, | ||
$agent_use_ip = $zabbix::params::agent_use_ip, | ||
Variant[String[1],Array[String[1]]] $zbx_groups = $zabbix::params::agent_zbx_groups, | ||
$zbx_group_create = $zabbix::params::agent_zbx_group_create, | ||
$zbx_templates = $zabbix::params::agent_zbx_templates, | ||
Array[Hash] $zbx_macros = [], | ||
Integer[1,4] $zbx_interface_type = 1, | ||
Variant[Array, Hash] $zbx_interface_details = [], | ||
$agent_configfile_path = $zabbix::params::agent_configfile_path, | ||
$pidfile = $zabbix::params::agent_pidfile, | ||
$servicename = $zabbix::params::agent_servicename, | ||
Enum['console', 'file', 'system'] $logtype = $zabbix::params::agent_logtype, | ||
Optional[Stdlib::Absolutepath] $logfile = $zabbix::params::agent_logfile, | ||
$logfilesize = $zabbix::params::agent_logfilesize, | ||
$debuglevel = $zabbix::params::agent_debuglevel, | ||
$sourceip = $zabbix::params::agent_sourceip, | ||
Optional[String[1]] $allowkey = $zabbix::params::agent_allowkey, | ||
Optional[String[1]] $denykey = $zabbix::params::agent_denykey, | ||
$enableremotecommands = $zabbix::params::agent_enableremotecommands, | ||
$logremotecommands = $zabbix::params::agent_logremotecommands, | ||
$server = $zabbix::params::agent_server, | ||
$listenport = $zabbix::params::agent_listenport, | ||
$listenip = $zabbix::params::agent_listenip, | ||
$startagents = $zabbix::params::agent_startagents, | ||
$serveractive = $zabbix::params::agent_serveractive, | ||
Stdlib::Ensure::Service $service_ensure = $zabbix::params::agent_service_ensure, | ||
Boolean $service_enable = $zabbix::params::agent_service_enable, | ||
$hostname = $zabbix::params::agent_hostname, | ||
$hostnameitem = $zabbix::params::agent_hostnameitem, | ||
$hostmetadata = $zabbix::params::agent_hostmetadata, | ||
$hostmetadataitem = $zabbix::params::agent_hostmetadataitem, | ||
Optional[Stdlib::Fqdn] $hostinterface = $zabbix::params::agent_hostinterface, | ||
Optional[Stdlib::Fqdn] $hostinterfaceitem = $zabbix::params::agent_hostinterfaceitem, | ||
$refreshactivechecks = $zabbix::params::agent_refreshactivechecks, | ||
$buffersend = $zabbix::params::agent_buffersend, | ||
$buffersize = $zabbix::params::agent_buffersize, | ||
$maxlinespersecond = $zabbix::params::agent_maxlinespersecond, | ||
Optional[Array] $zabbix_alias = $zabbix::params::agent_zabbix_alias, | ||
$timeout = $zabbix::params::agent_timeout, | ||
$allowroot = $zabbix::params::agent_allowroot, | ||
Optional[String[1]] $zabbix_user = $zabbix::params::agent_zabbix_user, | ||
$include_dir = $zabbix::params::agent_include, | ||
$include_dir_purge = $zabbix::params::agent_include_purge, | ||
$unsafeuserparameters = $zabbix::params::agent_unsafeuserparameters, | ||
$userparameter = $zabbix::params::agent_userparameter, | ||
Optional[String[1]] $loadmodulepath = $zabbix::params::agent_loadmodulepath, | ||
$loadmodule = $zabbix::params::agent_loadmodule, | ||
Optional[ | ||
Variant[ | ||
Array[Enum['unencrypted','psk','cert']], | ||
Enum['unencrypted','psk','cert'] | ||
] | ||
] $tlsaccept = $zabbix::params::agent_tlsaccept, | ||
$tlscafile = $zabbix::params::agent_tlscafile, | ||
$tlscertfile = $zabbix::params::agent_tlscertfile, | ||
Optional[String[1]] $tlscertissuer = undef, | ||
Optional[String[1]] $tlscertsubject = undef, | ||
Optional[String[1]] $tlscipherall = $zabbix::params::agent_tlscipherall, | ||
Optional[String[1]] $tlscipherall13 = $zabbix::params::agent_tlscipherall13, | ||
Optional[String[1]] $tlsciphercert = $zabbix::params::agent_tlsciphercert, | ||
Optional[String[1]] $tlsciphercert13 = $zabbix::params::agent_tlsciphercert13, | ||
Optional[String[1]] $tlscipherpsk = $zabbix::params::agent_tlscipherpsk, | ||
Optional[String[1]] $tlscipherpsk13 = $zabbix::params::agent_tlscipherpsk13, | ||
Optional[Enum['unencrypted','psk','cert']] $tlsconnect = $zabbix::params::agent_tlsconnect, | ||
$tlscrlfile = $zabbix::params::agent_tlscrlfile, | ||
$tlskeyfile = $zabbix::params::agent_tlskeyfile, | ||
$tlspskfile = $zabbix::params::agent_tlspskfile, | ||
$tlspskidentity = $zabbix::params::agent_tlspskidentity, | ||
$tlsservercertissuer = $zabbix::params::agent_tlsservercertissuer, | ||
$tlsservercertsubject = $zabbix::params::agent_tlsservercertsubject, | ||
Optional[String[1]] $agent_config_owner = $zabbix::params::agent_config_owner, | ||
Optional[String[1]] $agent_config_group = $zabbix::params::agent_config_group, | ||
Boolean $manage_selinux = $zabbix::params::manage_selinux, | ||
Array[String] $selinux_require = $zabbix::params::selinux_require, | ||
Hash[String, Array] $selinux_rules = $zabbix::params::selinux_rules, | ||
String $additional_service_params = $zabbix::params::additional_service_params, | ||
String $service_type = $zabbix::params::service_type, | ||
Boolean $manage_startup_script = $zabbix::params::manage_startup_script, | ||
$tlscrlfile = $zabbix::params::agent_tlscrlfile, | ||
$tlskeyfile = $zabbix::params::agent_tlskeyfile, | ||
$tlspskfile = $zabbix::params::agent_tlspskfile, | ||
$tlspskidentity = $zabbix::params::agent_tlspskidentity, | ||
$tlsservercertissuer = $zabbix::params::agent_tlsservercertissuer, | ||
$tlsservercertsubject = $zabbix::params::agent_tlsservercertsubject, | ||
Optional[String[1]] $agent_config_owner = $zabbix::params::agent_config_owner, | ||
Optional[String[1]] $agent_config_group = $zabbix::params::agent_config_group, | ||
Boolean $manage_selinux = $zabbix::params::manage_selinux, | ||
Array[String] $selinux_require = $zabbix::params::selinux_require, | ||
Hash[String, Array] $selinux_rules = $zabbix::params::selinux_rules, | ||
String $additional_service_params = $zabbix::params::additional_service_params, | ||
String $service_type = $zabbix::params::service_type, | ||
Boolean $manage_startup_script = $zabbix::params::manage_startup_script, | ||
) inherits zabbix::params { | ||
$agent2 = $zabbix_package_agent == 'zabbix-agent2' | ||
|
||
|
Oops, something went wrong.