[Puppet Users] custom facts run three times?

74 views
Skip to first unread message

Marcus, Allan B

unread,
May 3, 2010, 4:32:49 PM5/3/10
to puppet...@googlegroups.com
I put a
puts "running my fact"
into a custom fact. Then I run puppetd from a client in debug mode. I see the "running my fact" three times. Does this mean that the custome fact code is executing three times on the client every time?

---
Thanks,

Allan Marcus
505-667-5666

Michael DeHaan

unread,
May 6, 2010, 11:37:24 AM5/6/10
to puppet...@googlegroups.com
On Mon, May 3, 2010 at 4:32 PM, Marcus, Allan B <al...@lanl.gov> wrote:
> I put a
>   puts "running my fact"
> into a custom fact. Then I run puppetd from a client in debug mode. I see the "running my fact" three times. Does this mean that the custome fact code is executing three times on the client every time?
>

Hmm, that wouldn't be good.

First question -- what versions of Puppet and facter?

Secondly, can you share your fact code with us? (a gist on
github.com perhaps, or just paste it if it's small?)

--Michael

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Joe McDonagh

unread,
May 6, 2010, 12:05:11 PM5/6/10
to puppet...@googlegroups.com
On 05/06/2010 11:37 AM, Michael DeHaan wrote:
> On Mon, May 3, 2010 at 4:32 PM, Marcus, Allan B<al...@lanl.gov> wrote:
>
>> I put a
>> puts "running my fact"
>> into a custom fact. Then I run puppetd from a client in debug mode. I see the "running my fact" three times. Does this mean that the custome fact code is executing three times on the client every time?
>>
>>
> Hmm, that wouldn't be good.
>
> First question -- what versions of Puppet and facter?
>
> Secondly, can you share your fact code with us? (a gist on
> github.com perhaps, or just paste it if it's small?)
>
> --Michael
>
>
I have this similar issue- I notice the "loading facts in XXXX" message
twice when running puppet.

--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
"When the going gets weird, the weird turn pro."

Dan Carley

unread,
May 6, 2010, 12:19:13 PM5/6/10
to puppet...@googlegroups.com
On 6 May 2010 17:05, Joe McDonagh <Joseph.E...@gmail.com> wrote:
I have this similar issue- I notice the "loading facts in XXXX" message twice when running puppet.

Likewise - printed twice. It's been low on my priority list because it doesn't seem to have any negative effect, but since you mention it.

Facter 1.5.2
Puppet 0.25.4

Excerpt from puppet.conf:

vardir = /var/lib/puppet
factpath = $vardir/lib/facter
pluginsync = true

Michael DeHaan

unread,
May 6, 2010, 1:46:27 PM5/6/10
to puppet...@googlegroups.com
Yeah, that's not so efficient.

Please file a bug on this one!

Daniel Pittman

unread,
May 7, 2010, 3:35:18 AM5/7/10
to puppet...@googlegroups.com
Dan Carley <dan.c...@gmail.com> writes:
> On 6 May 2010 17:05, Joe McDonagh <Joseph.E...@gmail.com> wrote:
>
>> I have this similar issue- I notice the "loading facts in XXXX" message
>> twice when running puppet.
>
> Likewise - printed twice. It's been low on my priority list because it
> doesn't seem to have any negative effect, but since you mention it.

Likewise; same versions, on Debian/Etch and Debian/Lenny. Same configuration
fragments, even. Not that I care much, given how costly the rest of running
puppet is.

Daniel

--
✣ Daniel Pittman ✉ dan...@rimspace.net+61 401 155 707
♽ made with 100 percent post-consumer electrons

Dan Carley

unread,
May 7, 2010, 4:20:59 AM5/7/10
to puppet...@googlegroups.com
On 6 May 2010 18:46, Michael DeHaan <mic...@puppetlabs.com> wrote:
Yeah, that's not so efficient.

Please file a bug on this one!

Duly filed.

Reply all
Reply to author
Forward
0 new messages