/ansible-playbooks

Ansible Playbooks for Victoria Metrics monorepo

Primary LanguageJinjaApache License 2.0Apache-2.0

ansible-playbooks

Ansible roles and playbooks for Victoria Metrics.

How to install

Roles are published in ansible galaxy: https://galaxy.ansible.com/victoriametrics

Install collection:

ansible-galaxy collection install victoriametrics.cluster

Contents

Collection includes the following roles:

  • docker - role for docker installation
  • load_balancer - nginx setup for load balancing between select and insert nodes
  • cluster - installs and configures VictoriaMetrics cluster running in docker
  • single - installs and configures VictoriaMetrics single node
  • vmagent - installs and configures vmagent
  • vmalert - installs and configures vmalert

TODO

  • add non-docker environment
  • fix hardcoded ports

Testing

I'm using vagrant and libvirt for testing purpose. visit vendors' web-site for instructions of installing program. vagrant: https://www.vagrantup.com/downloads

Also, most roles are tested with molecule. Please, check out installation docs: https://molecule.readthedocs.io/en/latest/installation.html