puppet: install toml into the puppetserver gem path #467

Merged
benvin merged 2 commits from benvin/puppetserver-toml-gem into main 2026-09-13 23:08:31 +10:00

2 Commits

Author SHA1 Message Date
unkin-agent d246ce10e5 Reduce puppetserver toml change to the single gem install
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
2026-09-13 22:59:18 +10:00
unkin-agent f108ca852b puppet: install toml into the puppetserver gem path
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
Server-side functions run in the puppetserver JRuby, whose gem path is
separate from the agent CRuby one, so catalog compiles fail with
`LoadError: no such file to load -- toml`.

- Install toml via `puppetserver gem`, matching the puppetserver_gem
  resource in puppet-prod's profiles::puppet::gems
- Report each failed gem install to stderr instead of exiting silently
- Keep the hook exiting zero: the entrypoint runs post-startup hooks
  under errexit, where a non-zero exit kills a serving compiler
2026-09-13 22:40:25 +10:00