datastax / pulsar-ansible

Apache License 2.0
4 stars 9 forks source link

[FEATURE] Add Provisioning w/Terraform #24

Open dave2wave opened 1 year ago

dave2wave commented 1 year ago

Add the ability to provision a test cluster to AWS. This step will do the following:

Provision the following instances as a cluster

  1. Ansible controller VM
  2. Pulsar cluster VMs
  3. PulsarClient VMs

Playbook / Role to deploy the controller

  1. Ansible and dependencies
  2. Pulsar and dependencies for JWT
  3. OpenSSL
  4. Pulsar-ansible including a hosts file generated by terraform
  5. (optional) and NB framework.

To work on and test your clusters you will ssh using a key that you create and that will be a gateway to your test cluster. The user will be able to choose what test framework to install.

yabinmeng commented 1 year ago

It is good to have the combination of terraform and ansible together. However, not all people use terraform to provision infrastructure resources. For those who don't, we still need a way to auto-gen the inventory host file (e.g. a bash script as currently used).

MMirelli commented 1 year ago

For reference, this is the bash script: https://github.com/datastax/pulsar-ansible/blob/a16bd34/bash/buildAnsiHostInvFile.sh.