I just set up hiera-eyaml on my Puppet 3.8, opensource environment.
defaults.yaml
db_password: ENC[PKCS7,MXCGFDS......]
site.pp
$password=hiera(db_password)
If I'm running:
puppet master --debug --compile funky_hostname.mydomain.com --environment=dev
I can see that my tempated configfile is generating correctly:
password="password123"
But when I'm running it on the actual node (funky_hostname.mydomain.com), I'm getting the original, encrypted string as result:
password="ENC[PKCS7,MXCGFDS......]"
Isn't the Hiera decryption is happening on the puppet master side?