Hi
On 5 July 2016 at 23:32, jcbollinger <[email protected]> wrote: > > > 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. Yes i seem to be running into these limitations. So how does one debug.. I have my hiera setup the way I think i want to progress :hierarchy: # node specific - "nodes/%{::trusted.certname}" # OS specific - "os/%{::osfamily}" # Envornment - YB - "ybenv/%{::ybenv}" # common to all - common I want to group nodes based in a ybenv variable. I have added this to my ENC i get this from it --- environment: production ybenv: alextest I have add something to my hieradata/ybenv/alextest.yaml but it doesn't seem to be working But on the test node I try -t --noop --verbose. but it doesn't give me any info about this. Where can I look / what can I turn on to confirm that puppet / hiera is looking at that file I have also tried the hiera -d but it doesn't tell me all the yaml files it touches. Thanks A > > >> >> 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 a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/OAtIhSwbyEs/unsubscribe. > To unsubscribe from this group and all its topics, 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. -- 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/CAJ%2BQ1PX47S0fdFBBYBBwwvTXcOELhghrdwQeBBH%3Dn-4zqEFD6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
