summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes #3397 - is_virtual fact does not detect Linux-VServerJames Turnbull2010-04-121-1/+1
| | | | Thanks to Benedikt Bohm for the fix.
* Add kvm support to virtual factJohn Ferlito2010-03-082-1/+22
| | | | Based on initial patch by James Turnbull
* fixes #2573, #2085, #1291 - fixes domain and fqdn facts resolutionOhad Levy2010-03-083-7/+12
| | | | | | | | This patch removes the relationship between the domain fact and LDAP/NIS domains. domain fact relates to DNS domain - this will avoid the confusion caused by the LDAP/NIS domain (which might be different to the DNS domain name). Additionally, if hostname is already in long form, it won't try to build the fqdn fact from hostname and domain.
* Revert "use popen3 in Resolution.exec"Paul Nasrat2010-02-281-17/+6
| | | | | | | | | | | This reverts commit 33fb7709404e706801683e6c47ab7a0a5a1884b1. This has broken master for some facts (eg OS X facts), it also breaks facter platform support on win32 as popen3 does not work there. I'd like to get master working, backlog of patches applied and revisit exec. Paul
* Fix #2341 - stricter handling of dmidecode splitPaul Nasrat2010-01-301-1/+1
| | | | This adds a test to ensure we are not prematurely splitting on Handle
* Fix #2746 - add architecture support for GNU/kFreeBSDPaul Nasrat2010-01-171-2/+2
|
* Fix missing error casePaul Nasrat2010-01-171-0/+1
|
* Remove whitespace in DMI facts (#3008, #3011)Paul Nasrat2010-01-101-6/+11
| | | | | | | | | In addition to the stripping of the output of these facts this patchset: Refactor - Extracted function to enable easier testing. Tests - data driven tests for the dmidecode/smbios fact. Paul
* Only ignore IPs starting with 127.Ricky Zhou2010-01-101-6/+6
|
* use popen3 in Resolution.exec to catch stderrPeter Meier2009-11-081-6/+17
| | | | | | | | | | | | | | | | | | | So far messages to stderr haven't been catched by Facter::Util::Resolution.exec and were insted printed out to stderr. This will cause facter and even puppet to print to stderr themself, which is not very nice when running puppetd by cron, as you might get every run a mail if a command outputs to stderr. We are now wrapping the command execution with Open3.popen3 to catch stderr and passing them to the new introduced Facter.warn method. We are also catching multiline outputs chomping newlines and returning an array if there have been more than one line. Otherwise we return an array containing the different lines. This prevents in general cases as described in #2766 and should handle command execution in a bit saner way.
* introduce a warn mechanism for debuggingPeter Meier2009-11-071-1/+12
| | | | | We can now warn messages that will be passed to Kernel.warn if debugging is enabled.
* Incremented version and updated CHANGELOGJames Turnbull2009-09-111-1/+1
|
* Fix errors when alias IP's are definedKurt Keller2009-09-091-0/+7
|
* Fix 2455 - improve error handling on fact loadPaul Nasrat2009-09-092-1/+6
| | | | | | Fix facts added with empty blocks by handling calls to value when setcode not called Ensure we handle load failures more gracefully
* Fix broken solaris zone tests on EC2Paul Nasrat2009-09-092-20/+35
| | | | | | | | | This cleans up xen and vserver detection to enable us to stub out so when we happen to be running tests on xen we don't report as that. More cleanup is needed in this area but this should give us a green build. This renames the tests to be consistent with current naming convention
* Add Darwin netmask support on top of Jim's patchPaul Nasrat2009-08-232-2/+8
|
* Fix #2306 netmask and ipaddress on SunOS and BSDsJim Pirzyk2009-08-232-3/+3
|
* Fix bug where you'd get an 'undefined method' error if trying to access a ↵Diego Algorta2009-08-141-1/+1
| | | | fact's value when collection has not being yet initialized.
* Fix #2470 - duplicate entries in interfaces factPaul Nasrat2009-08-121-1/+1
| | | | | Solaris orders inet and inet6 seperately. This tests for and fixes this by uniqueing the list. Will probably need work when we get to ipv6 support.
* Update OS X minor version fact to cope with '10.x' values and provide test ↵Nigel Kersten2009-08-071-3/+7
| | | | | | coverage switch %x{} call to Facter::Util::Resolution.exec for better testing
* Merge commit 'pnasrat/tickets/master/2292' into mergePaul Nasrat2009-07-182-24/+38
|\
| * Issue #2292 Add tests for virtual factsPaul Nasrat2009-07-162-24/+38
| | | | | | | | Add tests and utility for virtual fact detection
* | Added path factJames Turnbull2009-07-161-0/+5
| |
* | Issue #2314 OpenBSD sysctlJoe McDonagh2009-07-162-13/+35
|/ | | | Use OpenBSD sysctl for manufacturer facts.
* Fix #2060 and cleanup operatingsystemreleaseTodd Zullinger2009-07-141-52/+12
|\ | | | | | | | | | | | | | | | | | | Patch from Todd Zullinger, rebased. Merge branch 'cleanup-operatingsystemrelease' of git://jet.mox.net/~tmz/facter into tickets/master/2060 Conflicts: lib/facter/operatingsystemrelease.rb
| * Fix operatingsystemrelease on Red Hat based distrosTodd Zullinger2009-03-091-1/+1
| | | | | | | | | | | | This allows operatingsystemrelease to properly determine the release for various Red Hat based distros, including the point portion of the release.
| * Consolidate operatingsystemrelease for CentOS, Fedora, oel, ovs, and RedHatTodd Zullinger2009-03-091-51/+11
| | | | | | | | These operating systems all use a similar format for the release file.
* | Updated CHANGELOG and bumped version for 1.5.6James Turnbull2009-06-051-1/+1
| |
* | Fixes #2307 - Minor fix for zone in virtual.rbJames Turnbull2009-06-041-1/+1
| |
* | Fix #2278 Revert fix for 2120Paul Nasrat2009-05-221-17/+11
| | | | | | | | | | | | | | | | | | Facter #2120 - Solaris support for Facter[virtual] This reverts commit 56760d34f070db4d7bb8e5fcfb7939fe3074bf49. This patch is broken as $? global will report last run process in the case of no vmware-checkvm binary
* | Tighten operatingsystemrelease regex on CentOS < 5Todd Zullinger2009-05-221-1/+1
| | | | | | | | | | | | | | | | | | The previous check for /5/ matched releases like 4.5, which is not the intent. The previous check was introduced in 095eb15e, and changed the pattern from /^5^/. Using /^5/ to match when the release begins with 5 seems saner. Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* | Fix operatingsystemrelease for CentOS < 5Todd Zullinger2009-05-221-1/+1
| | | | | | | | | | | | | | | | On older CentOS releases, a sed command is used to parse the release number from /etc/redhat-release. However, the command lacked the proper amount of backslashes to escape the parenthesis. Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* | Bumped release to 1.5.5rc2James Turnbull2009-05-191-1/+1
| |
* | Facter #2120 - Solaris support for Facter[virtual]Jim Pirzyk2009-05-151-11/+17
| | | | | | | | | | | | | | | | Initial support for virtual vmware fact on Solaris Tested on VMWare Fusion and OpenSolaris Paul
* | Fix #2155 - architecture facts on GentooBenedikt Böhm2009-05-131-3/+14
| | | | | | | | | | | | This corrects the architecture results for Gentoo on x86 and amd64 Patch from redmine
* | Refactor #2154 - Modified patch from Benedikt Bohm to simplify openvz and ↵James Turnbull2009-05-131-17/+13
| | | | | | | | vserver detection
* | Facter ticket 2214 - Fix facts for OVSPaul Nasrat2009-05-121-3/+5
| | | | | | | | | | | | | | | | Added tests for operatingsystem fact covering the two simple cases and a test for this specific interaction of release files We should take some time to add tests when we're adding or changing new operatingsystem facts
* | Fixed #2131 - Facter doesn't populate lsbmajdistrelease on OEL (also OEL/OVS ↵James Turnbull2009-05-125-5/+5
| | | | | | | | and other facts)
* | Facter fix #2231 typoPaul Nasrat2009-05-121-1/+1
| | | | | | | | Added a test to pickup typo and fix
* | Fix #2236 - don't use each_line on arraysPaul Nasrat2009-05-111-2/+2
| | | | | | | | | | | | | | | | This fixes up the syntax so that we can get 1.5.5 out, I've not done tests for this as we need to fixup the number of time we call out to ifconfig and the duplication with ip.rb. Paul
* | Fixed #1327 - Added SELinux factsJames Turnbull2009-05-101-0/+45
| |
* | Fixed #2119 - Added support for non-global Solaris 10 zonesJames Turnbull2009-05-101-0/+7
| |
* | Fixed #2215 - Added support for SUSE Linux Enterprise Desktop to ↵Andreas Zuber2009-05-102-1/+3
| | | | | | | | operatingsystem and operatingsystemrelease
* | Added support for ArchLinux to operatingsystem factJames Turnbull2009-05-101-0/+2
| |
* | Fixes #2169 Correctly recognises dom0 and domUsJames Turnbull2009-05-101-10/+14
| |
* | Partial fix for #2191 - Facter compatibility for Ruby 1.9James Turnbull2009-04-273-11/+11
| |
* | Fixing ifconfig warnings generated on OS XLuke Kanies2009-04-201-10/+6
| | | | | | | | | | | | | | | | The interface collection regex was leaving trailing ':' characters on the interface names, which meant individual interfaces weren't quite right. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixed #2132 - support for named interface aliases under linuxJames Turnbull2009-04-211-1/+1
| |
* | correctly compare values - fixes #2021Peter Meier2009-04-072-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | this ensures we can compare all kind of objects and not only instances of strings. It compares strings in a case-insensitive manner and converts symbols to strings. introducing this behavior required that we introduce a convert util method, to ensure that we convert the value correctly. Introduced this method in other places as well. This behavior change requires that we drop one test, which have become anyway deprecated.
* | Fixed #2080 - IPAddress resolutions should be reorderedJames Turnbull2009-03-171-41/+41
| |