summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Updated CHANGELOG for 1.5.8rc1James Turnbull2010-08-181-28/+89
| |
* | Updated CHANGELOG rake taskJames Turnbull2010-08-181-1/+1
|/
* Merge branch 'ticket/master/4156-openvz' into nextRein Henrichs2010-08-102-2/+2
|\
| * [#4156] Updating spec to match Kai's changeRein Henrichs2010-08-061-1/+1
| | | | | | | | | | | | | | Updating the spec to check for the existence of /proc/vz to match the change in the previously applied patch. Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
| * [#4156] Applying patch by KaiRein Henrichs2010-08-061-1/+1
|/ | | | | | | | | | Patch from the ticket[1] checks for /proc/vz instead of /proc/vz/vzinfo. NOTE that this causes a spec failure since the spec was not changed to match. [1] http://projects.reductivelabs.com/issues/4156 Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
* Merge branch 'ticket/master/4441-windows-ipaddress'Rein Henrichs2010-08-061-2/+4
|\
| * Properly wrapped the windows ipaddress fact in a setcode block.Nick Lewis2010-07-211-2/+4
| |
* | Merge remote branch 'kubicek/ticket/master/4352'Rein Henrichs2010-08-064-5/+42
|\ \
| * | Fix #4352 - Support for detecting KVM virtuals on FreeBSDJiri Kubicek2010-07-263-4/+18
| | | | | | | | | | | | | | | | | | There was no support for detecting FreeBSD running in KVM as a virtual in facter. This patch detects KVM by getting "hw.model" kernel state via sysctl. Jails running in KVM are also correctly detected as "jail" not "kvm". Signed-off-by: Jiri Kubicek <jiri.kubicek@kraxnet.cz>
| * | Fix #4352 - Support for detecting virtuals (jails) on FreeBSDJiri Kubicek2010-07-264-1/+24
| | | | | | | | | | | | | | | | | | There was no support for detecting FreeBSD jails as a virtual in facter. This patch detects jail by getting "security.jail.jailed" kernel state via sysctl. Signed-off-by: Jiri Kubicek <jiri.kubicek@kraxnet.cz>
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge branches 'ticket/master/2330-uptime', 'ticket/master/4062-meego' and ↵Rein Henrichs2010-08-0614-54/+273
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 'ticket/master/4453-rakefile'
| | | * | | Refactor rakefile to use spec.ops, separate rcov taskRein Henrichs2010-08-031-16/+16
| | | |/ /
| | * | | [#4062] Implement operating system facts for MeeGoRein Henrichs2010-08-032-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements operatingsystem and operatingsystemrelease for MeeGo From Rohan McGovern's patch: MeeGo ( http://meego.com/ ) uses an /etc/meego-release file similar to the files found on many Linux distros. Currently, MeeGo falls back on “Linux” as the operatingsystem fact. It’d be useful to have a proper value. Attached patch implements it. Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
| | * | | Merge branch '2330-uptime-gets-computed-twice-on-systems-with-/proc/uptime' ↵Rein Henrichs2010-08-0311-37/+253
| | |\ \ \ | | | |/ / | | |/| | | | | | | into next
| * | | | [#2330] Update uptime calculation to use /bin/catRein Henrichs2010-08-051-7/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Per #4466, Ruby has trouble reading files in /proc [1]. The alternative is to use `bin/cat`. * Also refactored methods to explicitly redirect standard error to /dev/null for *nix and BSD system calls. [1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/155745
| * | | [#2330] Uptime should not make redundant system callsRein Henrichs2010-08-0311-37/+253
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite of uptime facts and supporting utility methods. Works on unix, BSD, windows. No longer makes redundant system calls. Uses Facter::Util::Uptime utility methods: * Implemented uptime_seconds_unix using /proc/uptime or who -b on unix, sysctl on BSD. Added unit tests for the behaviors of get_uptime_seconds_unix: read from proc/uptime, read uptime from "sysctl -b kern.boottime", read uptime from "who -b", and return nil if nothing else works. * Implemented uptime_seconds_win using the Win32 API. Facts implemented: * uptime_{seconds,hours,days} Returns the respective integer value. * uptime Returns human readable uptime statistic that preserves original behavior. Examples: 3 days 1 day 5:08 hours 0:35 hours
* | | Facter::Manufacturer - sunos test + simplified regexMarc Fournier2010-08-042-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | The 2nd regex (with the 0x\d+) got removed because it appears to never be used, even on SunOS, for which it has been introduced (99833a1b / #1793). The 3dn regex is changed to clearly confine the value between mandatory newlines/whitespaces.
* | | Facter::Manufacturer - test for SunOS and FreeBSDMarc Fournier2010-08-043-0/+98
|/ / | | | | | | | | This test compares a fact made with dmidecode (linux and bsd) with one using smbios (solaris).
* / Fixed #3929 - Added user confine to AIX memory factsJames Turnbull2010-06-181-7/+7
|/
* Adding HP-UX support to Facter's IP factsJames Turnbull2010-06-154-5/+83
| | | | Includes Rspec tests
* Fixed #3393 - Updates to Facter for MS WindowsDavid Schmitt2010-06-155-50/+115
| | | | | | | | | | This patch is originally by Daniel Berger <djberg96@gmail.com>, I changed using Facter.value instead of repeatedly testing Config['host_os'], removed Resolution::which, and fixed the specs. Thanks to Paul Nasrat for helping with cross-platform debugging. Signed-off-by: David Schmitt <david@dasz.at>
* Fixed #3403 - Added fact to query vlans; added spec testJonas Genannt2010-06-134-0/+52
|
* Merged Jos Backus patch to remove requirement for ftools altogetherJames Turnbull2010-06-121-19/+6
|
* Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7Bernhard Furtmueller2010-05-271-2/+2
|
* Fix #1365 - load all facts via cliR.I. Pienaar2010-05-271-3/+3
| | | | This changes the CLI to load all facts.
* Fixed failing test introduced by previous commitMarc Fournier2010-05-072-3/+3
|
* Fixes #3740 - split dmi output on regexMarc Fournier2010-05-072-2/+40
| | | | | | | | Splitting dmi output on the string "/^Handle/" didn't work, and caused the function to match the wrong key if it was found more than once. The intended behaviour of the function is restored by splitting the dmi output on the regex /^Handle/.
* Fix virtual unit test on non-linux by stubbing kernelPaul Nasrat2010-04-261-0/+1
| | | | Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Fixed #2313 - Somewhat essential hardware facts not available on OpenBSD, ↵James Turnbull2010-04-243-0/+65
| | | | | | patch included Thanks to Joe McDonagh for the patch.
* Fixed #2938 - interfaces that don't match ^\w+[.:]?\d+ are ignoredJames Turnbull2010-04-241-2/+2
| | | | Thanks to Tim Sharpe for the fix
* Added support for Slackware in operatingsystem and operatingsystemreleaseBostjan Skufca2010-04-242-0/+12
|
* Fixed #3542 - Ruby 1.9: broken unittest, String#each no longer existsJames Turnbull2010-04-241-0/+1
| | | | Thanks to Jos Backus for the fix.
* Fixed #3541 - Ruby 1.9: broken unittest, unexpected invocation: ↵James Turnbull2010-04-241-0/+1
| | | | | | Process.waitall() Thanks to Jos Backus for the fix.
* Fixed #3445 - Facter does not handle solaris branded zones properlyJames Turnbull2010-04-241-0/+1
| | | | Thanks to Pavol Dilung for the fix.
* Fix for #3411 install.rb should not put "." first in the tmp_dirsMartin Englund2010-04-241-1/+1
| | | | Signed-off-by: Martin Englund <martin@englund.nu>
* Fixed #3447 - OVS and OEL not matching in operatingsystemreleaseJames Turnbull2010-04-121-2/+2
|
* Fixed #3410 - Warnings in rake specJames Turnbull2010-04-121-1/+1
|
* 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-084-1/+35
| | | | 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-282-61/+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-302-1/+23
| | | | 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-103-6/+97
| | | | | | | | | 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
|
* Added package signing taskJames Turnbull2009-11-141-0/+14
|
* use popen3 in Resolution.exec to catch stderrPeter Meier2009-11-082-6/+61
| | | | | | | | | | | | | | | | | | | 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-072-1/+85
| | | | | We can now warn messages that will be passed to Kernel.warn if debugging is enabled.
* Add docs to Mac OS X package creation script and clean out old docs in the ↵Nigel Kersten2009-11-062-0/+15
| | | | preflight