57a472d24e
ci/woodpecker/pr/build-fedora42 Pipeline was successful
ci/woodpecker/pr/build-fedora44 Pipeline was successful
ci/woodpecker/pr/build-fedora43 Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
The puppet-initial firstrun bootstrap hardcoded the legacy Consul CA endpoint puppetca.query.consul:8140. That VM-era CA is being replaced by the in-cluster puppetserver CA service. - Default the CA host to puppetca.k8s.syd1.au.unkin.net (still :8140, same /puppet-ca/v1/certificate/ca API; verified serving HTTP 200). - Read PUPPETCA_HOST / PUPPETCA_PORT from the environment so a host can be pointed at a different CA without rebuilding the RPM. - Wire the env through systemd via EnvironmentFile=-/etc/sysconfig/puppet-initial and ship a commented %config(noreplace) example at that path, so a kickstart %post can override per-host. - Document the override (incl. a kickstart %post example) in a new README. - Bump el8/el9 build version 1.0.3 -> 1.0.4 so a new RPM is published. Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
# nfpm.yaml
|
|
|
|
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}
|
|
license: ${PACKAGE_LICENSE}
|
|
|
|
disable_globbing: false
|
|
|
|
depends:
|
|
- puppet-agent
|
|
|
|
# Files to include in the package
|
|
contents:
|
|
- src: /app/resources/puppet-initial
|
|
dst: /usr/local/bin/puppet-initial
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/puppet-initial.service
|
|
dst: /usr/lib/systemd/system/puppet-initial.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/puppet-initial.sysconfig
|
|
dst: /etc/sysconfig/puppet-initial
|
|
type: config|noreplace
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
# Scripts to run during installation/removal (optional)
|
|
scripts:
|
|
postinstall: /app/resources/scripts/postinstall.sh
|
|
preremove: /app/resources/scripts/preremove.sh
|
|
postremove: /app/resources/scripts/postremove.sh
|
|
preinstall: /app/resources/scripts/preinstall.sh
|