Hi all,

I'm having some issues getting hiera to check out a subdirectory in it's

I've set a custom fact to reveal what my working environment is. Puppet 3 /

i.e. facter -p my_env shows "test"

My hiera.yaml has an extract like the following;

   - defaults
   - "%{::clientcert}"
   - "%{::my_env}/common"
   - common

I have a hieradata/test/common.yaml file with the required data I'm after.

If I run a hiera -d for the variable I'm after, my datadir is found, but I
can see that it only tries to parse defaults.yaml and common.yaml, but
neither clientcert or my_env directories are searched or mentioned in the
debug output.

I've tried with and without the ::

If I place my key pair in either defaults, or common, it's found

( Indeed, if I run facter clientcert, nothing is actually returned?? This
is the default in the hiera.conf file I see. clientcert, rather than fqdn??

Does anybody have the correct syntax for Puppet 3 hiera to search in a
subdirectory as above?

Thanks Steven

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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppuppet-users @
postedSep 11, '13 at 10:53a
activeSep 11, '13 at 10:53a

1 user in discussion

Steven James: 1 post



site design / logo © 2022 Grokbase