eyaml edit ending strangly

295 views
Skip to first unread message

Peter Berghold

unread,
Apr 29, 2019, 8:42:42 PM4/29/19
to puppet...@googlegroups.com
I had installed hiera-eyaml on my development box.  My home laptop is set up the same way (I think) and the error I'm seeing doesn't happen on that box.

When I end he edit session I'm getting:

/usr/bin/eyaml edit common.eyaml
[hiera-eyaml-core] cannot load such file -- hiera/backend/eyaml/encryptors/pks7

and losing my edits

Looking through the system I find a directory: 

/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hiera-eyaml-3.0.0/lib/hiera/backend

Diggin deeper:/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hiera-eyaml-3.0.0/lib/hiera/backend/eyaml/encryptors/pkcs7.rb

and more interestingly
/usr/lib/ruby/vendor_ruby/hiera/backend/eyaml/encryptors/pkcs7.rb

so... anybody have an idea why I'm seeing the error above?




Peter L. Berghold                       Salty....@gmail.com

http://devops.berghold.net


Robert

unread,
Apr 30, 2019, 7:16:24 PM4/30/19
to puppet...@googlegroups.com
Hi,

it's probably a copy&paste error but

[hiera-eyaml-core] cannot load such file -- hiera/backend/eyaml/encryptors/pks7

vs.

hiera/backend/eyaml/encryptors/pkcs7.rb

You don't have a typo in some config, do you?

Best
Rp

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAArvnv0U%3D%3DtzdN6Gq0dy6K6oRHONRpqKfzkXTZkTqHMWP_LX4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Peter Berghold

unread,
Apr 30, 2019, 9:28:15 PM4/30/19
to puppet...@googlegroups.com
OK... found one problem and have another.  I am trying to encrypt a OpenSSL private key and of course it is multiline. 

Found out that I was specifiying PKS7 at the beginning of the block and was supposed to specify PKCS7 instead.  Old eyes I guess. 

Corrected that and not have something that looks sorta like: 
mykeyhere: PKCS7[
----- key start -----
... body of key...
...with many...
....lines....
---- key end ----
]! 
but when I end the edit I see:
[hiera-eyaml-core] nested asn1 error

I seem to remember I have to do something special with multiline values in yaml/eyaml...  but I don't remember what.



For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages