-
Notifications
You must be signed in to change notification settings - Fork 287
/
main.yml
98 lines (89 loc) · 3.16 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
# defaults file for zabbix-web
zabbix_web_version: 5.0
zabbix_version: "{{ zabbix_web_version }}"
zabbix_repo: zabbix
zabbix_web_package_state: present
zabbix_web_centos_release: true
zabbix_selinux: False
zabbix_web_doubleprecision: False
zabbix_url: zabbix.example.com
zabbix_websrv: apache
zabbix_websrv_servername: "{{ zabbix_url | regex_findall('(?:https?\\://)?([\\w\\-\\.]+)') | first }}"
zabbix_url_aliases: []
zabbix_apache_vhost_port: 80
zabbix_apache_vhost_tls_port: 443
zabbix_timezone: Europe/Amsterdam
zabbix_vhost: True
zabbix_php_fpm: False
zabbix_php_fpm_dir_etc: /etc/opt/rh/rh-php72/
zabbix_php_fpm_dir_var: /var/opt/rh/rh-php72/
zabbix_apache_vhost_listen_ip: "*"
zabbix_apache_tls: False
zabbix_apache_redirect: False
zabbix_apache_tls_crt: /etc/pki/server.crt
zabbix_apache_tls_key: /etc/pki/server.key
zabbix_apache_tls_chain:
zabbix_apache_can_connect_ldap: False
zabbix_repo_yum_schema: https
zabbix_repo_yum:
- name: zabbix
description: Zabbix Official Repository - $basearch
baseurl: "{{ zabbix_repo_yum_schema }}://repo.zabbix.com/zabbix/{{ zabbix_version }}/rhel/{{ ansible_distribution_major_version }}/$basearch/"
gpgcheck: 0
mode: '0644'
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
state: present
- name: zabbix-non-supported
description: Zabbix Official Repository non-supported - $basearch
baseurl: "{{ zabbix_repo_yum_schema }}://repo.zabbix.com/non-supported/rhel/{{ ansible_distribution_major_version }}/$basearch/"
mode: '0644'
gpgcheck: 0
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
state: present
zabbix_5_repo_yum:
- name: zabbix-frontend
description: Zabbix Official Repository - $basearch
baseurl: "{{ zabbix_repo_yum_schema }}://repo.zabbix.com/zabbix/{{ zabbix_version }}/rhel/{{ ansible_distribution_major_version }}/$basearch/frontend/"
mode: '0644'
gpgcheck: 0
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
state: present
zabbix_php_install: true
zabbix_web_max_execution_time: 300
zabbix_web_memory_limit: 128M
zabbix_web_post_max_size: 16M
zabbix_web_upload_max_filesize: 2M
zabbix_web_max_input_time: 300
zabbix_web_max_input_vars: 10000
zabbix_apache_include_custom_fragment: true
zabbix_apache_SSLPassPhraseDialog: exec:/usr/libexec/httpd-ssl-pass-dialog
zabbix_apache_SSLSessionCache: shmcb:/run/httpd/sslcache(512000)
zabbix_apache_SSLSessionCacheTimeout: 300
zabbix_apache_SSLCryptoDevice: builtin
# Database
zabbix_server_database: pgsql
zabbix_server_database_long: postgresql
zabbix_server_name: "{{ inventory_hostname }}"
zabbix_server_hostname: "{{ inventory_hostname }}"
zabbix_server_listenport: 10051
zabbix_server_dbhost: localhost
zabbix_server_dbname: zabbix-server
zabbix_server_dbuser: zabbix-server
zabbix_server_dbpassword: zabbix-server
zabbix_server_dbport: 5432
zabbix_server_dbschema:
# Elasticsearch
# zabbix_server_history_url:
# - "'uint' => 'http://localhost:9200'"
# - "'text' => 'http://localhost:9200'"
# - "'log' => 'http://localhost:9200'"
# - "'dbl' => 'http://localhost:9200'"
# - "'str' => 'http://localhost:9200'"
zabbix_server_history_types:
- 'str'
- 'text'
- 'log'
- 'uint'
- 'dbl'
selinux_allow_zabbix_can_network: False