ops

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

On-Prem Server Management

Ops is a terminal UI application for managing on-premise bare-metal servers and VMs. It allows you see servers currently on your network and quickly ssh to them. Within the UI, you can create and manage multiple network configurations, you can choose a default set of ssh credentials to use for all servers, and you can override those defaults for individual IPs where needed.

This project is heavily inspired by derailed's amazing work on k9s for managing kubernetes clusters via a terminal ui application.

Installation

  • homebrew
brew install ops
git clone https://github.com/robgonnella/ops.git
cd ops
make install

Usage

On first launch a default configuration will be generated based on your machines default network settings. If your machine is not connected to a network the app will fail to start.

  • start application
ops
  • clear database file and log file
ops clear

Files and Config

  • ops.db: Configurations and server details are stored locally on your machine in a sqlite database located in your machines default cache directory. On Unix systems, it returns $XDG_CACHE_HOME if non-empty, else $HOME/.cache. On Darwin, it returns $HOME/Library/Caches.
  • ops.log: Additional logging ~/.config/ops/ops.log

Technologies

  • tview is used to build the frontend. This is a wonderful open source terminal ui library provided by rivo!
  • nmap is used on the backend to perform arp scanning of networks to find and track devices.
  • ansible is also used on the backend to gather additional details about a device where ssh is granted

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli
internal
mock/config
Package mock_config is a generated GoMock package.
Package mock_config is a generated GoMock package.
mock/discovery
Package mock_discovery is a generated GoMock package.
Package mock_discovery is a generated GoMock package.
mock/server
Package mock_server is a generated GoMock package.
Package mock_server is a generated GoMock package.
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL