feat: provision VMs for mCaptcha/dos/demo-server, mCaptcha/dos/locust, mCaptcha/mCaptcha #1

Merged
realaravinth merged 12 commits from dos into master 2023-08-17 05:15:23 +05:30
Owner

Changes:

This PR introduces the following changes:

  1. Provision VMs using Terraform for deploying https://github.com/mCaptcha/dos
  2. Configure VMs using Ansible for launching distributed stress tests using locust.io
  3. Test configuration with testinfra

It relies on KVM/QEMU via libvirt.

Usage:

Please install the necessary dependencies.

Provision VMs with:

  1. Please edit terraform/dos/cloud_init.cfg and include your SSH key

  2. Run:

git clone https://git.batsense.net/mCaptcha/iac/ && cd iac/
cd terraform/dos
terraform init
terraform plan -out=dos
terraform apply "dos"

Configure VMs with:

(run from repository root)

INVENTORY=terraform/dos/hosts.ini make conf.ping # check connection, will request you to authenticate VM hosts
INVENTORY=terraform/dos/hosts.ini make conf.dos

Test installation with:

INVENTORY=terraform/dos/hosts.ini make test

see: mCaptcha/2023-NLnet#11

## Changes: This PR introduces the following changes: 1. Provision VMs using Terraform for deploying https://github.com/mCaptcha/dos 2. Configure VMs using Ansible for launching distributed stress tests using locust.io 3. Test configuration with [testinfra](https://testinfra.readthedocs.io) It relies on KVM/QEMU via libvirt. ## Usage: Please install the necessary dependencies. ### Provision VMs with: 1. Please edit terraform/dos/cloud_init.cfg and include your SSH key 2. Run: ```bash git clone https://git.batsense.net/mCaptcha/iac/ && cd iac/ cd terraform/dos terraform init terraform plan -out=dos terraform apply "dos" ``` ### Configure VMs with: (run from repository root) ```bash INVENTORY=terraform/dos/hosts.ini make conf.ping # check connection, will request you to authenticate VM hosts INVENTORY=terraform/dos/hosts.ini make conf.dos ``` ### Test installation with: ```bash INVENTORY=terraform/dos/hosts.ini make test ``` see: https://git.batsense.net/mCaptcha/2023-NLnet/issues/11
realaravinth added 1 commit 2023-08-14 09:00:44 +05:30
realaravinth added 11 commits 2023-08-17 05:06:48 +05:30
realaravinth self-assigned this 2023-08-17 05:15:06 +05:30
realaravinth merged commit 458d774f99 into master 2023-08-17 05:15:23 +05:30
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mCaptcha/iac#1
No description provided.