Go to file
meaz 42d6952f2b
templating a couple of values
2023-08-07 08:12:58 +02:00
Playbooks remove unnecessary roles 2023-08-01 21:41:16 +02:00
defaults try to vanilla a bit scripts deployment 2023-08-03 11:28:52 +02:00
handlers add handlers for nginx 2023-08-01 21:40:50 +02:00
tasks add an update task 2023-08-04 07:58:27 +02:00
templates templating a couple of values 2023-08-07 08:12:58 +02:00
.gitignore first commit 2023-02-05 11:48:17 +01:00
LICENSE first commit 2023-02-05 11:48:17 +01:00
README.MD add info about zabbix-agent and complete todo 2023-08-03 11:28:15 +02:00
Vagrantfile bump vagrant to debian 11 2023-08-01 21:40:22 +02:00

README.MD

Zabbix - Ansible Role

This role deploys, configures and updates Zabbix. You can deploy test instance using Vagrantfile attached to the role.

vagrant up ansible-playbook -b Playbooks/zabbix.yml

Then you can access Zabbix from your computer on http://192.168.33.27:8080

The default login credentials for Zabbix are:

  • Username: Admin
  • Password: zabbix

⚠️ If mariadb is deployed on a different server than zabbix, then you have to do mysql> set global log_bin_trust_function_creators = 1; on your mariadb server, then deploy this role, and set it back to mysql> set global log_bin_trust_function_creators = 0;

Zabbix-agent

  • zabbix-agent service needs to be deployed to the container you want to monitor (set zabbix_agent: 'true' when you run the role) in order to be catched by zabbix-server.
  • This role allows you to add your own scripts. See #Zabbix Scripts section in defaults/main.yml.

TODO

  • Find better way than zabbix_proxy_installed: 'false' (01.08.23: it not needed anymore, but needs more tests)
  • When a script needs for example psql for lufi script, then it won't work if the needed package (example postgresql-client) is not installed on the container that zabbix-agent runs on. We could add a task in install_agent that installs dependencies and have zabbix_script_deps var.
  • It would be nice to have userparameter_container.conf.j2 more vanilla as most of them won't work without the disroot scripts repo.

CHANGELOG

  • 15.01.2021 - Make it ready for public release
    • Create readme file
    • Create Playbook
    • Create Vagrantfile
  • 01.08.23 - Fix role issues and update to v6.0