This repository has been archived on 2026-11-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
unkin-agent 092558cfdc
ci / goreleaser-check (pull_request) Has been cancelled
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / actions (pull_request) Failing after 10m4s
ci / ci (pull_request) Failing after 10m4s
ci / release-snapshot (pull_request) Failing after 14m13s
ci / go (pull_request) Failing after 14m14s
Declare the iuclabs-infra runner label for actionlint
2026-11-26 23:07:06 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00
2026-11-25 23:57:11 +11:00

node-lookup

CLI tools for PuppetDB:

  • node-lookup queries and filters node facts.
  • pburl prints the Puppetboard node-page URL for each host.
  • pblastreport prints each host's last Puppet report time and Puppetboard URL.

Install

Download a binary (<tool>-<os>-<arch>, linux/darwin on amd64/arm64) or the x86_64 RPM from releases. The RPM installs all three tools with bash/zsh/fish completions.

Verify downloads with node-lookup_<version>_SHA256SUMS and its .sig.

Configure

The tools share one config. Precedence, highest first: flags, NODE_LOOKUP_* env vars, ~/.config/node-lookup/config.yaml, /etc/node-lookup/config.yaml. There are no built-in endpoints; start from packaging/config.example.yaml (the RPM ships it under /usr/share/doc/node-lookup/).

node-lookup -R                 # every node with its role fact
node-lookup -n host1 -a        # all facts for one node
node-lookup -R | pblastreport  # last report time per node
node-lookup config show        # effective config

Develop and release

make test
make rpm      # goreleaser snapshot into dist/
make patch    # or minor/major: drafts the GitHub release, then pushes the tag

The release workflow builds the binaries and RPM, signs the checksums and publishes the draft. See AGENTS.md for code layout and flags.

S
Description
A CLI tool written in Go that queries the PuppetDB API to look up and filter node facts.
Readme 388 KiB
v0.5.8 Latest
2026-10-13 21:04:18 +11:00
Languages
Go 95.3%
Makefile 3.5%
Shell 1.2%