🏠 Homepage
- Deploy MongoDB replica-set cluster at Oracle Cloud with minimum interaction
- Setup required cloud infrastructure and resources.
- Install required packages in all virtual machines.
- Deploy docker container with replica-set authentication key.
- Initiate replica-set and add all virtual machine containers.
-
First objective is accomplised using Terraform, which created Oracle cloud resources (Virtual Machine, Virtual Cloud Network, Internet Gateway, Subnet etc.)
-
Second objective is accomplised using Cloud-init scipt, which installed all required packages (Installing docker, Add firewall rule to connect 27017 etc.)
-
Third objective is also accomplised using Cloud-init script which build docker image with replica-set authentication key and deployed it using docker-compose.
-
Fourth objective is accomplished by running few commands manually in any one of the virtual machines.
-
Generate Replica-set authentication key using command -
openssl rand -base64 756 > replica-set.key
and store key file package folder. -
Compress package folder and upload it to oracle cloud object storage.
-
Create Pre-Athenticated Request(PAR) and put link it in "packagelink" variable in mongo-install.sh file
-
Edit main.tf Terraform file and ocid values according to your envionment.
-
Run
terraform plan
thenterraform apply
👤 Shashank Jadon
- Website: https://shashankjadon.tech
- Twitter: @shashank_jadon
- Github: @Code-Neptune
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This project is MIT licensed.