Requirements
- DigitalOcean account, including
- Your DigitalOcean access token
- Terraform
- Ansible
Start by exporting your DigitelOcean access token, as the following environment variables, i.e.
export DIGITALOCEAN_TOKEN=EXAMPLEKEY
export DO_API_TOKEN=${DIGITALOCEAN_TOKEN}
Initialise the workspace
terraform init
Verify that the Terraform is able to communicate with DigitalOcean
terraform validate
terraform refresh
The default configuration will spin up three nodes, all with
- Zookeeper
- Kafka
- Humio
To set up the environment run the following command
terraform apply
Verify the configuration and type yes
into the console.
After a while (usually around 5 minutes) you will have 8 Droplets available in DigitalOcean running Humio.
First, make sure you have the required Ansible Galaxy roles installed
ansible-galaxy install --role-file=requirements.yml
Finally, the cluster can be provisioned with the site.yml
playbook
ansible-playbook site.yml
Once the cluster is up and running, the Humio web interface should be available on through the load balancer.