Use the IaC repository to manage virtual resources on the MNL cloud infrastructure, using GitHub, Jenkins, and Terraform.
Follow the steps below to interact with the IaC services:
Clone the IaC repository locally to your system:
git clone https://github.com/medianetlab/iac.git
cd iac
Create a new branch with your name:
git checkout -b <YOYR_NAME>
If you already have a branch created, merge the master branch into your branch to get the latest updates:
git checkout <YOYR_NAME>
git merge master
Update the necessary configuration files and commit the changes to your branch. Then push the new commits to your branch on the remote repository.
git add .
git commit -m <COMMIT MESSAGE>
git push origin <YOUR_NAME>
This will trigger a Jenkins pipeline on your branch that will verify that the specified changes can be implemented:
If the Jenkins pipelines finish successfully, create a new pull request to the staging branch. Add a detailed description to the pull requess, highlighting the purpose of the infrastructure updates:
An MNL admin will review the pull request and approve the merge into the master branch:
Merging it into the master branch will trigger the actual IaC services that will implement the specified changes.
Once the master pipeline finishes, you will be notified for the expected infrastructure updates.
Follow the steps below to create/update/delete VMs on an Openstack cloud:
- Navigate to the folder containing the configuration files for the Openstack cloud that you want to use, under the openstack folder. You can find more details about the available MNL clouds here.
- Read the instructions in the
README.md
file in the respective openstack folder. - Update the necessary configurations files following the above instructions