---
:backends:
    - yaml
    - eyaml
:hierarchy:
    - "nodes/%{::hostname}"
    - common
:yaml:
    :datadir: "/etc/puppet/environments/%{environment}/hieradata"
:eyaml:
    :extension: 'yaml'
    :datadir: "/etc/puppet/environments/%{environment}/hieradata"
    :pkcs7_private_key: "/etc/puppet/keys/private_key.pkcs7.pem"
    :pkcs7_public_key: "/etc/puppet/keys/public_key.pkcs7.pem"
:merge_behavior: deeper

---
:backends:
    - eyaml
    - yaml
:hierarchy:
    - "nodes/%{::hostname}"
    - common
:yaml:
    :datadir: "/etc/puppet/environments/%{environment}/hieradata"
:eyaml:
    :extension: 'yaml'
    :datadir: "/etc/puppet/environments/%{environment}/hieradata"
    :pkcs7_private_key: "/etc/puppet/keys/private_key.pkcs7.pem"
    :pkcs7_public_key: "/etc/puppet/keys/public_key.pkcs7.pem"
:merge_behavior: deeper

Define eyaml backend before yaml.
Define eyaml backend before yaml.
