Hi,
I totally lost hiera eyaml support while upgrading from bullseye to
bookworm. Neither the old hiera configuration file or the new one
worked. Given the upstream upgrade path, I totally understand that
there's little puppet packagers can do to ease the pain…
https://www.puppet.com/docs/puppet/7/hiera_migrate#hiera_migrate
Just in case it helps others, here's what I ended up using, which
lets me use nodes/*.eyaml files:
,---[ /etc/puppet/hiera.yaml ]---
| ---
| # Hiera 5 Global configuration file
|
| version: 5
|
| defaults:
| data_hash: yaml_data
| datadir: code/hiera
|
| hierarchy:
| - name: "Per-node data"
| paths:
| - "nodes/%{trusted.certname}.yaml"
| - "common.yaml"
|
| - name: "Per-node data (encrypted)"
| path: "nodes/%{trusted.certname}.eyaml"
| lookup_key: eyaml_lookup_key
| options:
| pkcs7_private_key: /var/lib/puppet/keys/private_key.pkcs7.pem
| pkcs7_public_key: /var/lib/puppet/keys/public_key.pkcs7.pem
`---
But now I'm facing a bigger issue, which is that any use of hiera
triggers this error, and dozens of log lines:
Lookup using eyaml lookup_key function is only supported when the hiera_eyaml library is present
I'm attaching a log excerpt with a trace.
Since I didn't want to keep a broken puppet {master,server} for too
long, I bit the bullet and tried installing the gem, which worked around
the immediate problem:
puppetserver gem install hiera-eyaml
But it'd be great if that problem could be debugged and a proper
solution found, only using Debian packages… This is a rather small
setup, changes don't happen very often, there's nothing really
mission-critical, so I can happily assist debugging/running tests
if instructed.
Cheers,
--
Cyril Brulebois (ki...@debian.org) <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant