Announce: Facter 1.6.2. available

16 views
Skip to first unread message

Michael Stahnke

unread,
Oct 10, 2011, 1:37:55 PM10/10/11
to puppet...@googlegroups.com, puppe...@googlegroups.com
Facter 1.6.2 is a maintenance release containing fixes, updates and
refactoring. Primary new features include updated facts for DragonFly
BSD, Amazon Linux and Windows.
A few other facts have been added and updated. Full release notes below.

This release is available for download at:
http://puppetlabs.com/downloads/facter/facter-1.6.2.tar.gz

See the Verifying Puppet Download section at:
http://projects.puppetlabs.com/projects/puppet/wiki/Downloading_Puppet#Verifying+Puppet+Downloads

Please report feedback via the Puppet Labs Redmine site, using an
affected version of 1.6.2:
http://projects.puppetlabs.com/projects/facter/

Full Release Notes at: https://projects.puppetlabs.com/projects/facter/wiki/Wiki

RPMs available on yum.puppetlabs.com as well.

# Facter 1.6.2 Release Notes
## Maint: (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.

## New Fact: (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

## New Platform: (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.


## Fix (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.

## Fix (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.


## New Platform: (7951) added OS support for Amazon Linux

## Maint: (9787) Change rspec format so we use the default, not document

Current running rake spec in facter means we get the document
output which is
very verbose. Unfortunately we are forcing this in our .rspec file so you
can’t override it on a user by user basis with ~/.rspec for example.

I think we should not define —format, which means the default is progress
(which is less verbose and better for the average Joe and hacker who just
wants red light/green light) and then if people really want document format
they can override this in their own ~/.rspec file.

This way its the best of both worlds – more meaningful defaults and allowing
user overrides.

##Fix (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.

## Fix (4980, 6470) Fix architecture in Darwin and Ubuntu

Architecture now relies on the hardwaremodel fact unless special cased
otherwise, such as for linux distributions that require amd64 as the
expected architecture. Ubuntu was added as a special case, OpenBSD was
collapsed into the current architecture fact and Darwin was added by
removing the kernel confine statement for the architecture fact.

##New fact: (6792) Added osfamily fact.

Added osfamily fact to determine if a given operating system is a
derivative of a common operating system.

##Fix (6515 and 2945) Fix processorcount for arm, sparc & ppc for linux.

Previously we were unable to check processor type and count on other
architectures for linux. This fix corrects that.

To remove complication from the fact we have moved the logic for parsing
cpuinfo and lsdev into their own static classes in Facter::Util::Processor.
This is to help with stubbing and to segregate that action as now we have
more conditional cases.

Tests and corresponding cpuinfo fixtures have been added to test those
alternative platforms as well.

##Fix (3856) Detect VirtualBox on Darwin as well as Linux and SunOS

## Fix (7996) Restrict solaris cpu processor detection

x86_64 based solaris machines have a pkg_core_id field in output of
kstat cpu_info, which denotes the core id of a specific core relative to
the cpu. This could cause misreporting of processor count. The regex to
count cores was restricted to prevent this. Additional x86_64 tests were
added to verify this behavior.

##Fix (7996) Add solaris processor facts

Adds processorcount and physicalprocessorcount facts for solaris.

Added minor whitespace change for physicalprocessorcount spec that
ccompanied adding a solaris section to the spec.

Thanks to Merritt Krakowitzer for his contributions to this patch.

##Fix (9295) Initial detection of Hyper-V hypervisor

pulled out from video card matching and dmidecode

Future plans include grabbing version info and seeing if module
is loaded.

dmidecode info:
System Information
Manufacturer: Microsoft Corporation
Product Name: Virtual Machine
Version: 7.0
Serial Number: ....-....-....-....-....-....-.. (removed)
UUID: ........-....-....-....-............ (removed)
Wake-up Type: Power Switch

##Fix (2747) Fix detection of xen0 vs xenu in Xen 3.2.

Check for xsd_kva for dom0, rather than independent_wallclock
(which is present
on both dom0 and domu). Work around /proc/xen/capabilities, which is
sometimes not world-readable.


1.6.2
===
d7c00f6 (#9852) Fixing watchr on facter
abf636e (#9555) Change all cases of tabs and 4 space indentation to 2
space indentation.
db1b5af (#9830) Add sshecdsakey fact
1b69791 (#9404) Add memory & update processor facts for DragonFly and OpenBSD.
bce2c69 (#9404) De-clumsify CPU count detection and swap detection on OpenBSD.
cd0ae15 (#9404) Efficiency cleanups for DragonFly facts.
d5511f6 (#9404) Add cross-fact support to facter for DragonFly BSD.
0dfc4e9 (#6728) Improve openvz/cloudlinux detection.
2c5ad52 (#6728) Facter improperly detects openvzve on CloudLinux systems
9101e46 (#7951) added OS support for Amazon Linux
b3784f7 add operatingsystema and operatingsystemrelease support for cloudlinux
8605bba (#9787) Change rspec format so we use the default, not document
b579613 (#7726) Silence prtconf error message inside zones
db3c606 (#9786) Add aliases: specs, tests, test in rake that points at 'spec'.
dfda9be (#4980, #6470) Fix architecture in Darwin and Ubuntu
8f938c1 (#6792) Added osfamily fact.
af1ef43 (#6515) Fix for ruby-1.8.5. Switched use of 'line.each' to 'each_line'.
328ff75 (#6515 and #2945) Fix processorcount for arm, sparc & ppc for linux.
51329b8 (#3856) Detect VirtualBox on Darwin as well as Linux and SunOS
83498b5 (#7996) Restrict solaris cpu processor detection
6e29ff7 (#8615) ENV hash is now local to tests
124a09b (#8240) Fixed regex pattern for domain
fd93c5f (#7996) Add solaris processor facts
3f1a163 (#9593) Require rubygems to handle json output for ruby 1.8.7.
c4fe415 (#9295) Added spec tests for Hyper-V detection
ea23417 (#9295) Initial detection of Hyper-V hypervisor
82351ab Stub out OS and HW model to avoid test failures. Only stub
vmware -v (don't expect it) since it needn't be invoked if we already
id
entified Xen or something else.
16a8cab (#2747) Fix detection of xen0 vs xenu in Xen 3.2.

Reply all
Reply to author
Forward
0 new messages