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
Member

Catalog compiles fail with LoadError: no such file to load -- toml: server-side functions run in the puppetserver JRuby, whose gem path is separate from the agent CRuby path this hook installs into. puppet-prod's profiles::puppet::gems covers both; the hook only did the agent half.

  • Install toml via puppetserver gem, mirroring the puppetserver_gem resource in puppet-prod
  • Note in a comment that under set -e a failed install takes down an already-serving compiler
Catalog compiles fail with `LoadError: no such file to load -- toml`: server-side functions run in the puppetserver JRuby, whose gem path is separate from the agent CRuby path this hook installs into. puppet-prod's `profiles::puppet::gems` covers both; the hook only did the agent half. - Install toml via `puppetserver gem`, mirroring the `puppetserver_gem` resource in puppet-prod - Note in a comment that under `set -e` a failed install takes down an already-serving compiler
unkin-agent added 1 commit 2026-09-13 22:40:57 +10:00
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
f108ca852b
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
unkin-agent added 1 commit 2026-09-13 22:59:21 +10:00
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
d246ce10e5
benvin merged commit 4748df497a into main 2026-09-13 23:08:31 +10:00
benvin deleted branch benvin/puppetserver-toml-gem 2026-09-13 23:08:32 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#467