Re: [Puppet Users] Puppet pushes facts even when I'm not including the module

21 views
Skip to first unread message

Ramin K

unread,
Dec 19, 2012, 4:02:48 PM12/19/12
to puppet...@googlegroups.com
On 12/19/2012 11:55 AM, David Kerr wrote:
> Howdy,
>
> I've got a module that's the equivalent of:
> /etc/puppet/modules/mymodule/lib/facter/myfact.rb
>
> myfact.rb seems to get pushed to all nodes regardless of whether or not
> i include mymodule for that node.
>
> my factpath is
> factpath = $vardir/lib/facter:$vardir/facts
>
> I'm on puppet v 3.0.0
>
> I'm fairly certain that my site manifests are correct, so I don't
> believe that this node is falling through and hitting a different node's
> set of includes.
>
> It's unclear if this is the expected and correct behavior for puppet?
>
> Thanks

This is the correct behavior and makes sense if you think about the
order of transactions.

1. client connects to master and does cert things
2. master sends facts to client
3. client runs facts, POST to master requesting catalog
4. master generates catalog based on facts
5. client receives catalog and executes it

Because facts are run before the catalog is requested they can't be
doled out on demand.

Ramin

David Kerr

unread,
Dec 20, 2012, 10:18:56 AM12/20/12
to puppet...@googlegroups.com, ramin...@badapple.net
good to know, thanks! 
Reply all
Reply to author
Forward
0 new messages