8093933500
Work out which hosts a puppet-prod change can affect, so a catalog test can
fan out over exactly those hosts instead of the whole estate.
- add cmd/catalog-impact and internal/impact
- map hieradata paths onto fact selectors from the hiera hierarchy
- trace manifest classes back to role classes through include, contain,
class {} and hiera_include, to a fixed point
- fetch the estate fact table from pdbmux in one query via FactsByName
- widen to all hosts, loudly, for any path that matches no rule
- ship the binary and its completions in the RPM
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
---
|
|
# nfpm config for the puppet-catalog-tools 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:
|
|
- puppet-catalog-tools
|
|
provides:
|
|
- puppet-catalog-tools
|
|
|
|
contents:
|
|
- src: dist/catalog-diff
|
|
dst: /usr/bin/catalog-diff
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
- src: dist/catalog-impact
|
|
dst: /usr/bin/catalog-impact
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
# Shell completions (generated by scripts/build-rpm.sh before packaging).
|
|
- src: dist/completions/catalog-diff.bash
|
|
dst: /usr/share/bash-completion/completions/catalog-diff
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_catalog-diff
|
|
dst: /usr/share/zsh/site-functions/_catalog-diff
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/catalog-diff.fish
|
|
dst: /usr/share/fish/vendor_completions.d/catalog-diff.fish
|
|
file_info:
|
|
mode: 0644
|
|
|
|
- src: dist/completions/catalog-impact.bash
|
|
dst: /usr/share/bash-completion/completions/catalog-impact
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_catalog-impact
|
|
dst: /usr/share/zsh/site-functions/_catalog-impact
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/catalog-impact.fish
|
|
dst: /usr/share/fish/vendor_completions.d/catalog-impact.fish
|
|
file_info:
|
|
mode: 0644
|