Giter VIP home page Giter VIP logo

ego's Introduction

ego

A non-production provisioning tool for installing MongoDB Ops Manager on all supported Linux and Windows operating systems, in AWS.

"ego" is a Bash script which can perform various useful tasks related to Ops Manager (and dependencies) installs, upgrades, service management, etc.

It currently supports the following Operating Systems:

  • Ubuntu 18.04, 20.04
  • Debian 8, 9, 10
  • Red Hat Enterprise 7.x, 8.x
  • SUSE 12, 15
  • Amazon Linux 2
  • Windows 2012+ (w. Cygwin)

At a high-level, it works as follows: 1. Provision a VM with AWS EC2 (or similar) 2. run 'ego seed user@host' to install ego onto the target system 3. from there onwards, you can run any number of tasks

Note: ego assumes the user has sufficient permissions to assume root on the target system, as some actions require elevated privileges to complete.

Quick start

1. Install ego locally

curl -sL https://raw.githubusercontent.com/mongodb-labs/ego/master/install.sh | bash
# or
wget -qO- https://raw.githubusercontent.com/mongodb-labs/ego/master/install.sh | bash

# After installing, re-read your shell's configuration file:
source ~/.bashrc
# or
source ~/.zshrc
# or
source ~/.config/fish/config.fish

2. Deploy ego in the target system

REMOTE_USER=...
REMOTE_HOST=...
ego seed "$REMOTE_USER@$REMOTE_HOST"

3. Install Ops Manager

ego run "$REMOTE_USER@$REMOTE_HOST" ego ops_manager_install_version --version 4.2.15 --mongodb-version 4.2.8

Debugging

If you want to enable explicit debugging of all ego actions and ssh traffic, you can: export EGO_DEBUG=1 before running ego.

Docker

You can also install and ego in Docker.

# First, build the image
# NOTE: you can always rebuild the image (i.e., after making local changes), by running make again
make

# You can then run ego in docker by executing the following command
docker run -it $(make exec) [ARGS]

For example, you can provision Ops Manager on a remote host by running:

REMOTE_USER=...
REMOTE_HOST=...
docker run -it $(make exec) seed "$REMOTE_USER@$REMOTE_HOST"
docker run -it $(make exec) run "$REMOTE_USER@$REMOTE_HOST" ego ops_manager_install_version --version 4.2.15 --mongodb-version 4.2.8

LICENSE

'ego' is free and the source is available. Ego is published under the Server Side Public License (SSPL) v1. See individual files for details.

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.