summaryrefslogtreecommitdiffstats
path: root/lib/facter
Commit message (Collapse)AuthorAgeFilesLines
...
* | Rejustifying all of the whitespace in the facts, yay.Luke Kanies2008-06-1721-518/+511
| |
* | 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-174-19/+46
|/ | | | | | 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-092-13/+73
|\
| * Refactered ipmess.rb and util/ip.rb to support separate *BSD logic for *BSD ↵James Turnbull2008-06-092-13/+73
| | | | | | | | aliased interfaces.
* | Merge branch 'master' of git://github.com/jamtur01/facterLuke Kanies2008-06-024-88/+63
|\|
| * Refactor of netmask fact - fixes ticket #66James Turnbull2008-05-282-33/+38
| |
| * Fixes for ticket #60James Turnbull2008-05-222-55/+25
| |
* | 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.
* Added LSB Major Dist Release fact fixing #41James Turnbull2008-05-191-0/+16
|
* Added support for AIX fixing ticket #56James Turnbull2008-05-196-2/+55
|
* 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.
* Updated version. Moved most facts to seperate files.James Turnbull2008-05-1730-595/+466
|
* Moving the version and ruby facts to a separate file.Luke Kanies2008-05-151-0/+27
|
* 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.
* Fixing the last few occurrences of Facter::Resolution instead of ↵Luke Kanies2008-05-153-8/+8
| | | | Facter::Util::Resolution.
* Moving all of the support classes to util/.Luke Kanies2008-05-155-12/+12
| | | | | This makes it easier for our loader to distinguish between code that Facter uses and new facts.
* Creating a 'loader' class to handle loading facts for the collection.Luke Kanies2008-05-151-0/+127
|
* Adding the 'each' method back into Facter.Luke Kanies2008-05-141-0/+12
| | | | | It's used by iClassify, and maybe others. I haven't made Facter enumerable again, but the collection is.
* Fixing warnings and interfaces.Luke Kanies2008-05-143-3/+9
| | | | | | | | 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.
* Moving Facter's container behaviour into a separate class.Luke Kanies2008-05-141-0/+72
| | | | | | | | There's now no @@facts instance variable; instead, there's a collection, and it's responsible for keeping references to all of the facts. All of the old interface methods just delegate to the collection.
* Splitting the instance code into a Fact class.Luke Kanies2008-05-133-11/+105
| | | | | This allows the Facter class to become a module, and it is now much simpler.
* Adding all of the tests for the Facter::Resolution class.Luke Kanies2008-05-131-72/+33
|
* Reorganizing my new tests so they match the autotest discovery.Luke Kanies2008-05-131-2/+0
|
* Simplifying Confine a bitLuke Kanies2008-05-131-16/+4
|
* Splitting the different classes in Facter up, and adding some tests.Luke Kanies2008-05-132-0/+207
| | | | | The Confine and Resolution classes are now in separate files, and I've got tests for Confine.
* fixing whitespaceLuke Kanies2008-05-131-30/+29
|
* Closes #1145 - fixed bad interface names by replacing : with _James Turnbull2008-03-201-3/+5
|
* Merge commit 'turnbull/master'Luke Kanies2008-02-182-118/+104
|\ | | | | | | | | | | 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
| |
| * Fixed #46 - refactor ipmess.rbJames Turnbull2008-02-161-108/+23
| |
* | Merge branch 'os_split'Luke Kanies2008-02-1716-144/+833
|\ \ | |/ |/| | | | | | | Conflicts: lib/facter/ipmess.rb
| * Switching from test/unit to rspec, and fixing a coupleLuke Kanies2008-02-172-4/+6
| | | | | | | | of small test failures.
| * Added new filesJames Turnbull2008-02-0810-0/+773
| |
| * Further updates to split facts and move support functionsJames Turnbull2008-02-081-1/+1
| |
| * Split out facts from facter.rb and moved all support code to utilJames Turnbull2008-02-086-130/+53
| |
* | Added support for multiple interfaces, macaddress and netmask facts for ↵James Turnbull2008-02-071-5/+57
|/ | | | Linux, *BSD, and Solaris
* Added Mandrake support for operatingsystem fact - closed ticket #47James Turnbull2007-12-092-1/+47
| | | | | | Fixed ticket #45 Added netmask.rb closing ticket #46
* Added index to imess.rb fixing Ticket #43.James Turnbull2007-11-081-15/+19
|
* Fixed ticket #44James Turnbull2007-11-051-2/+2
|
* Revert "Adjusted :kernel confine to make it more in line with others"James Turnbull2007-09-161-12/+12
| | | | This reverts commit c5e6f602ae71d43ec58b65ec6b2f4f540bc27649.
* Adjusted :kernel confine to make it more in line with othersroot2007-09-161-18/+58
| | | | Replaced initial ipmess.rb with updated version and added BSD support
* Added support to return multiple interfaces and their IP addresses as facts. ↵James Turnbull2007-09-131-0/+45
| | | | Existing ipaddress fact which returns IP address of first interface on node is still available. Currently Linux only. Closes #6
* Drastically speeding up the lsb data retrieval, and refactoring the ↵luke2007-07-171-6/+28
| | | | | | dmidecode data so it is a bit cleaner and does not produce extraneous output or errors git-svn-id: http://reductivelabs.com/svn/facter/trunk@213 1f5c1d6a-bddf-0310-8f58-fc49e503516a
* Remove tabs; don't fail if dmidecode doesn't return expected informationlutter2007-06-241-5/+6
| | | | git-svn-id: http://reductivelabs.com/svn/facter/trunk@211 1f5c1d6a-bddf-0310-8f58-fc49e503516a
* Adding manufacturer code, as requested by digant on the Puppet Trac site.luke2007-06-181-0/+25
| | | | git-svn-id: http://reductivelabs.com/svn/facter/trunk@210 1f5c1d6a-bddf-0310-8f58-fc49e503516a
* Fixed problem with executing system_profiler and sw_vers on non Darwin hosts.mccune2007-06-131-17/+19
| | | | git-svn-id: http://reductivelabs.com/svn/facter/trunk@208 1f5c1d6a-bddf-0310-8f58-fc49e503516a