Merge branch 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet

* 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet:
  (#22792) Rename select_spec.rb to filter_spec.rb
  (#22792) Fix typo in filter functions documentation.
  (#22792) Rename 'select' to 'filter' in spec tests
  (#22792) Add select function that raises error
  (#22792) Rename the 'select' function to 'filter'
Merge remote-tracking branch 'henrik/issues/issue-22729-remove-reject'

* henrik/issues/issue-22729-remove-reject:
  (#22729) Remove the reject function.
(Maint) Whitespace fixup

Remove trailing whitespace.
Merge branch 'issues/issue-22785-rename-collect'

* issues/issue-22785-rename-collect:
  (Maint) Whitespace fixup
  (#22785) Deprecate the collect function (by making it raise an error)
  (#22785) Rename and update collect_spec to map_spec and use map
  (#22785) Add map function (copy of collect)
(#9546) Make pluginsync copy external facts to client

Pluginsync will now look in moduledir/facts/ for external facts and
copy them to the client under :pluginfactdest (default: $vardir/facts)
(#9546) Use $vardir/external_facts for storing external facts

Puppet loads local ruby facts from "$vardir/lib/facter#{File::PATH_SEPARATOR}$vardir/facts"
so we do not want to store our external facts in this directory.  I
could find no place where $vardir/facts is populated by plugin sync
or any other mechanism so this location must be for facts that do not
belong to a Puppet module and are installed locally on the destination
system.
(#9546) Load external fact directories into facter config
(#9546) Refactoring external fact source and dest to fact.d

The original implementation of this was going to use facts/ as the
source and destination directory.  It turns out the destination
directory facts/ is in use by some outdated code.  So the source and
dest will be switched to facts.d/ which also keeps the naming scheme
consistent with the existing external facts directory
/etc/facter/facts.d
(#9546) Add spec tests for external fact pluginsync
(#9546) Added external fact plugin sync support to plugin face
(#9546) Added feature detection support for external facts

External fact support in puppet core is dependent on facter commit
https://github.com/puppetlabs/facter/commit/6f19eeeef1c5c8e9cc84c44599e03a5c06a30abc
so we need to detect if the installed version of facter is capable
before executing the external fact code
(#22891) Use the most preferred supported format

Previously the code had assumed that the order of the supported formats
didn't mean anything. However, the preferred_serialization_format, and
other factors, meant that the order really does matter. This makes the
selected format, when the Accept header is */* be the most preferred,
supported format.
(Maint) Refactor retrieving the indirection in http handler

Pass the full indirection object into do_* methods instead of just the name.
This is a better access point for getting what these methods need and reduces
duplication.
(#22893) Make handler check whether remote requests are allowed

The http handler will check whether an indirection allows remote requests
before performing any operations.
(#22893) Disable remote requests for key termini

These don't make sense to use remotely since they manage private keys.
(Maint) Remove no-op rescue clause
Merge pull request #2000 from zaphod42/issue/master/22891-respect-preferred_serialization_format_for_any_media_type

(#22891) Use the most preferred supported format
Merge pull request #2003 from pcarlisle/ticket/22893-control-remote-requests

Ticket/22893 control remote requests
Merge pull request #1989 from 3flex/fix/master/21258-stale-LSB-links

(#21258) Update link to LSB exit code documentation
(packaging) (22726) Add saucy to default cows

Saucy comes out soon, and we would like to provide packages for that
distro. In order to do this, we need to add the saucy cow to our default
cow list, so that each new release we have, we will build and ship saucy
packages, in addition to the packages we already ship.