Just delved into my history :
Do not forget to set this VAR :
export RUBYLIB=/var/lib/puppet/lib/
facter --yaml > /tmp/facter.yaml to generate a yaml file of the facts,
which can be passed to hiera.
hiera --debug --config /etc/puppet/hiera.yaml test -y /tmp/facter.yaml
or just passing a single fact
hiera --debug --config /etc/puppet/hiera.yaml test hostname=testhost
http://docs.puppetlabs.com/hiera/1/command_line.html
On 05/01/2013 12:52 AM, Denmat wrote:> Hi,
>
> Run the master in no-daemonize and debug. You will see how it searches
> through your hierarchy that way.
>
> Also you can use the command line on the master to query hiera. See
> puppet docs for details.
>
> Cheers,
> Den
>
> On 01/05/2013, at 2:46, lth <ltharris@gmail.com
> <mailto:ltharris@gmail.com>> wrote:
>
>> I''m using puppet 3.1 and I want to figure out why hiera seems
to be
>> looking in the wrong place and getting the wrong value.
>>
>> I found a post from this group saying to run puppet -d on the master
>> and look in the log. Having done that I still don''t see
anything
>> hiera related except for where puppet reads hiera_config from
>> puppet.conf, nor do I see anything about the automatic parameter
>> lookup or where I use the heira() function to assign another variable.
>>
>> I tried both:
>> puppet agent -t --environment=devel --logdest=/tmp/puppet_agent.log
>> --debug
>> puppet master --debug --no-daemonize --logdest=/tmp/puppet.log
>> --compile=vb271-puppet.vm --environment=devel
>>
>> neither of which gave me anything useful. What am I doing wrong?
>>
>> Thanks in advance.
>> --
>> 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
>> <mailto:puppet-users+unsubscribe@googlegroups.com>.
>> To post to this group, send email to puppet-users@googlegroups.com
>> <mailto:puppet-users@googlegroups.com>.
>> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.