Giter VIP home page Giter VIP logo

opsmanagerautomate's Introduction

Creates MongoDB Ops Manager deployment on AWS EC2 machines

Spins up a 3 node OM deployment

image-2.png

Pre-requisites

Install

- terraform
- ansible

Step 1 - Edit the terraform.tfvars to configure the deployment as per requirements

  1. Update the - MUST CUSTOMIZE - section to provide the key-pair you want to use A key pair in the region must be created and private key path must be provided

    This is majorly to discourage creation of too many keys

  2. Optionally, update the - RECOMEMNDED TO CUSTOMIZE - section to provide the region to deploy in By default, the deployment happens in "ap-southeast-2" region

  3. Optionally, update the - MAY CUSTOMIZE - section

Step 2 - Spin up the OM Infra

2.1 Login to get aws credentials

aws sso login

2.2 Apply the terraform configuration

The following creates the infra via Terraform and the runs an Ansible playbook to configure the OM setup. The Terraform code automatically creates the Ansible Inventory file and runs the Ansible playbook, so only tf apply does the job for you.

alias tf=terraform
tf init
tf plan -out p0
tf apply p0

The Ops Manager is installed on 2 nodes and is available at the Load Balancer URL provided in Terraform Output

https://lb-external-url:8443

Step 3 (optional) - How to edit and re-run the Ansible playbook

Once Infra is created by Terraform, the terraform resource that runs the ansible playbook can be marked as tainted, and on next apply it will recreate that resource. Since it is a null resource, it won't impact any Infra in cloud.

tf taint null_resource.execute-ansible-playbook
tf apply -auto-approve

or run the playbook manually

ansible-playbook -i ./ansible/ansible_inventory ./ansible/configure_om_playbook.yml

opsmanagerautomate's People

Contributors

swetaattri073 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sumitkessar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.