Facter version 1.5.1 is now released. There is quite a lot there including Microsoft Windows support for a number of facts! Thanks to Paul Nasrat for all his efforts on the Windows support and this release in general. You can download it from: http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet http://reductivelabs.com/redmine/projects/list_files/facter Here is the CHANGELOG: Added a Process.waitall thread when there''s a timeout, to avoid zombies. Set the timeout the host-based and resolve-based resolutions to 2. Fixed #1495 - CentOS version detection is now better. Fixed #1422 - Facter now defaults to 0 timeout. Fixes #1492 - added kernelversion fact Added virtual fact Modified the operatingsystem fact for Debian so it looks in /etc/debian_version instead of /proc/version. Fixes #1467 - macaddress not set on Ubuntu Adding a rake task for creating an archive. Adding better SuSE detection for both operatingsystem and release. Add sample test and strawman solution for IP parsing code Add module level tests for Facter::IPAddress Fixed #1425 - Solaris Feature #1487: Package creation scripts for Mac OS X Feature #1478: Allow specification of --bindir --sbindir --sitelibdir --mandir Feature #1475: CONFIG[''bindir''] CONFIG[''sbindir''] have undesirable defaults on Fixes #1467 - macaddress not set on Ubuntu Enabled a number of Windows facts - operatingsystem, domain, ipaddress, macaddress, kernel, ipconfig and others Regards James Turnbull -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
ADNET Ghislain
2008-Aug-27 12:51 UTC
[Puppet Users] Re: ANNOUNCE: Facter 1.5.1 - issue on freebsd
hello, i don''t know for you but i just tried it on freeBSD 4 and 6 and it does not detect anymore the hostname: domain => . facterversion => 1.5.1 fqdn => mainhost.. hardwareisa => i386 hardwaremodel => i386 hostname => mainhost interfaces => em0,em1,lo0 kernel => FreeBSD kernelrelease => 6.3-RELEASE kernelversion => 6.3 hostname -s and hostname report the domain without issue. -- Cordialement, Ghislain --~--~---------~--~----~------------~-------~--~----~ 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-Aug-27 13:35 UTC
[Puppet Users] Re: ANNOUNCE: Facter 1.5.1 - issue on freebsd
ADNET Ghislain wrote:> hello, > > i don''t know for you but i just tried it on freeBSD 4 and 6 and it does > not detect anymore the hostname:That''s odd. I have: $ uname -a FreeBSD freebsd.lovedthanlost.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 domain => lovedthanlost.net facterversion => 1.5.1 fqdn => freebsd.lovedthanlost.net hostname => freebsd operatingsystem => FreeBSD operatingsystemrelease => 6.2-RELEASE Regards James Turnbull -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
ADNET Ghislain
2008-Aug-27 16:17 UTC
[Puppet Users] Re: ANNOUNCE: Facter 1.5.1 - issue on freebsd
James Turnbull a écrit :> ADNET Ghislain wrote: > >> hello, >> >> i don''t know for you but i just tried it on freeBSD 4 and 6 and it does >> not detect anymore the hostname: >> > > That''s odd. I have: > > $ uname -a > FreeBSD freebsd.lovedthanlost.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: > Fri Jan 12 10:40:27 UTC 2007 > root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > domain => lovedthanlost.net > facterversion => 1.5.1 > fqdn => freebsd.lovedthanlost.net > hostname => freebsd > operatingsystem => FreeBSD > operatingsystemrelease => 6.2-RELEASE > > Regards > > James Turnbull > >Curious, those are virtual machines (jails) do anything changed in the hostname fact in this version ? -- Cordialement, Ghislain ADNET. AQUEOS. Attention ! Toute demande de support ou commande de domaine par email sera refusée, pour cela utilisez https://support.aqueos.net. Pour tout contact nos coordonnées : http://www.aqueos.com/aqueos-services-informatiques-societe.php Fax: 01.72.70.32.66 --~--~---------~--~----~------------~-------~--~----~ 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, 2008-08-27 at 15:16 +1000, James Turnbull wrote:> Facter version 1.5.1 is now released. There is quite a lot there > including Microsoft Windows support for a number of facts! > > Thanks to Paul Nasrat for all his efforts on the Windows support and > this release in general.I just built packages for Fedora/EPEL, they should show up fairly soon. I would be _very_ interested in finding somebody else to either take over this package in Fedora or at least comaintain it with me - the only snag is that you have to already be a Fedora contributor. James, can you pull the fedora/1.5.1 branch from git://github.com/lutter/facter.git to sync the RPM spec file with the latest used by Fedora ? David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Lutterkort wrote:> I would be _very_ interested in finding somebody else to either take > over this package in Fedora or at least comaintain it with me - the > only snag is that you have to already be a Fedora contributor.I''d be happy to help with packaging for facter (and puppet as well, if you''d like). I''m not very proficient with Ruby, which limits how well I can really maintain the software, but since the upstream development is strong I expect that I wouldn''t have much need to fix bugs in the code as much as I would just need to report them. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Never attribute to malice that which can be adequately explained by stupidity. -- Hanlon''s Razor
On Mon, 2008-09-08 at 19:07 -0400, Todd Zullinger wrote:> David Lutterkort wrote: > > I would be _very_ interested in finding somebody else to either take > > over this package in Fedora or at least comaintain it with me - the > > only snag is that you have to already be a Fedora contributor. > > I''d be happy to help with packaging for facter (and puppet as well, if > you''d like). I''m not very proficient with Ruby, which limits how well > I can really maintain the software, but since the upstream development > is strong I expect that I wouldn''t have much need to fix bugs in the > code as much as I would just need to report them.Excellent ! I''ve approved all your requests in pkgdb .. any reason you didn''t request Facter for EPEL-4 ? If you put in similar requests for puppet, I''ll approve them, too. So far, I''ve tried very hard to avoid patching the puppet source tarball - there have been a few, but mostly for very silly things. David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Lutterkort wrote:> If you put in similar requests for puppet, I''ll approve them, too. So > far, I''ve tried very hard to avoid patching the puppet source tarball - > there have been a few, but mostly for very silly things.Where feasible I am always happy to take fixes/etc upstream that help packagers. Cheers James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIxb5A9hTGvAxC30ARAhirAJ9l/bWemMX8udoBm7qaRjvxaA659QCfRMO1 0nQVzt/gKBd9bjC2dC3qVD0=GaP0 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 Tue, 2008-09-09 at 10:07 +1000, James Turnbull wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David Lutterkort wrote: > > If you put in similar requests for puppet, I''ll approve them, too. So > > far, I''ve tried very hard to avoid patching the puppet source tarball - > > there have been a few, but mostly for very silly things. > > Where feasible I am always happy to take fixes/etc upstream that help > packagers.And I am more than happy to push them off - so far patches in the RPM have been very short-lived, generally only for a release; there are none for 0.24.5 David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Lutterkort wrote:> Excellent ! I''ve approved all your requests in pkgdbThanks David.> any reason you didn''t request Facter for EPEL-4 ?I don''t have any EL-4 systems handy, so I''d have nothing to test updated packages with or attempt to verify bugs on. For the Fedora releases and EL-5, I use each of them at least a little, so I can test before pushing an update. :)> If you put in similar requests for puppet, I''ll approve them, too.Done. And thanks.> So far, I''ve tried very hard to avoid patching the puppet source > tarball - there have been a few, but mostly for very silly things.I have atitude as well. And it''s easier since upstream is quite active and friendly. ;) -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I have a very firm gun control policy. If there''s a gun around, I want to be in control of it. -- Clint Eastwood Pink Cadillac
Jeroen van Meeuwen (GMail)
2008-Sep-09 08:16 UTC
[Puppet Users] Re: ANNOUNCE: Facter 1.5.1
David Lutterkort wrote:> On Wed, 2008-08-27 at 15:16 +1000, James Turnbull wrote: >> Facter version 1.5.1 is now released. There is quite a lot there >> including Microsoft Windows support for a number of facts! >> >> Thanks to Paul Nasrat for all his efforts on the Windows support and >> this release in general. > > I just built packages for Fedora/EPEL, they should show up fairly soon. > > I would be _very_ interested in finding somebody else to either take > over this package in Fedora or at least comaintain it with me - the only > snag is that you have to already be a Fedora contributor. >I''ll take it, the request is in pkgdb ;-) Kind regards, Jeroen van Meeuwen -kanarip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ADNET Ghislain
2008-Sep-18 07:06 UTC
[Puppet Users] Re: ANNOUNCE: Facter 1.5.1 - issue on freebsd
i still have issue with the facter 1.5.1/2 on my freebsd boxes. It seems unable to find the ''domain'' any more. I finish by taking the domain from the ''search'' parameter in the resolv.conf wich is not good at all for me. i browsed the code and i cannot find significant differences between the 1.5.0 and 1.5.2 for determining the hostname. I see that facter use the ''hostname'' command to get the hostname. Would it be better to use: require "socket" Socket.gethostname as it is pure ruby and does not involve an external program ? Also in facter 1.5.2 if i modify the hostname code from: if name =~ /^([\w-]+)\.(.+)$/ hostname = $1 # the Domain class uses this $domain = $2 else hostname = name end to if name =~ /^([\w-]+)\.(.+)$/ hostname = $1 # the Domain class uses this $domain = ''mydomain.net'' else hostname = name end (see i assign $domain a static value) facter still do not report the domain name as mydomain.net and continue to look in /etc/resolv.conf. It seems the domain value do not return to the domain.rb file when called in hostname.rb or that it is overwritten. If i remove the part that search the resolv.conf then it work again. This part seems to ovverride the first one, eash call of Facter.add(:domain) overwrite the one that is just before it it seems. Also in the facter code in (lib/facter/domain.rb) resolv.conf part it take the comments instead of just ignore them, if i comment the search line it still use it: if line =~ /search\s+(\S+)/ value = $1 break end the regex do not filter comments. should be something like if line =~ /^\s*search\s+(\S+)/ value = $1 break end From the resolv.conf manual i have : search Search list for host-name lookup. The search list is nor- mally determined from the local domain name; by default, it contains only the local domain name. This may be changed by listing the desired domain search path following the search keyword with spaces or tabs separating the names. Most resolver queries will be attempted using each component of the search path in turn until a match is found. Note that this process may be slow and will generate a lot of network traffic if the servers for the listed domains are not local, and that queries will time out if no server is available for one of the domains. therefor how can this be used to have the hostname ? Or this should refer to the default hostname as returned by host or this is nothing related to it therefor it seems that this part is not usefull at all ? -- Cordialement, Ghislain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---