https://github.com/jcustenborder/terraform-vmware-confluent
Terraform project to install the Confluent platform on a VMWare cluster.
https://github.com/jcustenborder/terraform-vmware-confluent
ansible confluent-kafka confluent-platform terraform vmware
Last synced: about 2 months ago
JSON representation
Terraform project to install the Confluent platform on a VMWare cluster.
- Host: GitHub
- URL: https://github.com/jcustenborder/terraform-vmware-confluent
- Owner: jcustenborder
- Created: 2018-09-20T19:07:13.000Z (over 7 years ago)
- Default Branch: initial
- Last Pushed: 2018-09-20T19:20:12.000Z (over 7 years ago)
- Last Synced: 2025-12-26T09:57:44.739Z (6 months ago)
- Topics: ansible, confluent-kafka, confluent-platform, terraform, vmware
- Language: HCL
- Size: 4.88 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This project is designed launch the Confluent platform on VMWare using Terraform and Ansible.
Terraform is used to clone the virtual machines, and configure [VM anti affinity rules.](https://www.terraform.io/docs/providers/vsphere/r/compute_cluster_vm_anti_affinity_rule.html)
so that nodes in the same role do not reside on the same host.
# Requirements
* [VMWare vCenter Server](https://www.vmware.com/products/vcenter-server.html)
* [Terraform](https://www.terraform.io/)
* [Ansible](https://www.ansible.com/)
* (RedHat|CentOS) 7 image.
* Key based authentication
* Super user capabilities. See [ansible_become](https://docs.ansible.com/ansible/latest/user_guide/become.html)
# Configure your environment
You need to fill out this information.
## Terraform connection to vCenter
edit terraform.tfvars
```hcl-terraform
vcenter_server =
vcenter_username =
vcenter_password =
vcenter_datacenter =
vcenter_cluster =
vcenter_datastore =
template_name =
environment_name =
vcenter_default_network =
domain_name =
ssh_username =
ssh_key_file =
```
```bash
virtualenv --python=python3.5 .
source bin/activate
pip install -r requirements.txt
cd library
git clone https://github.com/confluentinc/cp-ansible.git cp-ansible
cd ..
```
Provision Virtual Machines
```bash
terraform apply
```
Install the Confluent Platform
```bash
ansible-playbook -i ./inventory.py all.yml
```