summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fixed #6616 - Spec test failure for vmwareJames Turnbull2011-03-171-1/+1
|\ \ \
| * | | Fixed #6616 - Stubbing in VMware tests on LinuxJames Turnbull2011-03-151-1/+1
| |/ /
* | | Fixed #6719 TypoJames Turnbull2011-03-171-1/+1
| | |
* | | Merge remote branch 'adrien/tickets/next/2721' into nextJames Turnbull2011-03-172-3/+31
|\ \ \
| * \ \ Merge branch 'next' into tickets/next/2721Adrien Thebo2011-03-1512-28/+71
| |\ \ \
| * | | | (#2721) Merged patch from Brane GraAnarAdrien Thebo2011-03-082-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds support for Slamd64 and Bluewhite64 for the operatingsystem fact - Adds support for Slamd64 and Bluewhite64 for the operatingsystemrelease fact
* | | | | Merge remote branch 'adrien/tickets/next/5011' into nextJames Turnbull2011-03-171-0/+30
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | (#5011) Adds swap statistics for OSXAdrien Thebo2011-03-151-0/+30
| | |/ / | |/| | | | | | | | | | | | | | - Added swapfree and swapsize facts - Tests will now run correctly for osx swap tests
* / | | (#6719) Restricts virtualization types for zonesAdrien Thebo2011-03-151-1/+3
|/ / / | | | | | | | | | | | | - The virtual fact will only check if a system is a zone if the operating system is solaris.
* | | Merge remote branch 'barn/tickets/master/6714' into nextJames Turnbull2011-03-151-1/+1
|\ \ \
| * | | Remove Solaris from the list of confined systems. It won't get the original ↵Ben Hughes2011-03-151-1/+1
| | |/ | |/| | | | | | | lsb facts, and it's nonsensical too.
* | | Merge branch 'tickets/master/5699' into nextJames Turnbull2011-03-153-2/+12
|\ \ \
| * | | Fixed #5699 - Added processorcount support for S390xJames Turnbull2011-03-071-2/+5
| | | | | | | | | | | | | | | | Patch from Hector Rivas
| * | | Fixed #5699 - Added virtual support for s390x/ZlinuxJames Turnbull2011-03-072-0/+7
| | | | | | | | | | | | | | | | Patch modified from Hector Rivas
* | | | Merge branch 'ticket/master/6679' into nextJames Turnbull2011-03-121-0/+2
|\ \ \ \
| * | | | Fix #6679 - Added Scientific Linux to operatingsystem factJames Turnbull2011-03-111-0/+2
| | |/ / | |/| | | | | | | | | | Thanks to James Goddard for the patch
* | | | Further fix to #5485 - SELinux factsJames Turnbull2011-03-111-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Added new facts for all values returned by the sestatus command 2. Updated legacy selinux_mode fact with former value 3. Added note and ticket #6677 to remove legacy fact at Facter 2.0.0 4. Added tests for new facts and legacy fact
* | | | Merge branch 'tickets/master/6495' into nextJames Turnbull2011-03-091-10/+8
|\ \ \ \
| * | | | Fix for #6495 - Updated interface detectionJames Turnbull2011-03-091-10/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fixed IP return to not filter lo/localhost and return it as a proper interface 2. Fixed HP-UX netstat return to remove extraneous first line of naming. 3. Updated tests to reflect changes
* | | | (#5485) Made selinux_mode fact workAdrien Thebo2011-03-091-4/+3
| | | | | | | | | | | | | | | | | | | | Changed regular expression to be case insensitive for cross platform compatibility.
* | | | Fixed #5485 - Updated selinux_mode factJames Turnbull2011-03-091-4/+7
|/ / / | | | | | | | | | | | | | | | 1. Added tested 2. Refactored to use F:U:R.exec 3. Chomp trailing newline
* | | Fixed #5950 - Solaris ipaddress incorrect after bonding failureDominic Cleal2011-03-071-1/+1
| | |
* | | (#5666) windows support for facter/id.rbWilliam Van Hevelingen2011-03-071-1/+1
| | | | | | | | | | | | Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
* | | Merge branch 'tickets/next/5031'James Turnbull2011-03-071-1/+1
|\ \ \ | |/ / |/| |
| * | (#5031) Remove redundant puts from RDoc.usagePaul Berry2010-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | RDoc.usage prints the usage string. As a result, `puts RDoc.usage` is redundant and unnecessary. See http://ruby-doc.org/core/classes/RDoc.html#M004706.
* | | Merge branch 'tickets/master/6521'James Turnbull2011-03-072-6/+6
|\ \ \
| * | | Fixes #6521 and other Ruby 1.9 issuesJames Turnbull2011-03-023-8/+8
| | | | | | | | | | | | | | | | Tested on Ruby 1.9.2p180
* | | | Merge commit '84fa3c440edefd117ce8a7fa5fb13d76b66ec7db'James Turnbull2011-03-071-2/+2
|\ \ \ \ | |_|_|/ |/| | |
| * | | (#6525) change semicolons to 'then' in case statement for ruby 1.9.2 ↵Matt2011-03-051-2/+2
| |/ / | | | | | | | | | compatibility
* | | (#2270) add IPv6 support to facter core.Daniel Pittman2011-02-173-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that IPocalypse has happened, IPv6 support in Facter core would be nice to have. So, we add the appropriate code to start handling that. The ipaddress6 fact as supplied included some smart code to try determining the "primary" address using DNS to resolve the AAAA record for the host FQDN. While this was smart, it actually didn't work: facter prefers the longest confine list, so the *stupid* mechanisms that were kernel-specific would override the smarter and more portable mechanisms. We strip that code out for now, which also brings this into line with the existing ipaddress fact; improving both would be good, but it should be uniform. Paired-With: Matt Robinson <matt@puppetlabs.com> Paired-With: Max Martin <max@puppetlabs.com>
* | | (#2270) Remove DWIM code from ipaddress on Darwin.Daniel Pittman2011-02-171-32/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | This mirrors the behaviour of the newer code, and eliminates some DWIM work we do on a single, specific platform that should, better, be done on a global platform. This would be reintroduced globally, applied to all platforms, or otherwise rebuilt from a consistent base of specified behaviour. Paired-With: Matt Robinson <matt@puppetlabs.com> Paired-With: Max Martin <max@puppetlabs.com>
* | Fix #4755: add support for GNU/kFreeBSD platform where missing.Marc Fournier2011-01-3114-23/+27
| | | | | | | | | | | | | | | | | | Merged manually to the current state of the art. Minimal conflicts resolved by adding both Darwin and GNU/KFreeBSD to the confine lines. Author: Marc Fournier <marc.fournier@camptocamp.com> Signed-off-by: Daniel Pittman <daniel@puppetlabs.com> Signed-off-by: Rick Bradley <rick@rickbradley.com>
* | (#5510) Facter should load custom fact definitions in filename order.Rick Bradley2011-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ruby's Dir.entries will return files in different orders depending on the OS and/or filesystem. As a result Facter::Util::Loader will load ruby custom fact definitions in different orders on different platforms. Specs to expose the bugs, and code to ensure that custom fact files are loaded in alphabetical order. Addresses redmine issue #5510 http://projects.puppetlabs.com/issues/5510 Signed-off-by: Rick Bradley <rick@rickbradley.com> Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
* | (#5086) Try using kstat before falling back to 'who -b' to determine uptime.Jacob Helwig2011-01-241-1/+11
| | | | | | | | | | | | | | | | | | 'who -b' doesn't report the year of the last system boot on (at least) Solaris 10, and OpenSolaris 2009.06. Try using 'kstat -p unix:::boot_time', which reports as seconds since the epoch on these systems before falling back to 'who -b'. Reviewed-by: Paul Berry <paul@puppetlabs.com>
* | (#4575) win32 support for manufacturer, productname, & serialnumberWilliam Van Hevelingen2010-12-212-0/+24
| | | | | | | | Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
* | (#1423) Memory facts for SolarisDominic Cleal2010-12-062-7/+56
| | | | | | | | | | Add total memory from prtconf output, free from vmstat plus swap free and total from swap -l listing.
* | (#4754) Change is_virtual logic to not enumerate virtual typesMatt Robinson2010-11-301-2/+1
| | | | | | | | | | | | | | | | While looking at the patch for adding parallels to the virtual types David Schmitt noticed that it might be easier just to list the types that are NOT virtual since there's fewer of them. Paired-with: Nick Lewis
* | (#4754) Add support for Darwin and Parallels VM to "virtual" factDonavan Miller2010-11-301-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for Parallels VM guest detection with existing operating systems. Detects Parallels based on hardware vendor name and pci id. The Parallels vendor id does not seem to be listed in most pci.ids. Adds resolution for "virtual" fact in the Darwin kernel. This uses the existing Facter::Util::Macosx module to resolve system profiler data. Both vendor name and vendor id values are checked. Resolution appears to vary based on VM Host product. Signed-off-by: donavanm <donavan@desinc.net>
* | (#5325) Manufacturer and product name on SPARCDominic Cleal2010-11-222-0/+22
| | | | | | | | | | Use prtdiag output on Solaris/SPARC to determine manufacturer and productname as smbios is unavailable.
* | (#4989) Add xendomains factRein Henrichs2010-11-092-0/+20
| | | | | | | | | | Parses `/usr/sbin/xm list` and returns a comma-separated list of domains. Based on a patch submitted by Jonas Genannt.
* | Merge remote branch 'lusis/next' into nextPaul Berry2010-11-091-0/+13
|\ \
| * | JSON support. Works in 1.9.1. Warnings in 1.9.2. LoadError on 1.8.7 for some ↵John E. Vincent2010-11-041-0/+13
| | | | | | | | | | | | reason
* | | Merge remote branch 'stschulte/feature/master/5040' into nextPaul Berry2010-11-092-3/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * | | (#5040) fact virtual should detect hpvmStefan Schulte2010-11-032-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With HP-UX you can build virtual machines that are often refered to as HP-VMs. This patch detecs HP-VMs by introducing a new function hpvm? that will check the output of /usr/bin/getconf MACHINE_MODEL. This should not depend on any tools that might be not installed. If inside a HP-VM the command will say something like ia64 hp server Integrity Virtual Machine while on real hardware the output could be ia64 hp server rx660 so searching for "Virtual Machine" should work. Currently it only works if the guest is also running HP-UX. (I guess this is the most common usecase).
* | | | Merge remote branch 'stschulte/ticket/master/5016' into nextPaul Berry2010-11-091-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * | | (#5016) is_virtual should be true on solaris zonesStefan Schulte2010-11-031-1/+1
| |/ / | | | | | | | | | | | | | | | | | | While the fact virtual recognised solaris zones before, the is_virtual fact did not. With this patch applied is_virtual returns true on (non-global) zones
| | |
| \ \
*-. | | Merge remote branches 'pnasrat/tickets/master/4889' and ↵Rein Henrichs2010-10-181-2/+2
|\ \| | | |_|/ |/| | | | | 'pnasrat/tickets/master/4956' into next
| * | Issue #4889 Fact values should all be stringsPaul Nasrat2010-10-071-2/+2
| |/ | | | | | | Fix is_virtual fact to return strings rather than bools.
* | maint: Fix merge errorRein Henrichs2010-10-071-2/+0
| |
* | Merge branch 'ticket/master/4552' into nextRein Henrichs2010-10-053-1/+40
|\ \ | | | | | | | | | | | | | | | Conflicts: bin/facter lib/facter/application.rb