From "puppet help apply" :
Applies a standalone Puppet manifest to the local system.
So, I do not believe you can do this on other than a puppet master. To do such tests on agent machines, I create a dummy/sandbox class and then include it on the node. If you are using hiera, you should be using the "classes". Just add the new class down at the individual node level of your hierarchy “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) On Jan 06, 2015, at 11:13 AM, leam hall <leamh...@gmail.com> wrote:
I can use: puppet apply -e '$su = hiera_array("site_users") notify { $su: }' on the puppet master and get the information for that host. How do I run that query on a node that should get a different answer based on facts? For example, on "mynode.example.com", how do I query for hostname="mynode". I tried just adding that in and was not successful. Thanks! Leam -- Mind on a Mission -- 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/CACv9p5ok_YtkS%3DrhHC1ew%2B5FdLOpHcWCcZHwnBDrRraQMV%2BO9Q%40mail.gmail.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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a724d9e7-a318-42c6-a3bc-100fa53737b9%40me.com. For more options, visit https://groups.google.com/d/optout.