Debian Codegraph @

ansible_collections/community/zabbix/docs/ZABBIX_SERVER_ROLE.md

raw
1 # community.zabbix.zabbix_server role
2
3 ![Zabbix Server](https://github.com/ansible-collections/community.zabbix/workflows/community.zabbix.zabbix_server/badge.svg)
4
5 **Table of Contents**
6
7 - [Overview](#overview)
8 - [Requirements](#requirements)
9 * [Operating systems](#operating-systems)
10 * [Zabbix Versions](#zabbix-versions)
11 - [Installation](#installation)
12 - [Role Variables](#role-variables)
13 * [Main variables](#main-variables)
14 + [Overall Zabbix](#overall-zabbix)
15 + [SElinux](#selinux)
16 + [Zabbix Server](#zabbix-server)
17 + [Database specific](#database-specific)
18 + [TLS Specific configuration](#tls-specific-configuration)
19 + [Custom Zabbix Scripts](#custom-zabbix-scripts)
20 * [proxy](#proxy)
21 * [Database](#database)
22 + [MySQL](#mysql)
23 - [Local Setup](#local-setup)
24 - [Separate Setup](#separate-setup)
25 + [PostgreSQL](#postgresql)
26 - [Local Setup](#local-setup-1)
27 - [Separate Setup](#separate-setup-1)
28 - [Example Playbook](#example-playbook)
29 - [Molecule](#molecule)
30 - [License](#license)
31 - [Author Information](#author-information)
32
33 # Overview
34
35 This is a Ansible role for installing and maintaining the zabbix-server. This will only install the Zabbix Server component and not the Zabbix Web.
36
37 # Requirements
38
39 ## Operating systems
40
41 This role will work on the following operating systems:
42
43 * Red Hat
44 * Debian
45 * Ubuntu
46
47 So, you'll need one of those operating systems.. :-)
48 Please send Pull Requests or suggestions when you want to use this role for other Operating systems.
49
50 ## Ansible 2.10 and higher
51
52 With the release of Ansible 2.10, modules have been moved into collections. With the exception of ansible.builtin modules, this means additonal collections must be installed in order to use modules such as seboolean (now ansible.posix.seboolean). The following collection is now required: `ansible.posix`. Installing the collection:
53
54 ```sh
55 ansible-galaxy collection install ansible.posix
56 ```
57
58 ### MySQL
59
60 When you are a MySQL user and using Ansible 2.10 or newer, then there is a dependency on the collection named `community.mysql`. This collections are needed as the `mysql_` modules are now part of collections and not standard in Ansible anymore. Installing the collection:
61
62 ```sh
63 ansible-galaxy collection install community.mysql
64 ```
65
66 ### PostgreSQL
67
68 When you are a PostgreSQL user and using Ansible 2.10 or newer, then there is a dependency on the collection named `community.postgresql`. This collections are needed as the `postgresql_` modules are now part of collections and not standard in Ansible anymmore. Installing the collection:
69
70 ```sh
71 ansible-galaxy collection install community.postgresql
72 ```
73
74 ## Zabbix Versions
75
76 See the following list of supported Operating systems with the Zabbix releases:
77
78 | Zabbix | 7.4 | 7.2 | 7.0 | 6.0 |
79 |---------------------|-----|-----|-----|-----|
80 | Red Hat Fam 9 | V | V | V | V |
81 | Red Hat Fam 8 | V | V | V | V |
82 | Ubuntu 24.04 noble | V | V | V | V |
83 | Ubuntu 22.04 jammy | V | V | V | V |
84 | Debian 12 bookworm | V | V | V | V |
85 | Debian 11 bullseye | | | | V |
86 | Suse Fam 15 | V | V | V | V |
87
88 You can bypass this matrix by setting `zabbix_server_version_check: false`
89
90 # Installation
91
92 Installing this role is very simple: `ansible-galaxy install community.zabbix.zabbix_server`
93
94 Please be aware that this role only installs the Zabbix Server and not the Zabbix Web. If you do want to have a Zabbix Web, please execute the following command: `ansible-galaxy install community.zabbix.zabbix_web`
95
96 # Role Variables
97
98 ## Main variables
99
100 The following is an overview of all available configuration default for this role.
101
102 ### Overall Zabbix
103
104 * `zabbix_server_version`: Optional. The latest available major.minor version of Zabbix will be installed on the host(s). If you want to use an older version, please specify this in the major.minor format. Example: `zabbix_server_version: 6.0`.
105 * `zabbix_server_version_minor`: When you want to specify a minor version to be installed. RedHat only. Default set to: `*` (latest available)
106 * `zabbix_server_disable_repo`: A list of repos to disable during install. Default `epel`.
107 * `zabbix_service_state`: Default: `started`. Can be overridden to stopped if needed
108 * `zabbix_service_enabled`: Default: `True` Can be overridden to `False` if needed
109 * `zabbix_manage_repo`: Have the collection install and configure the Zabbix repo Default `true`.
110
111
112 ### SElinux
113
114 Selinux changes will be installed based on the status of selinux running on the target system.
115
116 * `selinux_allow_zabbix_can_network`: Default: `True`.
117
118 ### Zabbix Server
119
120 * `zabbix_server_packages`: List of packages to install, can be overridden for a non-supported/custom setup.
121 * `zabbix_server_package_state`: Default: `present`. Can be overridden to `latest` to update packages when needed.
122 * `zabbix_server_install_recommends`: Default: `True`. `False` does not install the recommended packages that come with the zabbix-server install.
123 * `zabbix_server_manage_service`: Default: `True`. When you run multiple Zabbix servers in a High Available cluster setup (e.g. pacemaker), you don't want Ansible to manage the zabbix-server service, because Pacemaker is in control of zabbix-server service and in this case, it needs to be set to `False`.
124 * `zabbix_server_include_mode`: Default: `0755`. The "mode" for the directory configured with `zabbix_server_include`.
125 * `zabbix_server_conf_mode`: Default: `0640`. The "mode" for the Zabbix configuration file.
126
127 ### Database specific
128
129 * `zabbix_server_dbhost_run_install`: Default: `True`. When set to `True`, sql files will be executed on the host running the database.
130 * `zabbix_server_database`: Default: `pgsql`. The type of database used. Can be: `mysql` or `pgsql`
131 * `zabbix_server_dbhost`: The hostname on which the database is running.
132 * `zabbix_server_real_dbhost`: The hostname of the dbhost that is running behind a loadbalancer/VIP (loadbalancers doesn't accept ssh connections)
133 * `zabbix_server_dbname`: The database name which is used by the Zabbix Server.
134 * `zabbix_server_dbuser`: The database username which is used by the Zabbix Server.
135 * `zabbix_server_dbpassword`: The database user password which is used by the Zabbix Server.
136 * `zabbix_server_dbpassword_hash_method`: Default: `md5`. Allow switching postgresql user password creation to `scram-sha-256`, when anything other than `md5` is used then ansible won't hash the password with `md5`.
137 * `zabbix_server_dbport`: The database port which is used by the Zabbix Server.
138 * `zabbix_server_dbpassword_hash_method`: Default: `md5`. Allow switching postgresql user password creation to `scram-sha-256`, when anything other than `md5` is used then ansible won't hash the password with `md5`.
139 * `zabbix_server_database_creation`: Default: `True`. When you don't want to create the database including user, you can set it to False.
140 * `zabbix_server_install_database_client`: Default: `True`. False does not install database client. Default true
141 * `zabbix_server_database_sqlload`:True / False. When you don't want to load the sql files into the database, you can set it to False.
142 * `zabbix_server_database_timescaledb`:False / True. When you want to use timescaledb extension into the database, you can set it to True (this option only works for postgreSQL database).
143 * `zabbix_server_database_timescaledb_force_schema`:False / True. When you want to use timescaledb extension into the database, and force the extension to be created in the schema deefined in zabbix_server_database_schemas. If the extension is not already in the zabbix_server_database_schemas it will be dropped (lost of data) and created in the defined one.
144 * `zabbix_server_database_schemas`: List of schemas to load, can be overridden for a non-supported/custom setup.
145 * `zabbix_server_dbencoding`: Default: `utf8`. The encoding for the MySQL database.
146 * `zabbix_server_dbcollation`: Default: `utf8_bin`. The collation for the MySQL database.
147
148 ### Custom Zabbix Scripts
149
150 Define these variables to copy scripts to your respective scripts path.
151
152 * `zabbix_server_alertscripts`: List of alertscripts to be added to `zabbix_server_alertscriptspath`
153 * `zabbix_server_externalscripts`: List of alertscripts to be added to `zabbix_server_externalscriptspath`
154
155 Example:
156
157 ```yaml
158 zabbix_server_alertscripts:
159 - path: "{{ lookup('first_found', 'zabbix-scripts/somescript.php') }}"
160 name: "somescript.php"
161 ```
162
163 ## proxy
164
165 When the target host does not have access to the internet, but you do have a proxy available then the following properties needs to be set to download the packages via the proxy:
166
167 * `zabbix_http_proxy`
168 * `zabbix_https_proxy`
169
170 ## Database
171
172 With Zabbix Server you can make use of 2 different databases:
173
174 * `mysql`
175 * `postgresql`
176
177 In the following paragraphs we dive into both setups.
178
179 ### MySQL
180
181 To make the Zabbix Server work with a `MySQL` database, there are 2 types on setup:
182
183 1. Local setup, `MySQL` running on same host as the Zabbix Server;
184 2. Separate setup, `MySQL` running on a different host than the Zabbix Server.
185
186 #### Local Setup
187
188 We need to have the following dependencies met:
189
190 1. Find an (Ansible) role that will install a `MySQL` instance on the host. Example: `geerlingguy.mysql` can be used, but also others can be used. Please make sure that before installing the Zabbix Server, you have a fully functional `MySQL` instance running.
191 2. We need to set some variables, either as input for the playbook or set them into the `group_vars` or `host_vars` (Your preference choice). We need to set the following properties:
192
193 ```yaml
194 zabbix_server_database: mysql
195 zabbix_server_database_long: mysql
196 zabbix_server_dbport: 3306
197 zabbix_server_dbpassword: <SOME_SECRET_STRING>
198 ```
199
200 Please generate a value for the `zabbix_server_dbpassword` property (Maybe use `ansible-vault` for this). The zabbix-server role will create an database and username (With the provided value for the password) in `MySQL`.
201 3. Execute the role by running the Ansible playbook that calls this role. At the end of this run, the Zabbix Server with `MySQL` will be running.
202
203 #### Separate Setup
204
205 We need to have the following dependencies met:
206
207 1. We need to either have a `MySQL` instance running somewhere in the environment. If this is the case, we need to have a username/password combination that is allowed to create a database and an user account. If there isn't one, please make sure there is one.
208 2. We need to set some variables, either as input for the playbook or set them into the `group_vars` or `host_vars` (Your preference choice). We need to set the following properties:
209
210 ```yaml
211 zabbix_server_database: mysql
212 zabbix_server_database_long: mysql
213 zabbix_server_dbport: 3306
214 zabbix_server_dbhost: mysql-host
215 zabbix_server_dbhost_run_install: false
216 zabbix_server_dbpassword: <SOME_SECRET_STRING>
217 zabbix_server_privileged_host: '%'
218 zabbix_server_mysql_login_host: mysql-host
219 zabbix_server_mysql_login_user: root
220 zabbix_server_mysql_login_password: changeme
221 zabbix_server_mysql_login_port: 3306
222 ```
223
224 Please generate a value for the `zabbix_server_dbpassword` property (Maybe use `ansible-vault` for this). The zabbix-server role will create an database and username (With the provided value for the password) in `MySQL`.
225
226 The `zabbix_server_privileged_host` can be set to the hostname/ip of the host running Zabbix Server for security related purposes. Also make sure that `zabbix_server_mysql_login_password` is set to the correct password for the user provided with `zabbix_server_mysql_login_host` to create a database and user in the `MySQL` instance.
227
228 3. Execute the role by running the Ansible playbook that calls this role. At the end of this run, the Zabbix Server with `MySQL` on a different host will be running.
229
230 ### PostgreSQL
231
232 To make the Zabbix Server work with a `PgSQL` database, there are 2 types on setup:
233
234 1. Local setup, `PgSQL` running on same host as the Zabbix Server;
235 2. Separate setup, `PgSQL` running on a different host than the Zabbix Server.
236
237 #### Local Setup
238
239 We need to have the following dependencies met:
240
241 1. Find an (Ansible) role that will install a `PgSQL` instance on the host. Example: `geerlingguy.postgresql` can be used, but also others can be used. Please make sure that before installing the Zabbix Server, you have a fully functional `PgSQL` instance running.
242 2. We need to set some variables, either as input for the playbook or set them into the `group_vars` or `host_vars` (Your preference choice). We need to set the following properties:
243
244 ```yaml
245 zabbix_server_database: pgsql
246 zabbix_server_database_long: postgresql
247 zabbix_server_dbport: 5432
248 zabbix_server_dbpassword: <SOME_SECRET_STRING>
249 ```
250
251 Please generate a value for the `zabbix_server_dbpassword` property (Maybe use `ansible-vault` for this). The zabbix-server role will create an database and username (With the provided value for the password) in `PgSQL`. Set `zabbix_server_dbpassword_hash_method` for PostgreSQL 10 and newer if they default to `scram-sha-256`.
252 3. Execute the role by running the Ansible playbook that calls this role. At the end of this run, the Zabbix Server with `PgSQL` will be running.
253
254 #### Separate Setup
255
256 We need to have the following dependencies met:
257
258 1. We need to either have a `PgSQL` instance running somewhere in the environment. If this is the case, we need to have a username/password combination that is allowed to create a database and an user account. If there isn't one, please make sure there is one.
259 2. We need to set some variables, either as input for the playbook or set them into the `group_vars` or `host_vars` (Your preference choice). We need to set the following properties:
260
261 ```yaml
262 zabbix_server_database: pgsql;
263 zabbix_server_database_long: postgresql
264 zabbix_server_dbport: 5432
265 zabbix_server_dbhost: pgsql-host
266 zabbix_server_dbhost_run_install: false
267 zabbix_server_dbpassword: <SOME_SECRET_STRING>
268 zabbix_server_privileged_host: '%'
269 zabbix_server_pgsql_login_host: pgsql-host
270 zabbix_server_pgsql_login_user: postgres
271 zabbix_server_pgsql_login_password: changeme
272 zabbix_server_pgsql_login_port: 5432
273 ```
274
275 Please generate a value for the `zabbix_server_dbpassword` property (Maybe use `ansible-vault` for this). The zabbix-server role will create an database and username (With the provided value for the password) in `PgSQL`. Set `zabbix_server_dbpassword_hash_methodh` for PostgreSQL 10 and newer if they default to `scram-sha-256`.
276
277 The `zabbix_server_privileged_host` can be set to the hostname/ip of the host running Zabbix Server for security related purposes. Also make sure that `zabbix_server_mysql_login_password` is set to the correct password for the user provided with `zabbix_server_mysql_login_host` to create a database and user in the `PgSQL` instance.
278
279 3. Execute the role by running the Ansible playbook that calls this role. At the end of this run, the Zabbix Server with `PgSQL` on a different host will be running.
280
281 ## Configuration Variables
282
283 The following table lists all variables that are exposed to modify the configuration of the zabbix_server.conf file. Specific details of each variable can be found in the Zabbix documentation.
284
285 **NOTE**: Only variables with a default value appear in the defaults file, all others must be added.
286
287 | Zabbix Name | Variable Name | Default Value |Notes |
288 |-----------|------------------|--------|--------|
289 |AlertScriptsPath | zabbix_server_alertscriptspath | /usr/lib/zabbix/alertscripts | |
290 |AllowRoot | zabbix_server_allowroot | `False` | `True`/`False` |
291 |AllowSoftwareUpdateCheck | zabbix_server_allowsoftwareupdatecheck | `True` | `True`/`False` Version 7.0 or later |
292 |AllowUnsupportedDBVersions | zabbix_server_allowunsupporteddbversions | `False` | `True`/`False` |
293 |CacheSize | zabbix_server_cachesize | 32M | |
294 |CacheUpdateFrequency | zabbix_server_cacheupdatefrequency | varies by version | |
295 |DBHost | zabbix_server_dbhost | localhost | |
296 |DBName | zabbix_server_dbname | zabbix-server | |
297 |DBPassword | zabbix_server_dbpassword | zabbix-server | |
298 |DBPort | zabbix_server_dbport | varies by database | |
299 |DBSchema | zabbix_server_dbschema |public | |
300 |DBSocket | zabbix_server_dbsocket | | |
301 |DBTLSCAFile | zabbix_server_dbtlscafile | | |
302 |DBTLSCertFile | zabbix_server_dbtlscertfile | | |
303 |DBTLSCipher | zabbix_server_dbtlscipher | | |
304 |DBTLSCipher13 | zabbix_server_dbtlscipher13 | | |
305 |DBTLSConnect | zabbix_server_dbtlsconnect | | |
306 |DBTLSKeyFile | zabbix_server_dbtlskeyfile | | |
307 |DBUser | zabbix_server_dbuser | zabbix-server | |
308 |DebugLevel | zabbix_server_debuglevel | 3 | |
309 |EnableGlobalScripts | zabbix_server_enableglobalscripts | `False` | `True`/`False` Version 7.0 or later |
310 |ExportDir | zabbix_server_exportdir | | |
311 |ExportFileSize | zabbix_server_exportfilesize | 1G | |
312 |ExportType | zabbix_server_exporttype | | |
313 |ExternalScripts | zabbix_server_externalscriptspath | /usr/lib/zabbix/externalscripts | |
314 |Fping6Location | zabbix_server_fping6location | OS Specific Value | |
315 |FpingLocation | zabbix_server_fpinglocation | OS Specific Value | |
316 |FrontendAllowedIP | zabbix_server_frontendallowedip | | Version 7.4 or later |
317 |HANodeName | zabbix_server_hanodename | | |
318 |HistoryCacheSize | zabbix_server_historycachesize | 16M | |
319 |HistoryIndexCacheSize | zabbix_server_historyindexcachesize | 4M | |
320 |HistoryStorageDateIndex | zabbix_server_historystoragedateindex | `False` | `True`/`False` |
321 |HistoryStorageTypes | zabbix_server_historystoragetypes | uint,dbl,str,log,text | |
322 |HistoryStorageURL | zabbix_server_historystorageurl | | |
323 |HousekeepingFrequency | zabbix_server_housekeepingfrequency | 1 | |
324 |Include | zabbix_server_include | /etc/zabbix/zabbix_server.conf.d/*.conf | |
325 |JavaGateway | zabbix_server_javagateway | | |
326 |JavaGatewayPort | zabbix_server_javagatewayport | 10052 | |
327 |ListenBacklog | zabbix_server_listenbacklog | | |
328 |ListenIP | zabbix_server_listenip | 0.0.0.0 | |
329 |ListenPort | zabbix_server_listenport | 10051 | |
330 |LoadModule | zabbix_server_loadmodule | | |
331 |LoadModulePath | zabbix_server_loadmodulepath | ${libdir}/modules | |
332 |LogFile | zabbix_server_logfile | /var/log/zabbix/zabbix_server.log | |
333 |LogFileSize | zabbix_server_logfilesize | 10 | |
334 |LogSlowQueries | zabbix_server_logslowqueries | 0 | |
335 |LogType | zabbix_server_logtype | file | |
336 |MaxConcurrentChecksPerPoller | zabbix_server_maxconcurrentchecksperpoller | 1000 | Version 7.0 or later |
337 |MaxHousekeeperDelete | zabbix_server_maxhousekeeperdelete | 5000 | |
338 |NodeAddress | zabbix_server_nodeaddress | | |
339 |PidFile | zabbix_server_pidfile | /var/run/zabbix/zabbix_server.pid | |
340 |ProblemHousekeepingFrequency | zabbix_server_problemhousekeepingfrequency | | |
341 |ProxyConfigFrequency | zabbix_server_proxyconfigfrequency | 10 | |
342 |ProxyDataFrequency | zabbix_server_proxydatafrequency | 1 | |
343 |ServiceManagerSyncFrequency | zabbix_server_servicemanagersyncfrequency | 60 | |
344 |SNMPTrapperFile | zabbix_server_snmptrapperfile | /tmp/zabbix_traps.tmp | |
345 |SocketDir | zabbix_server_socketdir | /var/run/zabbix | |
346 |SourceIP | zabbix_server_sourceip | | |
347 |SSHKeyLocation | zabbix_server_sshkeylocation | | |
348 |SSLCALocation | zabbix_server_sslcalocation | | |
349 |SSLCertLocation | zabbix_server_sslcertlocation | ${datadir}/zabbix/ssl/certs | |
350 |SSLKeyLocation | zabbix_server_sslkeylocation | ${datadir}/zabbix/ssl/keys | |
351 |StartAgentPollers | zabbix_server_startagentpollers | 1 | Version 7.0 or later |
352 |StartAlerters | zabbix_server_startalerters | 3 | |
353 |StartBrowserPollers | zabbix_server_startbrowserpollers | 1 | Version 7.0 or later |
354 |StartConnectors | zabbix_server_connectors | 0 | Version 6.4 or later |
355 |StartDBSyncers | zabbix_server_startdbsyncers | 4 | |
356 |StartDiscoverers | zabbix_server_startdiscoverers | 1 | |
357 |StartEscalators | zabbix_server_startescalators | 1 | |
358 |StartHistoryPollers | zabbix_server_starthistorypollers | 5 | |
359 |StartHTTPAgentPollers | zabbix_server_starthttpagentpollers | 1 | Version 7.0 or later |
360 |StartHTTPPollers | zabbix_server_starthttppollers | 1 | |
361 |StartIPMIPollers | zabbix_server_startipmipollers | 0 | |
362 |StartJavaPollers | zabbix_server_startjavapollers | 0 | |
363 |StartLLDProcessors | zabbix_server_startlldprocessors | 2 | |
364 |StartODBCPollers | zabbix_server_startodbcpollers | 1 | |
365 |StartPingers | zabbix_server_startpingers | 1 | |
366 |StartPollers | zabbix_server_startpollers | 5 | |
367 |StartPollersUnreachable | zabbix_server_startpollersunreachable | 1 | |
368 |StartPreprocessors | zabbix_server_startpreprocessors | 3 | |
369 |StartProxyPollers | zabbix_server_startproxypollers | 1 | |
370 |StartReportWriters | zabbix_server_startreportwriters | 0 | |
371 |StartSNMPPollers | zabbix_server_startsnmppollers | 1 | Version 7.0 or later |
372 |StartSNMPTrapper | zabbix_server_startsnmptrapper | 0 | |
373 |StartTimers | zabbix_server_starttimers | 1 | |
374 |StartTrappers | zabbix_server_starttrappers | 5 | |
375 |StartVMwareCollectors | zabbix_server_startvmwarecollectors | 0 | |
376 |StasAllowedIP | zabbix_server_statsallowedip | | |
377 |Timeout | zabbix_server_timeout | 3 | |
378 |TLSCAFile | zabbix_server_tlscafile | | |
379 |TLSCertFile | zabbix_server_tlscertfile | | |
380 |TLSCipherAll | zabbix_server_tlscipherall | | |
381 |TLSCipherAll13 | zabbix_server_tlscipherall13 | | |
382 |TLSCipherCert | zabbix_server_tlsciphercert | | |
383 |TLSCipherCert13 | zabbix_server_tlsciphercert13 | | |
384 |TLSCipherPSK | zabbix_server_tlscipherpsk | | |
385 |TLSCipherPSK13 | zabbix_server_tlscipherpsk13 | | |
386 |TLSCRLFile | zabbix_server_tlscrlfile | | |
387 |TLSFrontendAccept | zabbix_server_tlsfrontendaccept | unencrypted | Version 7.4 or later |
388 |TLSFrontendCertIssuer | zabbix_server_tlsfrontendcertissuer | | Optional. Version 7.4 or later |
389 |TLSFrontendCertSubject | zabbix_server_tlsfrontendcertsubject | | Optional. Version 7.4 or later |
390 |TLSKeyFile | zabbix_server_tlskeyfile | | |
391 |TLSListen | zabbix_server_tlslisten | | Version 7.4 or later |
392 |TmpDir | zabbix_server_tmpdir | /tmp | |
393 |TrapperTimeout | zabbix_server_trappertimeout | 300 | |
394 |TrendCacheSize | zabbix_server_trendcachesize | 4M | |
395 |TrendFunctionCacheSize | zabbix_server_trendfunctioncachesize | 4M | |
396 |UnavailableDelay | zabbix_server_unavailabledelay | 60 | |
397 |UnreachableDelay | zabbix_server_unreachabledelay | 15 | |
398 |UnreachablePeriod | zabbix_server_unreachableperiod | 45 | |
399 |User | zabbix_server_user | zabbix | |
400 |ValueCacheSize | zabbix_server_valuecachesize | 8M | |
401 |Vault | zabbix_server_vault | | Version 6.2 or later |
402 |VaultDBPath | zabbix_server_vaultdbpath | | |
403 |VaultPrefix | zabbix_server_vaultdbprefix | | Version 7.0 or later |
404 |VaultTLSCertFile | zabbix_server_vaulttlscertfile | | Version 6.4 or later |
405 |VaultTLSKeyFile | zabbix_server_vaulttlskeyfile | | Version 6.4 or later |
406 |VaultToken | zabbix_server_vaulttoken | | |
407 |VaultURL | zabbix_server_vaulturl | https://127.0.0.1:8200 | |
408 |VMwareCacheSize | zabbix_server_vmwarecachesize | | |
409 |VMwareFrequency | zabbix_server_vmwarefrequency | 60 | |
410 |VMwarePerfFrequency | zabbix_server_vmwareperffrequency | 60 | |
411 |VMwareTimeout | zabbix_server_vmwaretimeout | 10 | |
412 |WebDriverURL | zabbix_server_webdriverurl | | Version 7.0 or later |
413 |WebServiceURL | zabbix_server_webserviceurl | | |
414
415 ## Tags
416
417 The majority of tasks within this role are tagged as follows:
418
419 * `install`: Tasks associated with the installation of software.
420 * `dependencies`: Installation tasks related to dependencies that aren't part of the core zabbix installation.
421 * `database`: Tasks associated with the installation or configuration of the database.
422 * `api`: Tasks associated with using the Zabbix API to connect and modify the Zabbix server.
423 * `config`: Tasks associated with the configuration of Zabbix or a supporting service.
424 * `service`: Tasks associated with managing a service.
425
426 # Example Playbook
427
428 Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
429
430 ```yaml
431 - hosts: zabbix-server
432 roles:
433 - role: community.zabbix.zabbix_server
434 zabbix_server_database: mysql
435 zabbix_server_database_long: mysql
436 ```
437
438 # Molecule
439
440 This role is configured to be tested with Molecule. You can find on this page some more information regarding Molecule:
441
442 * http://werner-dijkerman.nl/2016/07/10/testing-ansible-roles-with-molecule-testinfra-and-docker/
443 * http://werner-dijkerman.nl/2016/07/27/extending-ansible-role-testing-with-molecule-by-adding-group_vars-dependencies-and-using-travis-ci/
444 * http://werner-dijkerman.nl/2016/07/31/testing-ansible-roles-in-a-cluster-setup-with-docker-and-molecule/
445
446 With each Pull Request, Molecule will be executed via Github Actions to validate the change on a new installation. Each PR should result into a correct working Zabbix Server installation and PR's will not be merged once this process fails.
447
448 # License
449
450 GNU General Public License v3.0 or later
451
452 See LICENCE to see the full text.
453
454 # Author Information
455
456 Please send suggestion or pull requests to make this role better. Also let us know if you encounter any issues installing or using this role.
457
458 Github: https://github.com/ansible-collections/community.zabbix