I noticed that the distribution of custom facts takes place during the puppet run, so using a custom fact in a manifest may not work initially, but will work on future runs. Is there a way to put custom fact distribution into a stage that runs before the manifest that needs the fact? Thanks, --adam -- 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 Wed, Sep 07, 2011 at 02:33:30PM -0700, AdamW wrote:> I noticed that the distribution of custom facts takes place during the > puppet run, so using a custom fact in a manifest may not work > initially, but will work on future runs. Is there a way to put custom > fact distribution into a stage that runs before the manifest that > needs the fact? > > Thanks, > --adam >Puppet should synchronize custom facts/providers/types, load them and then asking the puppetmaster for the catalog so I''m pretty sure custom facts do work on the first run. -Stefan
In 2.6.9 that hasn''t been my experience. On first run I provide any custom facts I may need as environment variables. After that they seem to work as expected. On Sep 7, 2011 4:39 PM, "Stefan Schulte" <stefan.schulte@taunusstein.net> wrote:> On Wed, Sep 07, 2011 at 02:33:30PM -0700, AdamW wrote: >> I noticed that the distribution of custom facts takes place during the >> puppet run, so using a custom fact in a manifest may not work >> initially, but will work on future runs. Is there a way to put custom >> fact distribution into a stage that runs before the manifest that >> needs the fact? >> >> Thanks, >> --adam >> > > Puppet should synchronize custom facts/providers/types, load them > and then asking the puppetmaster for the catalog so I''m pretty sure > custom facts do work on the first run. > > -Stefan-- 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 Sep 7, 11:25 pm, Aaron Grewell <aaron.grew...@gmail.com> wrote:> In 2.6.9 that hasn''t been my experience. On first run I provide any custom > facts I may need as environment variables. After that they seem to work as > expected.If you find that to be needed then I encourage you to file a bug report. John -- 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.