Hello,

this work :

hiera -d -c /etc/puppetlabs/puppet/hiera.yaml core::packages
::environment=production  ::osfamily=RedHat

this does not (at least on my platform) :

hiera -d -c /etc/puppetlabs/puppet/hiera.yaml core::packages
::environment=production  ::os.family=RedHat

(note the dot between os and family).

In the hiera-rchy I have levels like :

%{::environment}/hieradata/os/%{::os.family}/%{::os.release.major}"

I works fine with lookups in puppet 5 but not from the hiera command line.

I use the hiera command line tool for debugging.

With the last version of hiera.

# hiera -v
3.4.3

My syntax in hiera.yaml is still in version 3.

How do you query with the command line and some structured facts in the
variable interpolation of the levels in hiera ?

I can't find any doc. or information about that.

Thanks in advance.

Louis Coilliot

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAE9jN32bbgTd1XS8BsdJhemk61fiBQs_21Mb%3D1W%2B8CkSc00JoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to