Collection of ansible playbooks, terraform configurations and scripts to spin up testing instances of Zabbix servers in cloud. Currently supported:
- DigitalOcean
-
Following tools should be present:
-
Create virtualenv (optional) and install requirements
virtualenv env
source env/bin/activate
pip install -r requirements.txt
- Any variables from
main.tf
should be overriden interraform.tfvars
. Required minimum is:
do_token = "API_TOKEN_STRING"
do_ssh_keys = [SSH_KEY_ID]
- Finalize by downloading required ansible roles and initializing terraform:
terraform init
ansible-galaxy install -r requirements.yml
- Deploy testing infrastructure
terraform plan
terraform apply
- If there is need for bastion host and it was configured to
terraform.tfvars
:
source scripts/setup-bastion.sh
# source scripts/setup-bastion.sh HOST # if do_bastion_host is not set
- Provision via ansible-playbook:
source env/bin/activate # if using virtualenv
ansible-playbook site.yml