unkin-agent 807d3df71c
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
node-lookup: auto-qualify short node names to .main.unkin.net
Short -n node names (no dot) now silently returned nothing because the
PuppetDB certname filter needs a FQDN. Auto-qualify a dotless name to
<name>.<domain> (domain defaults to main.unkin.net) before the query.

- Add qualifyNode() pure helper: dotless names get .<domain> appended;
  names already containing a dot (any domain) are left unchanged; a single
  trailing dot is stripped; empty input is preserved.
- Apply it to the -n value and to stdin-sourced node names in run().
- Make the domain configurable via config key domain, NODE_LOOKUP_DOMAIN
  env var, and --domain flag (default main.unkin.net).
- Surface domain in config show / config init and document in AGENTS.md.
- Add table-driven qualifyNode tests and a domain env-override test.
2026-08-15 13:49:01 +10:00
S
Description
A CLI tool written in Go that queries the PuppetDB API to look up and filter node facts.
297 KiB
v0.5.7 Latest
2026-08-15 14:50:35 +10:00
Languages
Go 93.6%
Makefile 3.9%
Shell 2.5%