Prepare for GitHub migration (#24)
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

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>
This commit was merged in pull request #24.
This commit is contained in:
2026-11-26 23:09:43 +11:00
committed by BenVincent
parent 72c4105c0f
commit 1c0e47167c
24 changed files with 609 additions and 692 deletions
+7
View File
@@ -0,0 +1,7 @@
# node-lookup, pburl and pblastreport config.
# Read from /etc/node-lookup/config.yaml, then ~/.config/node-lookup/config.yaml;
# NODE_LOOKUP_* env vars and flags override both.
puppetdb_url: http://puppetdb.example.com:8080/pdb/query/v4/facts
puppetboard_url: https://puppetboard.example.com
domain: example.com
role_fact: enc_role
-82
View File
@@ -1,82 +0,0 @@
---
# nfpm config for building the node-lookup RPM.
# Rendered through envsubst (see scripts/build-rpm.sh) then fed to `nfpm pkg`.
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- node-lookup
provides:
- node-lookup
contents:
# The CLI binaries: node-lookup and its companion tools.
- src: dist/node-lookup
dst: /usr/bin/node-lookup
file_info:
mode: 0755
owner: root
group: root
- src: dist/pburl
dst: /usr/bin/pburl
file_info:
mode: 0755
owner: root
group: root
- src: dist/pblastreport
dst: /usr/bin/pblastreport
file_info:
mode: 0755
owner: root
group: root
# Shell completions (generated by scripts/build-rpm.sh before packaging).
- src: dist/completions/node-lookup.bash
dst: /usr/share/bash-completion/completions/node-lookup
file_info:
mode: 0644
- src: dist/completions/_node-lookup
dst: /usr/share/zsh/site-functions/_node-lookup
file_info:
mode: 0644
- src: dist/completions/node-lookup.fish
dst: /usr/share/fish/vendor_completions.d/node-lookup.fish
file_info:
mode: 0644
- src: dist/completions/pburl.bash
dst: /usr/share/bash-completion/completions/pburl
file_info:
mode: 0644
- src: dist/completions/_pburl
dst: /usr/share/zsh/site-functions/_pburl
file_info:
mode: 0644
- src: dist/completions/pburl.fish
dst: /usr/share/fish/vendor_completions.d/pburl.fish
file_info:
mode: 0644
- src: dist/completions/pblastreport.bash
dst: /usr/share/bash-completion/completions/pblastreport
file_info:
mode: 0644
- src: dist/completions/_pblastreport
dst: /usr/share/zsh/site-functions/_pblastreport
file_info:
mode: 0644
- src: dist/completions/pblastreport.fish
dst: /usr/share/fish/vendor_completions.d/pblastreport.fish
file_info:
mode: 0644