hiera-eyaml icon indicating copy to clipboard operation
hiera-eyaml copied to clipboard

Allow execution of Puppet functions from Hiera

Open tuxmea opened this issue 2 years ago • 4 comments

It should be possible to call puppet functions directly from Hiera. e.g.

stdlib::manage::create_resources:
  file:
    '/etc/app/db.cfg':
      ensure: 'file'
      content: "%{epp('profile/app/db.cfg.epp')}"

Hiera should then return the epp parsed content.

How are we able to solve this? Which syntax would be possible or recommended?

tuxmea avatar Jan 10 '23 10:01 tuxmea