# 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 (`--`, linux/darwin on amd64/arm64) or the x86_64 RPM from [releases](https://github.com/IUCLabs/node-lookup/releases). The RPM installs all three tools with bash/zsh/fish completions. Verify downloads with `node-lookup__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`](https://github.com/IUCLabs/node-lookup/blob/main/packaging/config.example.yaml) (the RPM ships it under `/usr/share/doc/node-lookup/`). ```bash 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 ```bash 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](https://github.com/IUCLabs/node-lookup/blob/main/AGENTS.md) for code layout and flags.