Leonig Mig
2012-Sep-25 08:44 UTC
[Puppet Users] Where to place Custom Facts in Puppet module structure
Hi, Using Puppet 2.7.11. Following http://puppetlabs.com/blog/facter-part-1-facter-101/ doesn''t state *where* custom facts should go.. however comment by ''nan'' sept 2010 states: Custom facts should be placed under lib/facter sub directory inside modules to take advantage of the autoloader (0.25.x and higher): [MODULE_PATH]/[module_name]/lib/facter Sounds great!! We can''t get it to work :( We have an ugly work around where we use puppet to write the custom_fact.rb to a custom folder then munge the FACTORLIB env variable so they are picked up. Any ideas what might be going wrong :) We ideally would like custom factor facts to be simply dropped into a module and available as such. Thanks, Jim. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/3r7QS3MdSa4J. 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.
Nan Liu
2012-Sep-25 17:37 UTC
Re: [Puppet Users] Where to place Custom Facts in Puppet module structure
On Tue, Sep 25, 2012 at 1:44 AM, Leonig Mig <j.gumbley@gmail.com> wrote:> Using Puppet 2.7.11. > > Following http://puppetlabs.com/blog/facter-part-1-facter-101/ doesn''t state > *where* custom facts should go.. however comment by ''nan'' sept 2010 states: > > Custom facts should be placed under lib/facter sub directory inside modules > to take advantage of the autoloader (0.25.x and higher): > > [MODULE_PATH]/[module_name]/lib/facter > > Sounds great!! We can''t get it to work :(See pluginsync documentation for more information about enabling this functionality: http://docs.puppetlabs.com/guides/plugins_in_modules.html Thanks, Nan -- 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.
Jakov Sosic
2012-Oct-14 00:36 UTC
Re: [Puppet Users] Where to place Custom Facts in Puppet module structure
On 09/25/2012 10:44 AM, Leonig Mig wrote:> Any ideas what might be going wrong :) We ideally would like custom > factor facts to be simply dropped into a module and available as such.Do you have pluginsync enabled on the agents? -- Jakov Sosic www.srce.unizg.hr -- 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.