zabbix_server_deploy

zabbix-server-deploy

This role fully deploys a standalone Zabbix server with a recent version of MariaDB as its backend.

This is mainly a wrapper around dj-wasabi's zabbix-server and zabbix-web roles, as well as bertvv's mariadb role. Credit goes to them for the heavy-lifting.

The decision to use a recent version of MariaDB instead of the default version from REL/CentOS 7's repositories was mostly made so we can leverage MariaDB's Mariabackup software for database backups. See my mariabackup role if you'd like to use Mariabackup in your deployment.

As of right now, this role does not install Zabbix with TLS support, although it probably will once I get around to setting it up.

Requirements

No requirements besides a fresh install of REL/CentOS 7. The role and its dependencies take care of installing MariaDB and Apache for you.

Do make sure installation of package docs by Yum isn't disabled, though, as some .sql files zabbix-server depends on are distributed by Zabbix as docs. This will probably only be an issue if you deploy to a container though.

Role Variables

The following variables are hard-coded into the role:

  • zabbix_server_database: mysql
  • zabbix_server_database_long: mysql
  • zabbix_server_database_creation: true
  • zabbix_server_database_sqlload: true

As this is a deployment role, it is opiniated and does not support using a database other than MariaDB as its backend.

The role also uses the following default variables:

  • zabbix_version: 4.0
  • zabbix\timezone: America/Toronto

Staying on the freshly released LTS version 4.0 for the near-future is probably a good idead, so our role will default to that. Other versions will not be supported by this role, but feel free to try them.

See zabbix-server, zabbix-web and mariadb for other sensible variables you may want to set to localize your installation.

Variables of note you will most likely want to set:

  • mariadb_root_password: Default is "". Set to a non-empty secure password.
  • zabbix_server_dbpassword: Set to a secure password.
  • zabbix_url: Default is zabbix.example.com. Set according to your environment.
  • zabbix_timezone: Default is America/Toronto

Dependencies

  • bertvv.mariadb
  • dj-wasabi.zabbix-server
  • dj-wasabi.zabbix-web

Example Playbook

- hosts: servers
  roles:
     - {role: esoucy19.zabbix-server-deploy,
        mariadb_root_password: password,
        zabbix_server_dbpassword: zabbix,
        zabbix_url: zabbix-server.example.com
        zabbix_timezone: America/Toronto}

License

MIT

Author Information

This role was created in 2018 by Etienne Soucy

About

Ansible role to deploy a fully functioning Zabbix server.

Install
ansible-galaxy install esoucy19/ansible-role-zabbix-server-deploy
GitHub repository
License
mit
Downloads
44