summaryrefslogtreecommitdiffstats
path: root/lib/facter/util
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring the IP support, and fixing #1846.Luke Kanies2009-01-151-29/+49
| | | | | | | | | | | | | | | | I've made the IPMess stuff a lot less messy, and refactored a lot of the util/ip module, including naming it more sensibly. The biggest changes are that I moved the big case statement into a constant and then used a bit of dispatch-style logic to use it, and I eliminated a bunch of duplicate code in the ipmess.rb file. Added some test data for FreeBSD and fixed a bug in my map logic pointed out by Paul Nasrat. I've also fixed #1846, in that the interface list now s/:/_/g. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing indentation everywhereLuke Kanies2009-01-156-127/+124
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1793 - Added more Solaris 10 factsJames Turnbull2008-12-221-5/+13
|
* Fixes #1582 - Fix MAC address reporting for Linux bonding slave interfacesJames Turnbull2008-09-201-14/+43
|
* Fixed #1559 - update to dmidecode factJames Turnbull2008-09-051-2/+2
|
* Added a Process.waitall thread when there's a timeout, to avoid zombies.Luke Kanies2008-08-181-0/+5
| | | | Without this call, every time there's a timeout, we'll get a zombie.
* Merge commit 'pnasrat/tickets/1422'Luke Kanies2008-08-181-1/+1
|\
| * Facter fix #1422, no default timeoutPaul Nasrat2008-08-181-1/+1
| |
* | Add unit rspec tests for ticket 1425Paul Nasrat2008-08-131-3/+13
| |
* | Add sample test and strawman solution for IP parsing codePaul Nasrat2008-08-111-8/+14
| |
* | Fix ticket 1425 on SolarisPaul Nasrat2008-08-081-1/+7
| |
* | Remove duplicated code pathsPaul Nasrat2008-08-081-36/+4
|/ | | | Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Bug #1434 Don't execute which on windowsPaul Nasrat2008-07-171-2/+7
|
* Merge branch 'master' of git://reductivelabs.com/facterJames Turnbull2008-07-081-0/+2
|\
| * Adding a default case for the manufacturer information.Luke Kanies2008-07-011-0/+2
| |
* | Fixed formattingJames Turnbull2008-07-081-8/+8
|/
* Further fixes #1378 - updated dmidecode for NetBSDJames Turnbull2008-06-221-1/+5
|
* Fixes #1378 - update manufacter.rb facts to support BSDJames Turnbull2008-06-211-4/+11
|
* Partial fix for #1345 - BSD interfaces with aliases now select the first ↵James Turnbull2008-06-211-3/+3
| | | | address by default
* Retaining 'timeout' as the settor, but using 'limit' as the getter.Luke Kanies2008-06-201-2/+9
| | | | | | | I don't like using Fact.add(:fact, :limit => 5), so I added a little extra code to allow us to continue using ':timeout => 5', but use 'limit' for retrieving the value, to avoid the conflict Steve Hajducko is seeing.
* Changed 'timeout' option to 'limit'Steven Hajducko2008-06-191-3/+3
| | | | | This was done to avoid a possible variable scoping issue that was occuring on some AIX systems.
* Fixing some warnings in various classes.Luke Kanies2008-06-192-2/+2
|
* Refactoring how recursive searches are detected.Luke Kanies2008-06-171-19/+37
| | | | | | Using a yield hook instead of just setting @searching to be true, which should be more consistent because @searching will now always be turned off at the end of the search.
* Refactored so each fact resolution can specify a separate timeout,Luke Kanies2008-06-173-18/+45
| | | | | | but the default is still 0.5. Set the timeout on the AIX kernelrelease fact to 5 seconds.
* Merge commit 'turnbull/master'Luke Kanies2008-06-091-5/+35
|\
| * Refactered ipmess.rb and util/ip.rb to support separate *BSD logic for *BSD ↵James Turnbull2008-06-091-5/+35
| | | | | | | | aliased interfaces.
* | Merge branch 'master' of git://github.com/jamtur01/facterLuke Kanies2008-06-022-44/+57
|\|
| * Refactor of netmask fact - fixes ticket #66James Turnbull2008-05-281-0/+36
| |
| * Fixes for ticket #60James Turnbull2008-05-221-44/+21
| |
* | Adding a timeout to fact retrieval, fixing #56.Luke Kanies2008-05-201-1/+11
|/ | | | | The timeout is currently 0.5 seconds, which should generally be enough time.
* Switching to a search path registration system.Luke Kanies2008-05-161-12/+3
| | | | | Facter no longer knows anything about Puppet, so there's no inter-dependency issue.
* Moving the puppet-related loading tests to an integration test.Luke Kanies2008-05-161-3/+11
| | | | | | | | | I was previously creating a mock Puppet class, and this actually uses Puppet's code. Note that this use of Puppet creates some additional ordering problems, which I'm going to fix in the next commit by undoing all of this work. :)
* Retrieval of fact values now autoloads facts.Luke Kanies2008-05-161-1/+1
| | | | | I was only autoloading in certain circumstances, but it now autoloads any time you try to load a fact directly.
* Switching Facter to using the new loader.Luke Kanies2008-05-152-47/+35
| | | | | This should make it possible to move all facts to separate files and only load them on demand.
* Moving all of the support classes to util/.Luke Kanies2008-05-155-0/+461
| | | | | This makes it easier for our loader to distinguish between code that Facter uses and new facts.
* Fixing warnings and interfaces.Luke Kanies2008-05-141-1/+7
| | | | | | | | I was getting warnings on OS X for the IPmess stuff; that's now fixed. Also, I got rid of the internal usage of the Facter.<factname> interface, as I want to get rid of it.
* Merge commit 'turnbull/master'Luke Kanies2008-02-181-0/+62
|\ | | | | | | | | | | Conflicts: lib/facter/ipmess.rb
| * Fixed Solaris detection of lo0 for ticket #46James Turnbull2008-02-161-1/+1
| |
| * Added require util ip.rb fileJames Turnbull2008-02-161-0/+62
| |
* | Added new filesJames Turnbull2008-02-083-0/+153
|/
* Fixed problem where facter referenced puppet plist utility library.mccune2007-06-131-2/+2
| | | | git-svn-id: http://reductivelabs.com/svn/facter/trunk@207 1f5c1d6a-bddf-0310-8f58-fc49e503516a
* Added a bunch of information from system_profiler -xml. In particular, ↵mccune2007-06-133-0/+477
sp_serial_number is interesting. Also added values from sw_vers, to get the commonly used Mac OS X version and build identifier. git-svn-id: http://reductivelabs.com/svn/facter/trunk@206 1f5c1d6a-bddf-0310-8f58-fc49e503516a