Hi All, I have created: http://reductivelabs.com/trac/puppet/wiki/PluginsInModules the Wiki discusses and put the facter plugins in /var/lib/puppet/lib/facter The issue is they do not show up. when I move them to /usr/lib/ruby/site_ruby/1.8/facter folder they work. Which is where the rpm installs the default facter libraries. I see there is a factpath option and put that in /etc/puppet/ puppet.conf file H like this: factpath = /var/lib/pupppet/lib/facter:/usr/lib/ruby/site_ruby/1.8/ facter/ but stll does not work.. What am I doing wrong to get this to work? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-May-04 12:54 UTC
[Puppet Users] Re: facter sync and getting them to work?
Larry Ludwig wrote:> Hi All, > > I have created: > > http://reductivelabs.com/trac/puppet/wiki/PluginsInModules > > the Wiki discusses and put the facter plugins in > >Larry What version of Puppet? Regards James Turnbull --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-04 14:42 UTC
[Puppet Users] Re: facter sync and getting them to work?
Sorry latest version .24.4 -L -- Larry Ludwig Empowering Media 1-866-792-0489 x600 Managed and Unmanaged Xen VPSes http://www.hostcube.com/ On May 4, 8:54 am, James Turnbull <ja...@lovedthanlost.net> wrote:> Larry Ludwig wrote: > > Hi All, > > > I have created: > > >http://reductivelabs.com/trac/puppet/wiki/PluginsInModules > > > the Wiki discusses and put the facter plugins in > > Larry > > What version of Puppet? > > Regards > > James Turnbull--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-04 14:48 UTC
[Puppet Users] Re: facter sync and getting them to work?
Let me also add that the file transfer is working, but then using the ''facter'' command to see the output does not. May 4 10:41:29 rhea puppetd[3384]: (/File[/var/lib/puppet/lib/puppet]/ ensure) created May 4 10:41:30 rhea puppetd[3384]: (/File[/var/lib/puppet/lib/puppet/ facter]/ensure) created May 4 10:41:30 rhea puppetd[3384]: (/File[/var/lib/puppet/lib/puppet/ facter/virtual.rb]/ensure) created May 4 10:41:32 rhea puppetd[3384]: (/File[/var/lib/puppet/lib/puppet/ type]/ensure) created If I run ''facter'' virtual => http://reductivelabs.com/trac/puppet/wiki/Recipes/VirtualMachine does not show up -L -- Larry Ludwig Empowering Media 1-866-792-0489 x600 Managed and Unmanaged Xen VPSes http://www.hostcube.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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-04 22:33 UTC
[Puppet Users] Re: facter sync and getting them to work?
I''ve figured out the issue. It was a bug in the wiki documentation. Specifically: plugindest = $vardir/lib/puppet factpath = $vardir/lib/facter should be (if following the example) plugindest = $vardir/lib/puppet factpath = $vardir/lib/puppet/facter and have updated the wiki to reflect this. We''ve used instead plugins as the the name instead but will not update the wiki. -L -- Larry Ludwig Empowering Media 1-866-792-0489 x600 Managed and Unmanaged Xen VPSes http://www.hostcube.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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-04 22:34 UTC
[Puppet Users] Re: facter sync and getting them to work?
Let me add that while it works in puppetd, I cannot get the command line tool ''facter'' to show this var. How do you fix this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-04 22:43 UTC
[Puppet Users] Re: facter sync and getting them to work?
On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote:> Let me add that while it works in puppetd, I cannot get the command > line tool ''facter'' to show this var. How do you fix this?It appears the only way to get this to work is via: FACTERLIB shell environment? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-May-05 04:14 UTC
[Puppet Users] Re: facter sync and getting them to work?
On May 4, 2008, at 5:43 PM, Larry Ludwig wrote:> > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: >> Let me add that while it works in puppetd, I cannot get the command >> line tool ''facter'' to show this var. How do you fix this? > > It appears the only way to get this to work is via: > > FACTERLIB shell environment?Correct. Facter does not know anything about Puppet. -- There is only one success - to be able to spend your life in your own way. -- Christopher Morley --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote:> On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > >> Let me add that while it works in puppetd, I cannot get the command > >> line tool ''facter'' to show this var. How do you fix this? > > > It appears the only way to get this to work is via: > > > FACTERLIB shell environment? > > Correct. Facter does not know anything about Puppet. > > -- > There is only one success - to be able to spend your life in your own > way. -- Christopher Morley > --------------------------------------------------------------------- > Luke Kanies |http://reductivelabs.com|http://madstop.comOK, so all in all, how should it look like? I mean, distributing additional facts to machines using different distros is a real pain (because facter directory is in different place in each one) - to the point, I was writing endless cases, but is there a better way? regards, Stanislaw --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m not sure I understand what you are asking. When puppet is executing facter, it make sure that it load the right facts from the right directories, if you want it to work when you execute it manually, just make sure that your FACTERLIB is setup correctly in your environment. (you can always extract it out of puppet.conf |grep .... to your profile/shrc files) Ohad On Mon, May 5, 2008 at 10:08 PM, Stasheck <stanislaw.kaminski@gmail.com> wrote:> > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > >> Let me add that while it works in puppetd, I cannot get the command > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > It appears the only way to get this to work is via: > > > > > FACTERLIB shell environment? > > > > Correct. Facter does not know anything about Puppet. > > > > -- > > There is only one success - to be able to spend your life in your own > > way. -- Christopher Morley > > --------------------------------------------------------------------- > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > OK, so all in all, how should it look like? I mean, distributing > additional facts to machines using different distros is a real pain > (because facter directory is in different place in each one) - to the > point, I was writing endless cases, but is there a better way? > > regards, > Stanislaw > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m afraid you didnt''n understand my problem. I have custom facts and need to distribute them to all my machines. Problem is, on virtually every machine "facter" home dir is in different place. Now, there are two ways for puppet to distribute custom facts: 1. Make "case" for each and every system to use appropriate dir. 2. Use some generic method to detect where facter dir is, and copy files there. Right now I''m using method (1), but I hoped that someone figured how to make this using (2). That''s all. And of course - when files are in facter dir, facts show as they should. Regards, Stanislaw On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote:> I''m not sure I understand what you are asking. > > When puppet is executing facter, it make sure that it load the right facts > from the right directories, if you want it to work when you execute it > manually, just make sure that your FACTERLIB is setup correctly in your > environment. > (you can always extract it out of puppet.conf |grep .... to your > profile/shrc files) > > Ohad > > On Mon, May 5, 2008 at 10:08 PM, Stasheck <stanislaw.kamin...@gmail.com> > wrote: > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > >> Let me add that while it works in puppetd, I cannot get the command > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > It appears the only way to get this to work is via: > > > > > FACTERLIB shell environment? > > > > Correct. Facter does not know anything about Puppet. > > > > -- > > > There is only one success - to be able to spend your life in your own > > > way. -- Christopher Morley > > > --------------------------------------------------------------------- > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > OK, so all in all, how should it look like? I mean, distributing > > additional facts to machines using different distros is a real pain > > (because facter directory is in different place in each one) - to the > > point, I was writing endless cases, but is there a better way? > > > regards, > > Stanislaw--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Maybe I didnt understand you again, but why dont you use --factsync? On Tue, May 6, 2008 at 8:41 PM, Stasheck <stanislaw.kaminski@gmail.com> wrote:> > I''m afraid you didnt''n understand my problem. > > I have custom facts and need to distribute them to all my machines. > Problem is, on virtually every machine "facter" home dir is in > different place. Now, there are two ways for puppet to distribute > custom facts: > 1. Make "case" for each and every system to use appropriate dir. > 2. Use some generic method to detect where facter dir is, and copy > files there. > > Right now I''m using method (1), but I hoped that someone figured how > to make this using (2). That''s all. > > And of course - when files are in facter dir, facts show as they > should. > > Regards, > Stanislaw > > On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > I''m not sure I understand what you are asking. > > > > When puppet is executing facter, it make sure that it load the right > facts > > from the right directories, if you want it to work when you execute it > > manually, just make sure that your FACTERLIB is setup correctly in your > > environment. > > (you can always extract it out of puppet.conf |grep .... to your > > profile/shrc files) > > > > Ohad > > > > On Mon, May 5, 2008 at 10:08 PM, Stasheck <stanislaw.kamin...@gmail.com> > > wrote: > > > > > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > > >> Let me add that while it works in puppetd, I cannot get the > command > > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > > > It appears the only way to get this to work is via: > > > > > > > FACTERLIB shell environment? > > > > > > Correct. Facter does not know anything about Puppet. > > > > > > -- > > > > There is only one success - to be able to spend your life in your > own > > > > way. -- Christopher Morley > > > > > --------------------------------------------------------------------- > > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > > > OK, so all in all, how should it look like? I mean, distributing > > > additional facts to machines using different distros is a real pain > > > (because facter directory is in different place in each one) - to the > > > point, I was writing endless cases, but is there a better way? > > > > > regards, > > > Stanislaw > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ehm, I''m starting to feel a bit dumb. What is --factersync, where and how do I use it? I can''t find anything about this option, I''m not even sure which program uses it? regards, Stanislaw On May 6, 4:13 pm, "Ohad Levy" <ohadl...@gmail.com> wrote:> Maybe I didnt understand you again, but why dont you use --factsync? > > On Tue, May 6, 2008 at 8:41 PM, Stasheck <stanislaw.kamin...@gmail.com> > wrote: > > > > > I''m afraid you didnt''n understand my problem. > > > I have custom facts and need to distribute them to all my machines. > > Problem is, on virtually every machine "facter" home dir is in > > different place. Now, there are two ways for puppet to distribute > > custom facts: > > 1. Make "case" for each and every system to use appropriate dir. > > 2. Use some generic method to detect where facter dir is, and copy > > files there. > > > Right now I''m using method (1), but I hoped that someone figured how > > to make this using (2). That''s all. > > > And of course - when files are in facter dir, facts show as they > > should. > > > Regards, > > Stanislaw > > > On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > I''m not sure I understand what you are asking. > > > > When puppet is executing facter, it make sure that it load the right > > facts > > > from the right directories, if you want it to work when you execute it > > > manually, just make sure that your FACTERLIB is setup correctly in your > > > environment. > > > (you can always extract it out of puppet.conf |grep .... to your > > > profile/shrc files) > > > > Ohad > > > > On Mon, May 5, 2008 at 10:08 PM, Stasheck <stanislaw.kamin...@gmail.com> > > > wrote: > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > > > >> Let me add that while it works in puppetd, I cannot get the > > command > > > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > > > It appears the only way to get this to work is via: > > > > > > > FACTERLIB shell environment? > > > > > > Correct. Facter does not know anything about Puppet. > > > > > > -- > > > > > There is only one success - to be able to spend your life in your > > own > > > > > way. -- Christopher Morley > > > --------------------------------------------------------------------- > > > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > > > OK, so all in all, how should it look like? I mean, distributing > > > > additional facts to machines using different distros is a real pain > > > > (because facter directory is in different place in each one) - to the > > > > point, I was writing endless cases, but is there a better way? > > > > > regards, > > > > Stanislaw--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
please have a look at: http://reductivelabs.com/trac/puppet/wiki/AddingFacts (its --factsync not --factersync sorry) Ohad On Wed, May 7, 2008 at 3:18 PM, Stasheck <stanislaw.kaminski@gmail.com> wrote:> > Ehm, I''m starting to feel a bit dumb. What is --factersync, where and > how do I use it? I can''t find anything about this option, I''m not even > sure which program uses it? > > regards, > Stanislaw > > On May 6, 4:13 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > Maybe I didnt understand you again, but why dont you use --factsync? > > > > On Tue, May 6, 2008 at 8:41 PM, Stasheck <stanislaw.kamin...@gmail.com> > > wrote: > > > > > > > > > I''m afraid you didnt''n understand my problem. > > > > > I have custom facts and need to distribute them to all my machines. > > > Problem is, on virtually every machine "facter" home dir is in > > > different place. Now, there are two ways for puppet to distribute > > > custom facts: > > > 1. Make "case" for each and every system to use appropriate dir. > > > 2. Use some generic method to detect where facter dir is, and copy > > > files there. > > > > > Right now I''m using method (1), but I hoped that someone figured how > > > to make this using (2). That''s all. > > > > > And of course - when files are in facter dir, facts show as they > > > should. > > > > > Regards, > > > Stanislaw > > > > > On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > > I''m not sure I understand what you are asking. > > > > > > When puppet is executing facter, it make sure that it load the right > > > facts > > > > from the right directories, if you want it to work when you execute > it > > > > manually, just make sure that your FACTERLIB is setup correctly in > your > > > > environment. > > > > (you can always extract it out of puppet.conf |grep .... to your > > > > profile/shrc files) > > > > > > Ohad > > > > > > On Mon, May 5, 2008 at 10:08 PM, Stasheck < > stanislaw.kamin...@gmail.com> > > > > wrote: > > > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > > > > >> Let me add that while it works in puppetd, I cannot get the > > > command > > > > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > > > > > It appears the only way to get this to work is via: > > > > > > > > > FACTERLIB shell environment? > > > > > > > > Correct. Facter does not know anything about Puppet. > > > > > > > > -- > > > > > > There is only one success - to be able to spend your life in > your > > > own > > > > > > way. -- Christopher Morley > > > > > --------------------------------------------------------------------- > > > > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > > > > > OK, so all in all, how should it look like? I mean, distributing > > > > > additional facts to machines using different distros is a real > pain > > > > > (because facter directory is in different place in each one) - to > the > > > > > point, I was writing endless cases, but is there a better way? > > > > > > > regards, > > > > > Stanislaw > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Great :-) But I found that this method is depreciated, and since all my puppets are >0.24, I''d rather stick to http://reductivelabs.com/trac/puppet/wiki/PluginsInModules - only problem, I''m not quite sure how to configure this. Suppose I have facts in /etc/puppet/modules/custom/plugins/facter, what to do next? regards, Stanislaw PS. Given that I can distribute facts this way, is there any similar mechanism for puppet configs? On May 7, 10:05 am, "Ohad Levy" <ohadl...@gmail.com> wrote:> please have a look at:http://reductivelabs.com/trac/puppet/wiki/AddingFacts > > (its --factsync not --factersync sorry) > > Ohad > > On Wed, May 7, 2008 at 3:18 PM, Stasheck <stanislaw.kamin...@gmail.com> > wrote: > > > > > Ehm, I''m starting to feel a bit dumb. What is --factersync, where and > > how do I use it? I can''t find anything about this option, I''m not even > > sure which program uses it? > > > regards, > > Stanislaw > > > On May 6, 4:13 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > Maybe I didnt understand you again, but why dont you use --factsync? > > > > On Tue, May 6, 2008 at 8:41 PM, Stasheck <stanislaw.kamin...@gmail.com> > > > wrote: > > > > > I''m afraid you didnt''n understand my problem. > > > > > I have custom facts and need to distribute them to all my machines. > > > > Problem is, on virtually every machine "facter" home dir is in > > > > different place. Now, there are two ways for puppet to distribute > > > > custom facts: > > > > 1. Make "case" for each and every system to use appropriate dir. > > > > 2. Use some generic method to detect where facter dir is, and copy > > > > files there. > > > > > Right now I''m using method (1), but I hoped that someone figured how > > > > to make this using (2). That''s all. > > > > > And of course - when files are in facter dir, facts show as they > > > > should. > > > > > Regards, > > > > Stanislaw > > > > > On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > > > I''m not sure I understand what you are asking. > > > > > > When puppet is executing facter, it make sure that it load the right > > > > facts > > > > > from the right directories, if you want it to work when you execute > > it > > > > > manually, just make sure that your FACTERLIB is setup correctly in > > your > > > > > environment. > > > > > (you can always extract it out of puppet.conf |grep .... to your > > > > > profile/shrc files) > > > > > > Ohad > > > > > > On Mon, May 5, 2008 at 10:08 PM, Stasheck < > > stanislaw.kamin...@gmail.com> > > > > > wrote: > > > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > > > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > > > > > >> Let me add that while it works in puppetd, I cannot get the > > > > command > > > > > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > > > > > It appears the only way to get this to work is via: > > > > > > > > > FACTERLIB shell environment? > > > > > > > > Correct. Facter does not know anything about Puppet. > > > > > > > > -- > > > > > > > There is only one success - to be able to spend your life in > > your > > > > own > > > > > > > way. -- Christopher Morley > > > > > --------------------------------------------------------------------- > > > > > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > > > > > OK, so all in all, how should it look like? I mean, distributing > > > > > > additional facts to machines using different distros is a real > > pain > > > > > > (because facter directory is in different place in each one) - to > > the > > > > > > point, I was writing endless cases, but is there a better way? > > > > > > > regards, > > > > > > Stanislaw--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paul Lathrop
2008-May-07 18:00 UTC
[Puppet Users] Re: facter sync and getting them to work?
I misread this as well. In fact, this method is not yet deprecated, and no decision has been made to get rid of it. You are safe using either method, actually. --Paul On Wed, May 7, 2008 at 5:21 AM, Stasheck <stanislaw.kaminski@gmail.com> wrote:> > Great :-) But I found that this method is depreciated, and since all > my puppets are >0.24, I''d rather stick to http://reductivelabs.com/trac/puppet/wiki/PluginsInModules > - only problem, I''m not quite sure how to configure this. > > Suppose I have facts in /etc/puppet/modules/custom/plugins/facter, > what to do next? > > regards, > Stanislaw > > PS. Given that I can distribute facts this way, is there any similar > mechanism for puppet configs? > > > On May 7, 10:05 am, "Ohad Levy" <ohadl...@gmail.com> wrote: > > please have a look at:http://reductivelabs.com/trac/puppet/wiki/AddingFacts > > > > (its --factsync not --factersync sorry) > > > > Ohad > > > > On Wed, May 7, 2008 at 3:18 PM, Stasheck <stanislaw.kamin...@gmail.com> > > > > wrote: > > > > > > > > > Ehm, I''m starting to feel a bit dumb. What is --factersync, where and > > > how do I use it? I can''t find anything about this option, I''m not even > > > sure which program uses it? > > > > > regards, > > > Stanislaw > > > > > On May 6, 4:13 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > > Maybe I didnt understand you again, but why dont you use --factsync? > > > > > > On Tue, May 6, 2008 at 8:41 PM, Stasheck <stanislaw.kamin...@gmail.com> > > > > wrote: > > > > > > > I''m afraid you didnt''n understand my problem. > > > > > > > I have custom facts and need to distribute them to all my machines. > > > > > Problem is, on virtually every machine "facter" home dir is in > > > > > different place. Now, there are two ways for puppet to distribute > > > > > custom facts: > > > > > 1. Make "case" for each and every system to use appropriate dir. > > > > > 2. Use some generic method to detect where facter dir is, and copy > > > > > files there. > > > > > > > Right now I''m using method (1), but I hoped that someone figured how > > > > > to make this using (2). That''s all. > > > > > > > And of course - when files are in facter dir, facts show as they > > > > > should. > > > > > > > Regards, > > > > > Stanislaw > > > > > > > On May 5, 4:16 pm, "Ohad Levy" <ohadl...@gmail.com> wrote: > > > > > > I''m not sure I understand what you are asking. > > > > > > > > When puppet is executing facter, it make sure that it load the right > > > > > facts > > > > > > from the right directories, if you want it to work when you execute > > > it > > > > > > manually, just make sure that your FACTERLIB is setup correctly in > > > your > > > > > > environment. > > > > > > (you can always extract it out of puppet.conf |grep .... to your > > > > > > profile/shrc files) > > > > > > > > Ohad > > > > > > > > On Mon, May 5, 2008 at 10:08 PM, Stasheck < > > > stanislaw.kamin...@gmail.com> > > > > > > wrote: > > > > > > > > > On May 5, 6:14 am, Luke Kanies <l...@madstop.com> wrote: > > > > > > > > On May 4, 2008, at 5:43 PM, Larry Ludwig wrote: > > > > > > > > > > > On May 4, 6:34 pm, Larry Ludwig <larry...@gmail.com> wrote: > > > > > > > > >> Let me add that while it works in puppetd, I cannot get the > > > > > command > > > > > > > > >> line tool ''facter'' to show this var. How do you fix this? > > > > > > > > > > > It appears the only way to get this to work is via: > > > > > > > > > > > FACTERLIB shell environment? > > > > > > > > > > Correct. Facter does not know anything about Puppet. > > > > > > > > > > -- > > > > > > > > There is only one success - to be able to spend your life in > > > your > > > > > own > > > > > > > > way. -- Christopher Morley > > > > > > > --------------------------------------------------------------------- > > > > > > > > Luke Kanies |http://reductivelabs.com|http://madstop.com > > > > > > > > > OK, so all in all, how should it look like? I mean, distributing > > > > > > > additional facts to machines using different distros is a real > > > pain > > > > > > > (because facter directory is in different place in each one) - to > > > the > > > > > > > point, I was writing endless cases, but is there a better way? > > > > > > > > > regards, > > > > > > > Stanislaw > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-May-07 19:55 UTC
[Puppet Users] Re: facter sync and getting them to work?
On May 7, 2008, at 1:00 PM, Paul Lathrop wrote:> I misread this as well. In fact, this method is not yet deprecated, > and no decision has been made to get rid of it. You are safe using > either method, actually.Basically, I want to get rid of it, but I don''t yet know how I will, and you''ll have plenty of time to transition when I finally do. It''s largely redundant, with pluginsync, but pluginsync doesn''t yet know how to reload facts as it should. -- The most likely way for the world to be destroyed, most experts agree, is by accident. That''s where we come in; we''re computer professionals. We cause accidents. --Nathaniel Borenstein --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
I finally got to use factersync, and I have just one last question - is there any easy way for facter to use this facts being invoked also from command line? I mean, how can I automagically detect facter dir, to set the env variable? regards, Stanislaw On May 7, 9:55 pm, Luke Kanies <l...@madstop.com> wrote:> On May 7, 2008, at 1:00 PM, Paul Lathrop wrote: > > > I misread this as well. In fact, this method is not yet deprecated, > > and no decision has been made to get rid of it. You are safe using > > either method, actually. > > Basically, I want to get rid of it, but I don''t yet know how I will, > and you''ll have plenty of time to transition when I finally do. > > It''s largely redundant, with pluginsync, but pluginsync doesn''t yet > know how to reload facts as it should. > > -- > The most likely way for the world to be destroyed, most experts agree, > is by accident. That''s where we come in; we''re computer professionals. > We cause accidents. --Nathaniel Borenstein > --------------------------------------------------------------------- > 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-May-20 03:07 UTC
[Puppet Users] Re: facter sync and getting them to work?
On May 19, 2008, at 8:07 AM, Stasheck wrote:> finally got to use factersync, and I have just one last question - > is there any easy way for facter to use this facts being invoked also > from command line? I mean, how can I automagically detect facter dir, > to set the env variable?Set FACTERLIB to the fact destination (as an environment variable). Note that the next version of Facter will support a --puppet option that will load this stuff. -- Hoare''s Law of Large Problems: Inside every large problem is a small problem struggling to get out. --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On 20 Maj, 05:07, Luke Kanies <l...@madstop.com> wrote:> On May 19, 2008, at 8:07 AM, Stasheck wrote: > > > finally got to use factersync, and I have just one last question - > > is there any easy way for facter to use this facts being invoked also > > from command line? I mean, how can I automagically detect facter dir, > > to set the env variable? > > Set FACTERLIB to the fact destination (as an environment variable).Well, smart, but how can I tell where is the fact destination on a given system? (even the same distro, such as CentOS, puts it into different places in different releases)> > Note that the next version of Facter will support a --puppet option > that will load this stuff. > > -- > Hoare''s Law of Large Problems: > Inside every large problem is a small problem struggling to get > out. > --------------------------------------------------------------------- > 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-May-20 14:30 UTC
[Puppet Users] Re: facter sync and getting them to work?
On May 20, 2008, at 7:48 AM, Stasheck wrote:> Well, smart, but how can I tell where is the fact destination on a > given system? (even the same distro, such as CentOS, puts it into > different places in different releases)export FACTERLIB=$(sudo puppetd --configprint factdest) Or something like that. -- When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute, and it''s longer than any hour. That''s relativity. --Albert Einstein --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---