| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
- ifconfig on solaris will only return the mac address if run as root.
netstat -np will provide the information to any user.
|
| |
|
| |
|
|
|
|
|
| |
If xend is not running, xm list writes to stderr and facter propagates
this to the user. Redirect stderr to /dev/null.
|
|
|
|
|
| |
The arp command is in /sbin on Fedora/RHEL, not /usr/sbin. Using
Facter::Util::Resolution.exec is preferable to hard-coding the path.
|
| |
|
|\
| |
| |
| |
| |
| | |
* tickets/next/6716-osx-ipv6-macaddress:
Clean up indentation, and alignment in macaddress_spec.rb
(#6716) fix facter issues on OSX with ipv6 in macaddress.rb.
|
| |
| |
| |
| |
| |
| | |
Due to "netstat -rn" returning multiple protocols (IPv4 and IPv6) the
"default_interface" can get more than one entry in to it, causing the
macaddress resolving to break. This limits it to just one interface.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The fact now checks for an EC2 ARP or in the EU Zone for an EC2 MAC
This should mean the fact's return is much more robust
The fact also now supports returning userdata (which is a bit ugly
given Facter returns strings but a good bookmark for refactor in 2.0)
|
| |
| |
| |
| |
| | |
Added facts arp (like the ipaddress etc) facts
Added facts arp_interfacename
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The EC2 fact is completely broken at the moment:
* Timeout::Error isn't caught by rescue (due to how it inherits)
* The issue of wrong open semantics outlined here, this is causing hidden immediate failure
* The fact is going to cause a 2 second wait to every facter run
Whilst the following patch fixes the first two, I'm not sure we want to take
the timeout hit, we also want to add tests as even simple ruby code can get
logic errors such as the open().
Signed-off-by: Paul Nasrat <pnas...@googlemail.com>
|
| |
| |
| |
| |
| |
| |
| | |
Added support for VMWareESX and ESXi to operatingsystem and
operatingsystemrelease facts
Added appropriate tests
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There's no easy defined way of getting memory information from the command
line.
Copying mainly the OpenBSD facts, but having to pull in memory free from
the vm_stat utility, and parsing the weird vm.swapusage sysctl value for
swap. Parsing "top -l 1 -n 0" seemed an option, but that took over a
second to run each time, so this appears cheaper.
|
|\ \ |
|
| |/ |
|
| | |
|
|\ \ |
|
| |/ |
|
| | |
|
|\ \ |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Adds support for Slamd64 and Bluewhite64 for the operatingsystem
fact
- Adds support for Slamd64 and Bluewhite64 for the
operatingsystemrelease fact
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | | |
- Added swapfree and swapsize facts
- Tests will now run correctly for osx swap tests
|
|/ / /
| | |
| | |
| | |
| | | |
- The virtual fact will only check if a system is a zone if the
operating system is solaris.
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | | |
lsb facts, and it's nonsensical too.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Patch from Hector Rivas
|
| | | |
| | | |
| | | |
| | | | |
Patch modified from Hector Rivas
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | | |
Thanks to James Goddard for the patch
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Changed regular expression to be case insensitive for cross platform
compatibility.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
1. Added tested
2. Refactored to use F:U:R.exec
3. Chomp trailing newline
|
| | | |
|
| | |
| | |
| | |
| | | |
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Tested on Ruby 1.9.2p180
|
|\ \ \ \
| |_|_|/
|/| | | |
|
| |/ /
| | |
| | |
| | | |
compatibility
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'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>
|