Commit 4218c53
fix: install hiera-eyaml into puppetserver's JRuby gem-home (#148)
Since #141, gems installed by prep_release_container.sh land in the system
CRuby gem path (e.g. /var/lib/gems/3.x), which is not on puppetserver's
JRuby gem-path. As a result hiera-eyaml was invisible to the puppetserver
JVM and eyaml-encrypted Hiera lookups failed during catalog compilation.
Install hiera-eyaml into the JRuby gem-home via `puppetserver gem install`,
alongside the existing openvox install. These two gems are the only ones the
puppetserver JVM loads at runtime, and hiera-eyaml has no other consumer, so
it is no longer installed under the distro Ruby at all. The `eyaml` CLI is
exposed via a thin wrapper that runs the JRuby gem-home binstub under the
distro Ruby with GEM_PATH pointed at the JRuby gem-home (hiera-eyaml is a
pure-Ruby gem, so it loads fine there); a plain symlink would resolve the gem
against the distro gem path, where it no longer lives.
All other gems stay in the system CRuby gem path, where they are needed:
they back tools that run under the distro Ruby, not the JVM. In particular
`puppetserver ca` runs the cli/apps/ca app under /opt/puppetlabs/puppet/bin/ruby
(the distro Ruby), so openvoxserver-ca and its hocon dependency must remain on
the CRuby path; r10k/rugged and the puppet/facter CLIs likewise.
Fixes #148
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Chris Boot <bootc@boo.tc>1 parent 913d2dc commit 4218c53
1 file changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| |||
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
100 | | - | |
| 111 | + | |
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
106 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
107 | 139 | | |
108 | 140 | | |
109 | 141 | | |
| |||
0 commit comments