[Puppet Users] Are facts cached?

Mohamed Lrhazi
Mon, 18 Apr 2011 01:29:05 -0000

Am trying to debug a weird issue...It seems that my custom facts
generated when puppet agent is run against my test master are not the
same as when run against my prod master. What could explain that?

A bit more specifically, my custom facts are generated by the fact:
http://www.devco.net/archives/2008/04/17/easy_per-machine_custom_facts_for_puppet.php

I changed one line to allow for whitespace in the keys and values, like this:

var = $1.strip and val = $2.strip if line =~ /^(.+)=(.+)$/

I synced up the configs between my test and prod masters, so
everything should be the same... Still, when I run an agent against my
test server I get correct facts, key1: val1... against prod master I
get some buggy "key1    ": val1

I even removed all whitespace from my facts.txt, that the facts are
generated out of, run the agent many times, still same behavior.

Any idea what could be the cause? am sure its something left over for
my earlier attempts.. but what?

Thanks a lot.
Mohamed.