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.
Files
node-lookup/README.md
T
unkin-agent 1c0e47167c
ci / goreleaser-check (push) Has been cancelled
ci / release-snapshot (push) Failing after 12m18s
ci / go (push) Failing after 12m20s
ci / actions (push) Failing after 12m20s
ci / ci (push) Failing after 12m21s
Prepare for GitHub migration (#24)
Moves node-lookup to IUCLabs/node-lookup on GitHub; it must carry no internal hostnames or Woodpecker release.

- Loads PuppetDB, Puppetboard and domain from config (flags > env > ~/.config > /etc) for all 3 tools; errors name the config paths
- Ships packaging/config.example.yaml as an RPM doc
- Rewrites .goreleaser.yaml: raw binaries + amd64 RPM with completions, signed checksums
- Adds GitHub CI/release workflows, CODEOWNERS, zizmor config, README
- Makes patch/minor/major draft a GitHub release; make rpm runs a goreleaser snapshot
- Removes the Woodpecker release pipeline, nfpm.yaml and build-rpm.sh

Reviewed-on: #24
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-26 23:09:43 +11:00

1.5 KiB

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.