Awesome NomadDevOps tools

mr-karan/nomctx

⭐ 58 Go added to this list on 2024-12-11 repository created 2022-04-08

The project "nomctx" is a command-line tool designed to facilitate faster and easier switching between multiple HashiCorp Nomad clusters and namespaces. It addresses the challenge faced by users who operate across several Nomad clusters, where switching contexts typically involves manually exporting environment variables in the shell, which can be cumbersome and error-prone. Inspired by the Kubernetes tool "kubectx," nomctx provides a streamlined way to manage Nomad contexts by using a configuration file (defaulting to ~/.nomctx/config.hcl) that stores cluster details and authentication information. Nomctx supports both interactive and non-interactive modes. In interactive mode, if the user has the fuzzy finder tool "fzf" installed, nomctx presents an interactive prompt to select clusters or namespaces, enhancing usability. In non-interactive mode, users can list clusters and namespaces, set the current cluster or namespace, and switch contexts using straightforward commands. The tool also supports login via Single Sign-On (SSO), opening a browser window for authentication and allowing session tokens to be persisted for reuse. The tool emits the necessary environment variables (such as NOMAD_ADDR, NOMAD_TOKEN, NOMAD_NAMESPACE, etc.) required by the Nomad CLI for authentication and operation, which can be directly exported into the shell environment using eval. This eliminates the need for manual environment variable management. Nomctx also provides commands to add new clusters to the configuration, specifying parameters like cluster name, address, token, namespace, region, and authentication method. This makes it easy to manage multiple clusters from a single configuration file. Overall, nomctx enhances the developer and operator experience when working with multiple Nomad clusters by simplifying context switching, authentication, and environment management, making it a valuable tool for teams and individuals managing complex Nomad deployments.

https://github.com/mr-karan/nomctx

authenticationcli-toolclustersconfigurationcontext-switchingdevopsenvironment-variablesfzfinfrastructure-managementinteractive-modenamespacesnomadnon-interactive-modesession-tokensshell-environmentsingle-sign-onsso

Also in DevOps tools

hashicorp/levant

Levant is an open source templating and deployment tool that provides realtime feedback and detailed failure messages for HashiCorp Nomad job deployments.

jrasell/nomadfiles

A collection of HashiCorp Nomad job files and deployment scripts designed for continuous delivery and automated multi-environment deployments using Jenkins and Levant.

mxab/nacp

NACP is a proxy for the HashiCorp Nomad API that enables policy-driven validation and mutation of job data using Open Policy Agent and webhooks to enforce organizational policies before job submission.