Hi,
I have a working puppetmaster installed from package on an ubuntu server 
14.04 64bits.
I've been struggeling for a while now with hiera to achieve what it is 
written in the doc ;

My hiera version is 1.3.0
Puppetmaster version 3.4.3

My hierachy settings is quite simple, with a common file and a specific 
file for host : 

---
:backends:
  - yaml
  - json
:yaml:
  :datadir: /etc/puppet/hieradata
:json:
  :datadir: /etc/puppet/hieradata
:hierarchy:

  - common
  - "node/%{::fqdn}"

:merge_behavior: deeper

This file is in /etc/puppet/ and linked to /etc/hiera.yaml

In the common.yaml, I'm trying to use a variable based on facts (like in 
the example on the official documentation) :


smtpserver: "mail.%{::domain}"

When I issue hiera smtpserver, I have this output :

mail.

Even the lookup type (deeper here in my config) doesn t provide the same output 
as the example ...

Any idea ? version issue ?

Thx a lot for your advice / answer.

-- 
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/3590c684-299f-4775-a12a-f241ab06f75d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to