Skip to content

Training Platform

Cesar Celis Hernandez edited this page Jan 27, 2023 · 8 revisions

Architecture:

Screenshot 2023-01-26 at 7 38 59 PM

Objective:

To start creating the provisioning script for MJ to get VMs.

Tasks

  • python is going to be the scripting language we seleced

  • We need to create a Python Script

  1. Add --command-line-arguments: --create-vm Assigned to Allan.
  • I expect this command line argument to create a certain nunmber of VMs and default can be defined by developer.
  • nomenclature vm-training-
  • --create-vm 1
  • --create-vm 2
  • --create-vm 3
  • Idea is to create more VMs on top of the current VMs.
  • Hardcode all VM values or configuration until we add another flag for those.
  1. Add --delete-vm
  • You have to provide a name of the container or VM, example
python3 vm-provider.py --delete-vm <name-of-vm-or-container>
  1. Cesar to work in the linter: Python Linter to be added, PEP-8 https://peps.python.org/pep-0008/

  2. Rest API webhook with Python, so that with a curl or Postman someone can request VMs

  3. Add Authentication in our Rest API above in point 4

Clone this wiki locally