So going through the ticket it looks like you should be putting "version: 5" in the YAML file and that keys are not not prefixed with a colon. But I get errors when I make changes to my hiera.yaml file:
--- version: 5 backends: yaml hierarchy: - "fqdn/%{facts.fqdn}" - "os/%{facts.osfamily}" - common yaml: datadir: /etc/puppetlabs/code/environments/%{::environment}/hieradata Here are the errors I get: root@fenix:/etc/puppetlabs/code/environments/sandbox# puppet apply --environment sandbox ./manifests/ Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'classes' failed: The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 0 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 1 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 2 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, unrecognized key 'backends' The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, unrecognized key 'yaml' in The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 0 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 1 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, entry 'hierarchy' index 2 expects a Struct value, got String The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, unrecognized key 'backends' The Lookup Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type, unrecognized key 'yaml' at /etc/puppetlabs/code/environments/sandbox/manifests/hieraclasses.pp:6:1 on node fenix.harmonywave.co Clearly the types have changed. However if hierarchy now expects a Struct, what is the key that should be used? Also backends seems to be depreciated now. If anybody has information and/or documentation on the new format could you please point me to that. Thanks, Joshua On Monday, February 6, 2017 at 2:37:37 PM UTC-7, Thomas Müller wrote: > > This is a new deprecation introduced with puppet 4.9.0 (puppet-agent > 1.9.0). > > A related bug: https://tickets.puppetlabs.com/browse/PUP-7171 > > I too can't find docs to the new format . > > - Thomas > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0d454f4b-8b38-40be-98fa-e56d428491bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.