Hi I''m trying to add extra facts to facter. The puppetd is running on Debian Etch Amd64 as Xen 3.1 guest. I''ve follow the Wiki on adding the facts. First I used relative path in the manifest and added "factsync=true" in client''s puppetd.conf. And then tested it with "puppetd -vt". But no matter what i tried, this error came: File paths must be fully qualified So I used the absolute path and everything was loaded. { "/var/lib/puppet/facts": source => "puppet://puppet/facts", recurse => true } But nothing happens when i try to use them, although they have been transfered to "/var/lib/puppet/facts"! All three facts I''m trying to install is taken from the wiki, so they should fine. I hope someone can see, what I''ve missed. Thanks /Lars -- Output from puppetd -vt --factsync --- ~# puppetd -vt --factsync info: Retrieving facts notice: fact_collector/file=/var/lib/puppet/facts/checksum:.... info: Loading fact ifname info: Loading fact virtual info: Loading fact home info: Caching configuration at /etc/puppet/localconfig.yaml notice: Finished configuration run in 5.29 seconds ----------------------------------------------------
On Aug 19, 2007, at 5:35 PM, Lars Staun Knudsen wrote:> First I used relative path in the manifest and added "factsync=true" > in client''s puppetd.conf. And then tested it with "puppetd -vt". But > no matter what i tried, this error came: > File paths must be fully qualifiedWhat do you mean "relative path"? It should be something like ''$vardir/facts".> But nothing happens when i try to use them, although they have been > transfered to "/var/lib/puppet/facts"! All three facts I''m trying to > install is taken from the wiki, so they should fine.It looks like they''re being loaded; they''re not usable in your configuration? Have you tried adding them to a notify, like this: notify { "Got fact ''$home''": } -- The trouble with the rat race is that even if you win, you''re still a rat. -- Lily Tomlin --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> It looks like they''re being loaded; they''re not usable in your > configuration? Have you tried adding them to a notify, like this: > notify { "Got fact ''$home''": }The notify didn''t gave any output. So I tried echo the variable into a file and it worked. I always assumed that puppetd relied on facter to inform sysinfo on and , and facter still can''t output the custom facts. Why does that? Not that it matter, I''m just curious... Thanks /Lars
On Aug 23, 2007, at 5:59 PM, Lars Staun Knudsen wrote:> The notify didn''t gave any output. So I tried echo the variable into > a file and it worked. I always assumed that puppetd relied on facter > to inform sysinfo on and , and facter still can''t output the custom > facts. Why does that? Not that it matter, I''m just curious...If the notify didn''t give any output at all, then you''ve got some other problem, because at the least it should print something. I don''t really know what you mean by sysinfo in this case. -- Today I dialed a wrong number...The other person said, "Hello?" and I said, "Hello, could I speak to Joey?"... They said, "Uh...I don''t think so...he''s only 2 months old." I said, "I''ll wait." -- Steven Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> If the notify didn''t give any output at all, then you''ve got some > other problem, because at the least it should print something.I tried to clear everything else from site.pp, except notify and with and without loading the facts. Still no output, this is on two difference clients, both Debian Etch (32 & 64bit). I don''t have any other problems that i know of, other that the one that started this thread (facter don''t list/show the added facts). So I don''t know what else, I''m in control of, should interfere? /Lars
On Aug 30, 2007, at 5:32 PM, Lars Staun Knudsen wrote:> I tried to clear everything else from site.pp, except notify and > with and without loading the facts. Still no output, this is on two > difference clients, both Debian Etch (32 & 64bit). I don''t have any > other problems that i know of, other that the one that started this > thread (facter don''t list/show the added facts). So I don''t know > what else, I''m in control of, should interfere?Oh, this is just facter itself not showing the facts? That''s just because it doesn''t look in Puppet''s fact locations by default. You set FACTER_LIB, or maybe FACTERLIB, to that path, and facter will see them. -- What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? --Larry Wall in <1992Aug26.184221.29627@netlabs.com> --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> Oh, this is just facter itself not showing the facts? That''s just > because it doesn''t look in Puppet''s fact locations by default. You > set FACTER_LIB, or maybe FACTERLIB, to that path, and facter will see > them.I can see that Facter also writes lib to the facts list, when i export the paths. Thank you for the help. /Lars