dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 249 forks source link

Zabbix-agetnt repository weight for apt #331

Closed Varrkan82 closed 4 years ago

Varrkan82 commented 4 years ago

As some users has an older version of a Zabbix-servers and an update of them could bring a lot of a headash to them - it is need to install an older versions of agent to a new OS (like a 3.0 agent version to a Debian 10). By default it already has a version 4.0 in Debian repositories and it need to be operated with it manually to restrict using of a newer version.

Please, add a possibility to setup an older version of zabbix-agent by creating a something like a file /etc/apt/preferences.d/zabbix-agent-{{ zabbix_underscore_version }} with a next content:

Package: zabbix-agent
Pin: origin repo.zabbix.com
Pin-Priority: 600

This will prioritize system to use the Zabbix official repository instead of a default system.