Skip to content
This repository was archived by the owner on Jul 31, 2020. It is now read-only.

Commit b4cf43f

Browse files
author
Werner Dijkerman
authored
Merge pull request #303 from UdelaRInterior/zabbix-versions
Avoid conflicts with the zabbix_version and zabbix_url variables
2 parents 14eedac + cbb48e5 commit b4cf43f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ This will install the zabbix-agent role into your `roles` directory.
180180

181181
In order to get the Zabbix Agent running, you'll have to define the following properties before executing the role:
182182

183-
* zabbix_version
183+
* zabbix_agent_version
184184
* zabbix_agent_server
185185
* zabbix_agent_serveractive (When using active checks)
186186

187-
The `zabbix_version` is 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_version: 4.0`, `zabbix_version: 3.4` or `zabbix_version: 2.2`.
187+
The `zabbix_agent_version` is 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_agent_version: 4.0`, `zabbix_agent_version: 3.4` or `zabbix_agent_version: 2.2`.
188188

189189
The `zabbix_agent_server` (and `zabbix_agent_serveractive`) should contain the ip or fqdn of the host running the Zabbix Server.
190190

@@ -202,7 +202,7 @@ There are some variables in default/main.yml which can (or need to) be overridde
202202

203203
* `zabbix_agent_serveractive`: The ip address for the zabbix-server or zabbix-proxy for active checks.
204204

205-
* `zabbix_version`: This is the version of zabbix. Default it is 4.0, but can be overridden to one of the versions mentioned in [Zabbix Versions](#zabbix-versions).
205+
* `zabbix_agent_version`: This is the version of zabbix. Default it is 4.4, but can be overridden to one of the versions mentioned in [Zabbix Versions](#zabbix-versions). Previously the variable `zabbix_version` was used directly but it could cause [some inconvenience](https://github.com/dj-wasabi/ansible-zabbix-agent/pull/303). That variable is maintained by retrocompativility.
206206

207207
* `zabbix_repo`: Default: _zabbix_
208208
* _epel_ install agent from EPEL repo

defaults/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
# defaults file for zabbix-agent
33

4-
zabbix_version: 4.4
4+
zabbix_agent_version: 4.4
5+
zabbix_version: "{{ zabbix_agent_version }}"
56
zabbix_version_patch: 0
67
zabbix_repo: zabbix
78
zabbix_agent_package: zabbix-agent
@@ -39,7 +40,8 @@ zabbix_repo_yum:
3940
state: present
4041

4142
# Zabbix API stuff
42-
zabbix_url: "http://zabbix.dj-wasabi.local"
43+
zabbix_agent_server_url: "http://zabbix.dj-wasabi.local"
44+
zabbix_url: "{{ zabbix_agent_server_url }}"
4345
# zabbix_api_http_user: admin
4446
# zabbix_api_http_password: admin
4547
zabbix_api_user: Admin

0 commit comments

Comments
 (0)