ugh... on my workstation (macOS 26.0.1) i removed ...
# puppet-enterprise
j
ugh... on my workstation (macOS 26.0.1) i removed the older homebrew
pdk
and
puppet-agent
packages, downloaded PDK from the secret perforce server, and used
gem install eyaml
to install eyaml and its dependencies ... now whenever i try to use it, i get this:
Copy code
$ echo testing | eyaml encrypt --stdin -o block -l xyz
/Users/jms1/.gems/gems/psych-5.2.6/lib/psych.rb:716:in 'File#initialize': Is a directory @ io_fillbuf - fd:7 xyz (Errno::EISDIR)
	from /Users/jms1/.gems/gems/psych-5.2.6/lib/psych.rb:716:in 'IO.open'
	from /Users/jms1/.gems/gems/psych-5.2.6/lib/psych.rb:716:in 'Psych.load_file'
	from /Users/jms1/.gems/gems/eyaml-0.4.4/lib/eyaml.rb:37:in 'EYAML.encrypt_file_in_place'
	from /Users/jms1/.gems/gems/eyaml-0.4.4/lib/eyaml/cli.rb:11:in 'block in EYAML::CLI#encrypt'
	from /Users/jms1/.gems/gems/eyaml-0.4.4/lib/eyaml/cli.rb:7:in 'Array#each'
	from /Users/jms1/.gems/gems/eyaml-0.4.4/lib/eyaml/cli.rb:7:in 'EYAML::CLI#encrypt'
	from /Users/jms1/.gems/gems/thor-1.4.0/lib/thor/command.rb:28:in 'Thor::Command#run'
	from /Users/jms1/.gems/gems/thor-1.4.0/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
	from /Users/jms1/.gems/gems/thor-1.4.0/lib/thor.rb:538:in 'Thor.dispatch'
	from /Users/jms1/.gems/gems/thor-1.4.0/lib/thor/base.rb:584:in 'Thor::Base::ClassMethods#start'
	from /Users/jms1/.gems/gems/eyaml-0.4.4/bin/eyaml:7:in '<top (required)>'
	from /usr/local/Cellar/ruby/3.4.7/lib/ruby/3.4.0/rubygems.rb:319:in 'Kernel#load'
	from /usr/local/Cellar/ruby/3.4.7/lib/ruby/3.4.0/rubygems.rb:319:in 'Gem.activate_and_load_bin_path'
	from /Users/jms1/.gems/bin/eyaml:25:in '<main>'
i am NOT a ruby expert, i've been able to cobble some things together with the ruby documentation but the whole "gems" thing, and how the macOS ruby and the PDK ruby do or don't interact, is beyond me (maybe not beyond me, but i haven't had the time to become famliar with it)
on my workstation i just need to be able to encrypt values to include in our hiera files
this smells like something that should be simple, like ... maybe i'm reading "gems" from the wrong directory, or having a mix of macOS-installed and PDK-installed gem versions interacting with each other
if anything, i would have figured the PDK package would include eyaml in it
b
What you are doing has nothing to do with pdk or puppet. you install eyaml to your system gems
j
which is what i thought i did when i typed
gem install eyaml
the
eyaml
that i was using before was installed as part of the
puppet-agent
homebrew package. that's gone (because it's been perforced) so i'm trying to figure out how to install it correctly, partly because i need it, and partly because i'm going to have to document it for the junior-level guys who are going to be working with puppet code soon
b
what even is the eyaml gem
j
is there a different/better way to install it?
gem uninstall eyaml && gem install hiera-eyaml
... heilegescheiße, it's working now!
b
I'm sure hiera-eyaml is still in pdk, but you can also install the gem directly
j
if i ever meet you in person, i owe you a grown-up beverage of your choice 😁
b
well you can come to config management camp
works for me
j
what is this camp you speak of? ... ah ... i'm in florida, if physical travel is involved (especially international travel),
$DAYJOB
isn't going to pay for it ... if there's a way to participate online then i'm tempted
b
j
summarize: instead of
gem install eyaml
, i needed to do
gem install hiera-eyaml
... thanks for the pointer
👍 1
b
@jms1 the community has a budget to sponsor travel to the conference
j
i don't have a passport, and the way things are right now, if i were to apply for one right now, it probably wouldn't be approved until 2029. i live in the US, and ... i'm trying really hard not to discuss politics online, so i'm going to stop right there.