-
Ensure you have Ansible installed on your machine.
-
Clone the repository https://github.com/MayElbaz18/Monithor-Work.git.
-
Navigate to the /Monithor-Work/infra/ansible directory.
-
Create .env and hub.cfg files with the following variables we send in the assignment.
-
Navigate to the /Monithor-Work/infra/tf directory
-
Change the "key_name" and "key_path" variables in the terraform.tfvars file.
-
Run the following commands one by one:
terraform initterraform planterraform applyWait for Terraform and Ansible to finish provisioning and configuring the infrastructure.
-
Navigate to the Jenkins UI. (The URL will be printed after running the Ansible playbook.)
-
Select the "MoniThorDeployment" job and click on "Build Now". Wait for the job to finish running.
-
Connect to the lb DNS and start using Monithor-WebApp. (The URL will be printed after running the Ansible playbook.)
MayElbaz18/Monithor-Work
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|