Hi all, I am creating a recipe for rhel boxes which needs to determine what type of install is present (server or client). I thought I would use the facter fact lsbdistid for this purpose but when I run "facter lsbdistid" from the command line nothing is returned. If I just run facter and grep for lsbdistid, what I am looking for is returned. Does anyone know why this might be? Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
is the redhat-lsb rpm installed? On May 19, 2009, at 1:48 PM, kymas wrote:> > Hi all, I am creating a recipe for rhel boxes which needs to > determine what type of install is present (server or client). I > thought I would use the facter fact lsbdistid for this purpose but > when I run "facter lsbdistid" from the command line nothing is > returned. If I just run facter and grep for lsbdistid, what I am > looking for is returned. Does anyone know why this might be? Thanks > for your help. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, redhat-lsb-3.1-12.3.EL is installed. On May 19, 3:55 pm, Jason Rojas <ja...@nothingbeatsaduck.com> wrote:> is the redhat-lsb rpm installed? > > On May 19, 2009, at 1:48 PM, kymas wrote: > > > > > Hi all, I am creating a recipe for rhel boxes which needs to > > determine what type of install is present (server or client). I > > thought I would use the facter fact lsbdistid for this purpose but > > when I run "facter lsbdistid" from the command line nothing is > > returned. If I just run facter and grep for lsbdistid, what I am > > looking for is returned. Does anyone know why this might be? Thanks > > for your help.--~--~---------~--~----~------------~-------~--~----~ 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
2009-May-19 21:05 UTC
[Puppet Users] Re: facter lsbdistid returns no result
This is a known issue with Facter 1.5.x. Not all facts return when run using: # facter factname The fact is still available when you run facter without the name of the fact. If you want to use the value of a fact in another fact then there are a number of examples in the facter code. Regards James Turnbull http://www.james-turnbull.com On 20/05/2009, at 6:59 AM, kymas <kymas69@gmail.com> wrote:> > Yes, redhat-lsb-3.1-12.3.EL is installed. > > On May 19, 3:55 pm, Jason Rojas <ja...@nothingbeatsaduck.com> wrote: >> is the redhat-lsb rpm installed? >> >> On May 19, 2009, at 1:48 PM, kymas wrote: >> >> >> >>> Hi all, I am creating a recipe for rhel boxes which needs to >>> determine what type of install is present (server or client). I >>> thought I would use the facter fact lsbdistid for this purpose but >>> when I run "facter lsbdistid" from the command line nothing is >>> returned. If I just run facter and grep for lsbdistid, what I am >>> looking for is returned. Does anyone know why this might be? >>> Thanks >>> for your help. > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok, thanks for the information. On May 19, 4:05 pm, James Turnbull <ja...@lovedthanlost.net> wrote:> This is a known issue with Facter 1.5.x. Not all facts return when > run using: > > # facter factname > > The fact is still available when you run facter without the name of > the fact. > > If you want to use the value of a fact in another fact then there are > a number of examples in the facter code. > > Regards > > James Turnbullhttp://www.james-turnbull.com > > On 20/05/2009, at 6:59 AM, kymas <kyma...@gmail.com> wrote: > > > > > Yes, redhat-lsb-3.1-12.3.EL is installed. > > > On May 19, 3:55 pm, Jason Rojas <ja...@nothingbeatsaduck.com> wrote: > >> is the redhat-lsb rpm installed? > > >> On May 19, 2009, at 1:48 PM, kymas wrote: > > >>> Hi all, I am creating a recipe for rhel boxes which needs to > >>> determine what type of install is present (server or client). I > >>> thought I would use the facter fact lsbdistid for this purpose but > >>> when I run "facter lsbdistid" from the command line nothing is > >>> returned. If I just run facter and grep for lsbdistid, what I am > >>> looking for is returned. Does anyone know why this might be? > >>> Thanks > >>> for your help.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
2009/5/19 James Turnbull <james@lovedthanlost.net>:> > This is a known issue with Facter 1.5.x. Not all facts return when > run using: > > # facter factname >We will address the root cause for 1.6.x and 2.0, the changes are just too invasive for 1.5.x Paul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---