ansible-role-zabbix-agent/defaults/main.yml

46 lines
2.1 KiB
YAML
Raw Permalink Normal View History

---
zabbix_agent_install: False
zabbix_use_external_repo: True
2021-12-03 13:28:35 +01:00
zabbix_repo_version: '5.2'
2021-12-23 16:10:10 +01:00
zabbix_agent_ubuntu_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/{{ ansible_distribution | lower }}/pool/main/z/zabbix-release/zabbix-release_{{ zabbix_repo_version }}-1+{{ ansible_distribution | lower }}{{ ansible_distribution_version }}_all.deb'
2021-12-03 13:29:55 +01:00
zabbix_agent_centos_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/rhel/{{ ansible_distribution_major_version }}/x86_64/zabbix-release-{{ zabbix_repo_version }}-1.el{{ ansible_distribution_major_version }}.noarch.rpm'
zabbix_agent_packages:
- 'zabbix-agent'
- 'zabbix-release'
zabbix_agent_conf_dir: /etc/zabbix
2020-04-19 18:43:03 +02:00
zabbix_agent_include_conf_dir: '{{ zabbix_agent_conf_dir }}/zabbix_agentd.d'
zabbix_agent_log_dir: '/var/log/zabbix'
zabbix_agent_tcp_port: 10050
zabbix_agent_debuglevel: 3
# IP used for the outgoing connections
zabbix_agent_source_ip: '{{ ansible_lo.ipv4.address }}'
zabbix_agent_enable_remotecommands: '0'
zabbix_agent_log_remotecommands: '{{ zabbix_agent_enable_remotecommands }}'
zabbix_agent_listen_ip: '{{ ansible_lo.ipv4.address }}'
# No need to set it to 0 to disable the passive checks, there is a variable to enable/disable the passive checks
zabbix_agent_start_agents: 3
# enable/disable the passive checks. Also used by the firewall roles.
zabbix_agent_passive_checks_status: 'disabled'
zabbix_agent_hostname: '{{ ansible_fqdn }}'
zabbix_agent_processing_timeout: 3
2023-02-26 18:49:55 +01:00
zabbix_host_metadata: "{{ ansible_system }}"
zabbix_agent_firewalld_services:
- { service: 'zabbix-agent', state: '{{ zabbix_agent_passive_checks_status }}', zone: '{{ firewalld_default_zone }}' }
# CIDR, separate by comma
# This is the list of servers that can submit passive checks
zabbix_server_allowed_hosts: '127.0.0.1'
# This is the list of servers to which the agent sends the active checks
zabbix_server_active_hosts: '{{ zabbix_server_allowed_hosts }}'
# Only PSK is supported for the time being
zabbix_authentication_method: 'psk'
# Define it in a vault file
# zabbix_psk_identity: ''
# zabbix_psk_string: ''
zabbix_agent_psk_file: '{{ zabbix_agent_conf_dir }}/zabbix_agentd.psk'