I''m probably not understanding how facts work, but I''m hoping that somehow if a fact gets loaded by the puppetmaster, it could be used as a variable by all puppet clients, but this is turning out not to be the case. On my puppetmaster, I''ve got a ruby script that parses a simple text file located on the puppetmaster to load <somevariable>. However when I run puppet on the client it wants to download the ruby file that parses the fact rather than the fact itself, so puppet errors out saying that the template cannot be parsed since it cannot find <somevariable>. Currently my facts are separate from my modules, and I''ve got the correct settings in my fileserver.conf file (I think), as the puppetmaster parses the fact just fine, so I don''t think the facts being separate from the module is the problem, as I''ve tried it with the fact embedded in the module as well. Is there some simple "fact" that I''m overlooking. To paraphrase Joe Friday, I want just the facts man. . . just the facts. --qbert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
qbert980 wrote:> I''m probably not understanding how facts work, but I''m hoping that > somehow if a fact gets loaded by the puppetmaster, it could be used as > a variable by all puppet clients, but this is turning out not to be > the case.Facts are evaluated on each client, including the puppetmaster, when it checks in. What are you trying to accomplish specifically? Knowing that may help find an alternative route for configuring your clients correctly. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 2, 2008, at 10:37 PM, qbert980 wrote:> > I''m probably not understanding how facts work, but I''m hoping that > somehow if a fact gets loaded by the puppetmaster, it could be used as > a variable by all puppet clients, but this is turning out not to be > the case. > > On my puppetmaster, I''ve got a ruby script that parses a simple text > file located on the puppetmaster to load <somevariable>. However when > I run puppet on the client it wants to download the ruby file that > parses the fact rather than the fact itself, so puppet errors out > saying that the template cannot be parsed since it cannot find > <somevariable>. > > Currently my facts are separate from my modules, and I''ve got the > correct settings in my fileserver.conf file (I think), as the > puppetmaster parses the fact just fine, so I don''t think the facts > being separate from the module is the problem, as I''ve tried it with > the fact embedded in the module as well. > > Is there some simple "fact" that I''m overlooking. To paraphrase Joe > Friday, I want just the facts man. . . just the facts.Sounds like you should be using a custom function rather than a fact -- these only run on the server, and are perfect for doing things like parsing data files that only exist on the server. -- Reality is that which, when you stop believing in it, doesn''t go away. -- Philip K. Dick, "How to Build a Universe" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---