(#7726) Silence prtconf error message inside zones

prtconf will output an error message when run inside a zone, which
clutters up facter output. Redirected the stderr to /dev/null.
(#11328) Add virtualisation detection for OpenBSD

Extend the FreeBSD KVM detection as it's the same trick with "sysctl
hw.model" and use "sysctl hw.product" to detect VMware, Parallels,
VirtualBox and Xen HVM.
(#11328) Fix uptime detection on OpenBSD

Of the four or so uptime detection methods, the sysctl one is the
closest however OpenBSD lacks the -b option. Using -n instead the first
number in the output will be the epoch seconds, on OpenBSD this is all
you get, but with Darwin (and probably the other *BSD's) you get the
epoch seconds, microseconds and the pretty-printed output.

New test cases added and the old ones with the endian-specific packed
output are removed.
Merge pull request #69 from adrienthebo/ticket/master/7726

Ticket/master/7726

Reviewed-by: Ken Barber <ken@bob.sh>
(#7951) added OS support for Amazon Linux
Merge branch 'ticket/7951-amazon_linux' into 1.6.x

* ticket/7951-amazon_linux:
  (#7951) added OS support for Amazon Linux

Reviewed-by: Ken Barber <ken@bob.sh>
(#6728) Facter improperly detects openvzve on CloudLinux systems

Update the OpenVZ fact to be slightly more resilient in it's checking of
OpenVZ, so it doesn't clash with CloudLinux's LVE container system.

It checks if /proc/vz/ actually has anything in it, which if it doesn't,
is Cloudlinux. Uses the better OpenVZ detection methodology from #2242,
which is reading /proc/self/status for the envID which OpenVZ uses.

Conflicts:

	lib/facter/util/virtual.rb
	spec/unit/util/virtual_spec.rb
(#6728) Improve openvz/cloudlinux detection.

Added more cloudlinux detection, which has /proc/lve/list present on
cloudlinux hosts. Removed a default value from openvz_type detection,
which could lead to a virtual value of "unknown" if the openvz check
partially failed, which could cause other legitimate virtual tests to
be skipped.
Merge branch 'ticket/6728-fix-openvz-cloudlinux-misidentification' into 1.6.x

* ticket/6728-fix-openvz-cloudlinux-misidentification:
  (#6728) Improve openvz/cloudlinux detection.
  (#6728) Facter improperly detects openvzve on CloudLinux systems

Reviewed-by: Ken Barber <ken@bob.sh>
(#9404) Add cross-fact support to facter for DragonFly BSD.

The coverage for this commit includes the following facts:

- ps
- ip related facts
- macaddress
- memory*
- swap*
- hardwareisa
- processor*
(#9404) Efficiency cleanups for DragonFly facts.

Applied better usage of confines instead of conditionals and moved most code
into setcode where applicable.
(#9404) De-clumsify CPU count detection and swap detection on OpenBSD.

As part of the DragonFly BSD work is was noticed that the OpenBSD
implementation could benefit from the same techniques so this commit
aligns that.
(#9404) Add memory & update processor facts for DragonFly and OpenBSD.

Since there was no coverage for memory tests these have been added for
the two OS's.

Also since the mechanism for processor detection was changes this was
fixed for OpenBSD. A similar mechanism was added for the new DragonFly
BSD support.
Merge pull request #71 from kbarber/ticket/9404-dragonfly_bsd

Ticket/9404 dragonfly bsd
(#9830) Add sshecdsakey fact

 From version 5.7 onward, openssh has support for elliptic curve DSA keys[1,2].
 This commit adds a fact for those keytypes.

 1 - http://openssh.org/txt/release-5.7
 2 - http://tools.ietf.org/html/rfc5656
Merge branch 'ticket/9830-sshecdsakey' into 1.6.x

* ticket/9830-sshecdsakey:
  (#9830) Add sshecdsakey fact
(#9555) Change all cases of tabs and 4 space indentation to 2 space indentation.

Since 2 space indentation seems to be Puppets (and the ruby communities)
standard this patch converts all incorrect indentation to 2 spaces.

The fact that we were mixing the indentation was causing people to mix them
within files - sometimes using 4 space, sometimes 2 space. This single change
makes it consistent across all the code.
Merge pull request #74 from kbarber/ticket/9555-fix_whitespace

Ticket/9555 fix whitespace
Merge branch '1.6.x'

Conflicts:
	lib/facter/operatingsystem.rb
(#9555) Spec tests: Change all cases of tabs and 4 space indentation to 2 space indentation.

Since 2 space indentation seems to be Puppets (and the ruby communities)
standard this patch converts all incorrect indentation to 2 spaces.

The fact that we were mixing the indentation was causing people to mix them
within files - sometimes using 4 space, sometimes 2 space. This single change
makes it consistent across all the code.

This commit fixes any whitespace cleanups for the spec tests missed in the last commit.