-
Notifications
You must be signed in to change notification settings - Fork 0
Training Platform
Cesar Celis Hernandez edited this page Jan 27, 2023
·
8 revisions
To start creating the provisioning script for MJ to get VMs.
-
python is going to be the scripting language we seleced
-
We need to create a Python Script
- 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.
- 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>
-
Cesar to work in the linter: Python Linter to be added, PEP-8
https://peps.python.org/pep-0008/
-
Rest API webhook with Python, so that with a curl or Postman someone can request VMs
-
Add Authentication in our Rest API above in point 4