root@fenix:/etc/puppetlabs/code/environments/sandbox# puppet apply --environment sandbox ./manifests/
Warning: /etc/puppetlabs/code/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
(in /etc/puppetlabs/code/hiera.yaml)
Warning: Undefined variable 'facts.fqdn';
(file & line not available---
:backends:
- yaml
:hierarchy:
- "fqdn/%{facts.fqdn}"
- "os/%{facts.osfamily}"
- common
:yaml:
:datadir: /etc/puppetlabs/code/environments/%{::environment}/hieradata
---
:backends:
- yaml
:yaml:
:datadir: "/etc/puppetlabs/code/environments/%{environment}/hieradata"
:hierarchy:
- "nodes/%{::trusted.certname}"
- "virtual/%{::virtual}"
- "osfamily/%{::osfamily}"
- commonroot@fenix:/etc/puppetlabs/code/environments/sandbox# puppet apply --environment sandbox ./manifests/
Warning: /etc/puppetlabs/code/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
(in /etc/puppetlabs/code/hiera.yaml)
Warning: Undefined variable '::trusted.certname';
(file & line not available)
Warning: Undefined variable 'trusted.certname';
(file & line not available)
Notice: Compiled catalog for fenix.harmonywave.com in environment sandbox in 0.49 seconds
Notice: Processing catalog from the sandbox environment.
Notice: /Stage[main]/Main/Notify[UsingSandbox]/message: defined 'message' as 'Processing catalog from the sandbox environment.'
Notice: Applied catalog in 0.53 secondsA related bug: https://tickets.puppetlabs.com/browse/PUP-7171
I too can't find docs to the new format .
- Thomas
---
version: 5
backends: yaml
hierarchy:
- "fqdn/%{facts.fqdn}"
- "os/%{facts.osfamily}"
- common
yaml: datadir: /etc/puppetlabs/code/environments/%{::environment}/hieradataroot@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