From 4748df497a1393e93a48d0194029e51c80a1f932 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sun, 13 Sep 2026 23:08:31 +1000 Subject: [PATCH] puppet: install toml into the puppetserver gem path (#467) 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 Reviewed-on: https://git.unkin.net/unkin/argocd-apps/pulls/467 Co-authored-by: unkin-agent Co-committed-by: unkin-agent --- apps/base/puppet/resources/additional-ruby-gems.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/base/puppet/resources/additional-ruby-gems.sh b/apps/base/puppet/resources/additional-ruby-gems.sh index 3ce798a..fd7b909 100755 --- a/apps/base/puppet/resources/additional-ruby-gems.sh +++ b/apps/base/puppet/resources/additional-ruby-gems.sh @@ -6,4 +6,6 @@ echo "Installing additional Ruby gems..." /opt/puppetlabs/puppet/bin/gem install ipaddr /opt/puppetlabs/puppet/bin/gem install hiera-eyaml /opt/puppetlabs/puppet/bin/gem install toml +# Under set -e a failed install kills the entrypoint post-startup hooks, taking down an already-serving compiler. +/opt/puppetlabs/bin/puppetserver gem install toml echo "Additional Ruby gems installed successfully"