So, here's a bit more of the debug o/op: Debug: Performing a hiera indirector lookup of icinga_servers with options {:variables=>Scope(Class[main]), :merge=>#<Puppet::Pops::FirstFoundStrategy:0x00000001024e18 @options_t=#<Puppet::Pops::Types::PStructType:0x00000000fa4150 @elements=[#<Puppet::Pops::Types::PStructElement:0x00000000fa4218 @key_type=#<Puppet::Pops::Types::POptionalType:0x00000000fa4268 @type=#<Puppet::Pops::Types::PStringType:0x00000000fa42b8 @size_type=nil, @values=["strategy"]>>, @value_type=#<Puppet::Pops::Types::POptionalType:0x00000000fa4448 @type=#<Puppet::Pops::Types::PPatternType:0x00000000fa44e8 @patterns=[#<Puppet::Pops::Types::PRegexpType:0x00000000fa46f0 @pattern="first", @regexp=/first/>]>>>]>, @options={}>} Debug: hiera(): Looking up icinga_servers in JSON backend Debug: hiera(): Looking for data source puppet4test101.ops.sac Debug: hiera(): Cannot find datafile /etc/puppetlabs/code/environments/prod/hieradata/puppet4test101.ops.sac.json, skipping Debug: hiera(): Looking for data source puppet4test.ops.sac Debug: hiera(): Cannot find datafile /etc/puppetlabs/code/environments/prod/hieradata/puppet4test.ops.sac.json, skipping Debug: hiera(): Looking for data source puppet4test.ops Debug: hiera(): Cannot find datafile /etc/puppetlabs/code/environments/prod/hieradata/puppet4test.ops.json, skipping Debug: hiera(): Looking for data source ops.sac Debug: hiera(): Looking for data source ops Debug: hiera(): Looking for data source sac
and according to facter -p on node nt_location is sac (as expected). Also, the file /etc/puppetlabs/code/environments/prod/hieradata/sac.json definitely exists. Its odd that it doesn't throw an error, it just doesn't find it. -- 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/9a2da315-7510-4276-af61-dbc90731ef5b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.