On Saturday, July 2, 2016 at 1:21:03 AM UTC-5, Alex Samad wrote:
>
> Incase somebody googles to here
>
>
> i found this
>
> puppet apply --certname=<abc> -e  "notice(hiera('classes'))" --noop 
> --verbose
>
> This shows me what the puppet master is giving as classes for a specific 
> node based on certname.
>


Clarification: (1) if run on the master, that command gives (2) the value 
that the master sees for Hiera key "classes" for the designated node, (3) 
as computed without benefit of that node's facts.  That key is commonly 
used to designated names of classes to be applied, but (4) that's a 
convention, not a rule, and (5) either way, there may be other classes 
applied, too.

 

> also 
>
> hiera  -d   classes   ::osfamily=RedHat environment=production   
> ::trusted.certname=<abc>
>
>
> on the puppet master to give you info from hiera .. helpful
>


Indeed it does, and indeed it is.  Note that when Hiera is run from the 
command line like that, it uses only the fact values you specify on the 
command line, as shown.  Which fact values are significant depends on your 
hierarchy configuration and data.


John

-- 
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/663a9cc9-320b-43f0-9513-f52ce806728d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to