Textualize based tools to interact with some HashiCorp tools.
- python >= 3.10
- poetry >= 1.2
Ensure you have poetry
installed (version >= 1.2), then:
git clone https://github.com/asyd/nomad-textual.git
cd nomad-textual
poetry install
poetry run python3 nomad.py
poetry run python3 vault.py
vault.py
use environment variables expected by vault
CLI.
Following environment variables are supported:
Variable | Mandatory |
---|---|
VAULT_ADDR | ✅ |
VAULT_TOKEN | ✅ |
cd demo/vault
docker compose up --build --detach --wait
cd ../../
export VAULT_ADDR=http://localhost:8200 VAULT_TOKEN=root
poetry run python3 vault.py
Or, using Docker:
docker build -t textual-hashicorp .
docker run --rm -ti -e NOMAD_ADDR=... textual-hashicorp python nomad.py
docker run --rm -ti -e VAULT_ADDR=... -e VAULT_TOKEN=... textual-hashicorp python vault.py
Backend | Current status |
---|---|
K/V Version 1 | Not tested but should work |
K/V Version 2 | Read only |
PKI | Planned |
nomad.py
use environment variables expected by nomad
CLI.
Following environment variables are supported:
Variable | Mandatory |
---|---|
NOMAD_ADDR | ✅ |
NOMAD_TOKEN | |
NOMAD_CLIENT_CERT | |
NOMAD_CLIENT_KEY | |
NOMAD_NAMESPACE |