/Terraform4OpsManager

This set of terraform scripts can be used to automatically deploy a demo Ops Manager and create servers to be managed by Ops Manager

Primary LanguageHCL

Ops Manager Demo via Terraform

This repository contains all relevant files for automatically deploy a MongoDB Ops Manager including configured Backup. In addition, you can specify the number of agent nodes which will be available for a MongoDB deployment.
This is only for demo purposes only and IS NOT suitable for production deployment!

Required Tools

This repository is utilizing Terraform which is an open-source infrastructure as code software tool. Terraform will automate the deployment of infrastructure components, copy required files from this folder and execute installation scripts according to the Ops Manager manual. In addition, a python application is used for configuration of the backup capabilities via Ops Manager APIs.

How to use

  1. Install Terraform and AWS CLI
  2. provide aws credentials e.g. in /.aws/credentials
  3. Run terraform init
  4. Install python package "requests"
  5. Create terraform.tfvars within the AWS_OpsManager directory. For this copy terraform.tfvars.template, fill in your required paramters and rename the file to terraform.tfvars
  6. Run terraform apply
  7. Confirm plan by entering yes
  8. Use output URL to access Ops Manager UI

Destroy

  1. Run terraform destroy
  2. Confirm destruction of all resources by entering yes
  3. Delete the file agentConfig.json