| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Patch removes reliance on clock ticks and instead queries for last boot time and subtracts from Time.now
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When Facter returns operatingsystem as "oel" or "ovs", the
operatingsystemrelease fact does not catch these properly, causing an
error.
Specs added to catch failure and case statement updated to catch "oel"
and "ovs" as well as "OEL" and "OVS"
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* getTickCount.call() is not an epoch time value so compute_uptime
is not necessary
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If rdoc/usage fails to load, tell the user why and fail. If another
failure happens, report the error message and fail.
Paired With: Jacob Helwig
Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify the binary by moving all application specific code into a new
Facter::Application module. This module is then refactored to use
OptionParser and to simplify invocation logic, while maintaining
existing behavior.
|
| | | | |
| \ \ | |
|\ \ \ \
| | |/ /
| |/| | |
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify the binary by moving all application specific code into a new
Facter::Application module. This module is then refactored to use
OptionParser and to simplify invocation logic, while maintaining
existing behavior.
|
|\ \ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | | |
Resolution.exec used to ensure that any shell errors are suppressed.
|
| | |
| | |
| | |
| | |
| | | |
The reverted patch contains a fix for #1291 that is desired. This commit
reintroduces that change.
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a revert of ticket #2573, which introduces a reverse DNS lookup
to the resolution of fqdn. As per #3898, this does not corrently return
the fqdn on all systems.
This reverts commit dca615c98b864d75e2ac5899d98d04a2bd979eba.
|
|\| | |
|
| |\ \ |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When Facter returns operatingsystem as "oel" or "ovs", the
operatingsystemrelease fact does not catch these properly, causing an
error.
Specs added to catch failure and case statement updated to catch "oel"
and "ovs" as well as "OEL" and "OVS"
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Patch removes reliance on clock ticks and instead queries for last boot time and subtracts from Time.now
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
|
| |/
| |
| |
| |
| |
| |
| | |
* getTickCount.call() is not an epoch time value so compute_uptime
is not necessary
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
|
|\ \ |
|
| | |
| | |
| | |
| | | |
* With tests for 9.8.0, 10.3.0 and 10.6.4
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Regexp tested the s_context or VxID field if /proc/self/status and
returned false for 0 and true for any other number. 0 indicates a host,
which is still virtual.
Fix changes regexp to correctly report hosts as virtual. Tested against
vserver 2.1 and 2.3.
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | | | |
| \ \ | |
| \ \ | |
| \ \ | |
|\ \ \| |
| | | | |
| | | | |
| | | | | |
'ticket/master/4453-rakefile'
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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>
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|
|
|
| |
Includes Rspec tests
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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/.
|
|
|
|
|
|
| |
patch included
Thanks to Joe McDonagh for the patch.
|
|
|
|
| |
Thanks to Tim Sharpe for the fix
|
| |
|
|
|
|
| |
Thanks to Jos Backus for the fix.
|
|
|
|
| |
Thanks to Pavol Dilung for the fix.
|
| |
|