Skip to content

ianunruh/zookeeper-ansible-terraform

Repository files navigation

zookeeper-ansible-terraform

Deploys a ZooKeeper cluster on DigitalOcean, using Ansible and Terraform

Usage

  1. Install Ansible
  2. Install Terraform
  3. Get a personal access token from DigitalOcean
  4. Add an SSH key

Retrieve the ID of your SSH key using the following command.

TOKEN=YOUR TOKEN HERE
curl -X GET "https://api.digitalocean.com/v2/account/keys" -H "Authorization: Bearer $TOKEN" | python -m json.tool

Now, create a file named terraform.tfvars in this directory that looks like the following.

digitalocean_token = "YOUR TOKEN HERE"
digitalocean_ssh_key = "YOUR SSH KEY ID HERE"

Finally, use launch.sh to bring up the cluster. You may have to run launch.sh several times, as the droplets can take some time to be ready.

After the cluster is deployed, use test-zk.py to check the status of ZooKeeper.

About

Deploy ZooKeeper to DigitalOcean with Ansible and Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published