Index: src/puppetcode/environments/gnuboat/modules/apt/CHANGELOG.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/CHANGELOG.md	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/CHANGELOG.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,10 +1,82 @@
+## Supported Release 4.1.0
+### Summary
+
+This release removes Data in Modules due to current compatibility issues and reinstates the params.pp file. Also includes a couple of bug fixes.
+
+#### Features
+- (MODULES-4973) Data in Modules which was introduced in the last release has now been reverted due to compatibility issues.
+
+#### Bugfixes
+- Now apt_key only sends the auth basic header when userinfo can be parsed from the URL.
+- Reverted the removal of Evolving Web's attribution in NOTICE file.
+- Test added to ensure empty string allowed for $release in apt::source.
+
+
+## Supported Release 3.0.0 and 4.0.0
+###Summary
+
+This release adds new Puppet 4 features: data in modules, EPP templates, the $facts hash, and data types. This release is fully backwards compatible to existing Puppet 4 configurations and provides you with deprecation warnings for every argument that will not work as expected with the final 4.0.0 release. See the stdlib docs here for an in-depth discussion of this: https://github.com/puppetlabs/puppetlabs-stdlib#validate_legacy
+
+If you want to learn more about the new features used or you wish to upgrade a module yourself, have a look at the NTP: A Puppet 4 language update blog post.
+
+If you're still running Puppet 3, remain on the latest puppetlabs-apt 2.x release for now, and see the documentation to upgrade to Puppet 4.
+
+Changes
+
+Data in modules: Moves all distribution and OS-dependent defaults into YAML files in data/, alleviating the need for a params class. Note that while this feature is currently still classed as experimental, the final implementation will support the changes here.
+EPP templating: Uses the Puppet language as a base for templates to create simpler and safer templates. No need for Ruby anymore!
+The $facts hash: Makes facts visibly distinct from other variables for more readable and maintainable code. This helps eliminate confusion if you use a local variable whose name happens to match that of a common fact.
+Data types for validation: Helps you find and replace deprecated code in existing validate functions with stricter, more readable data type notation. First upgrade to the 3.0.0 release of this module, and address all deprecation warnings before upgrading to the final 4.0.0 release. Please see the stdlib docs for an in-depth discussion of this process.
+
+## Supported Release 2.4.0
+### Summary
+A release that includes only a couple of additional features, but includes several cleanups and bugfixes around existing issues.
+
+#### Features
+- Tests updated to check for idempotency.
+- (MODULES-4224) Implementation of beaker-module_install_helper.
+- Deprecation warnings are now handled by the deprecation function in stdlib.
+
+#### Bugfixes
+- Now http and https sources fixed for apt_key and can take a userinfo.
+- GPG key update.
+- Notify_update param now defaults to true to avoid validation errors.
+- Implement retry on tests which pull key from a key server which sometimes times out (transient error).
+- String comparison error now comphensated for in update.pp.
+- (MODULES-4104) Removal of the port number from repository location in order to get the host name of the repository.
+- Puppet lint warnings addressed.
+- A few small readme issues addressed.
+
+## Supported Release 2.3.0
+### Summary
+A release containing many bugfixes with additional features.
+
+#### Features
+- Apt_updates facts now use /usr/bin/apt-get.
+- Addition of notify update to apt::source.
+- Update to newest modulesync_configs.
+- Installs software-properties-common for Xenial.
+- Modulesync updates.
+- Add ability to specify a hash of apt::conf defines.
+
+#### Bugfixes
+- A clean up of spec/defines/key_compat_specs, also now runs under STRICT_VARIABLES.
+- Apt::setting expects priority to be an integer, set defaults accordingly.
+- Fixed version check for Ubuntu on 16.04.
+- Now uses hkps.pool.sks-keyservers.net instead of pgp.mit.edu.
+- Updates and fixes to tests. General cleanup.
+- Fixed regexp for $ensure params.
+- Apt/params: Remove unused LSB facts.
+- Replaced `-s` with `-f` in ppa rspec tests - After the repository is added, the "${::apt::sources_list_d}/${sources_list_d_filename}" file is created as an empty file. The unless condition of Exec["add-apt-repository-${name}"] calls test -s, which returns 1 if the file is empty. Because the file is empty, the unless condition is never true and the repository is added on every execution. This change replaces the -s test condition with -f, which is true if the file exists or false otherwise.
+- Limit non-strict parsing to pre-3.5.0 only - Puppet 3.5.0 introduced strict variables and the module handles strict variables by using the defined() function. This does not work on prior versions of puppet so we now gate based on that version. Puppet 4 series has a new setting `strict` that may be set to enforce strict variables while `strict_variables` remains unset (see PUP-6358) which causes the conditional in manifests/params.pp to erroniously use non-strict 3.5-era parsing and fail. This new conditional corrects the cases such that strict variable behavior happens on versions 3.5.0 and later.
+
 ##Supported Release 2.2.2
 ###Summary
 
-Several bug fixes and the addition of support updates to Debian 8 and Ubunto Wily.
+Several bug fixes and the addition of support updates to Debian 8 and Ubuntu Wily.
 
 ####Bugfixes
 - Small fixes to descriptions within the readme and the addition of some examples.
-- Updates to run on Ubunto Wily.
+- Updates to run on Ubuntu Wily.
 - Fixed apt_key tempfile race condition.
 - Run stages limitation added to the documentation.
Index: src/puppetcode/environments/gnuboat/modules/apt/CONTRIBUTING.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/CONTRIBUTING.md	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/CONTRIBUTING.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -44,5 +44,5 @@
       - Make sure you have a [GitHub account](https://github.com/join)
 
-      - [Create a ticket](https://tickets.puppetlabs.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppetlabs.com/browse/) you are patching for.
+      - [Create a ticket](https://tickets.puppet.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppet.com/browse/) you are patching for.
 
     * Preferred method:
@@ -209,12 +209,9 @@
 ====================
 
-* [Getting additional help](http://puppetlabs.com/community/get-help)
-
-* [Writing tests](http://projects.puppetlabs.com/projects/puppet/wiki/Development_Writing_Tests)
-
-* [Patchwork](https://patchwork.puppetlabs.com)
+* [Getting additional help](http://puppet.com/community/get-help)
+
+* [Writing tests](https://docs.puppet.com/guides/module_guides/bgtm.html#step-three-module-testing)
 
 * [General GitHub documentation](http://help.github.com/)
 
 * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
-
Index: src/puppetcode/environments/gnuboat/modules/apt/Gemfile
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/Gemfile	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/Gemfile	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,37 +3,73 @@
 source ENV['GEM_SOURCE'] || "https://rubygems.org"
 
-def location_for(place, version = nil)
-  if place =~ /^(git[:@][^#]*)#(.*)/
-    [version, { :git => $1, :branch => $2, :require => false}].compact
-  elsif place =~ /^file:\/\/(.*)/
-    ['>= 0', { :path => File.expand_path($1), :require => false}]
+# Determines what type of gem is requested based on place_or_version.
+def gem_type(place_or_version)
+  if place_or_version =~ /^git:/
+    :git
+  elsif place_or_version =~ /^file:/
+    :file
   else
-    [place, version, { :require => false}].compact
+    :gem
   end
 end
 
-group :development, :unit_tests do
-  gem 'json',                      :require => false
-  gem 'metadata-json-lint',        :require => false
-  gem 'puppet_facts',              :require => false
-  gem 'puppet-blacksmith',         :require => false
-  gem 'puppetlabs_spec_helper',    :require => false
-  gem 'rspec-puppet', '>= 2.3.2',  :require => false
-  gem 'simplecov',                 :require => false
-end
-group :system_tests do
-  gem 'beaker-rspec',                  *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4')
-  gem 'beaker',                        *location_for(ENV['BEAKER_VERSION'])
-  gem 'serverspec',                    :require => false
-  gem 'beaker-puppet_install_helper',  :require => false
-  gem 'master_manipulator',            :require => false
-  gem 'beaker-hostgenerator',          *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
+# Find a location or specific version for a gem. place_or_version can be a
+# version, which is most often used. It can also be git, which is specified as
+# `git://somewhere.git#branch`. You can also use a file source location, which
+# is specified as `file://some/location/on/disk`.
+def location_for(place_or_version, fake_version = nil)
+  if place_or_version =~ /^(git[:@][^#]*)#(.*)/
+    [fake_version, { :git => $1, :branch => $2, :require => false }].compact
+  elsif place_or_version =~ /^file:\/\/(.*)/
+    ['>= 0', { :path => File.expand_path($1), :require => false }]
+  else
+    [place_or_version, { :require => false }]
+  end
 end
 
-gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'])
+# Used for gem conditionals
+supports_windows = false
+ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
+minor_version = "#{ruby_version_segments[0]}.#{ruby_version_segments[1]}"
+
+group :development do
+  gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby"
+  gem "puppet-module-win-default-r#{minor_version}",   :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "puppet-module-posix-dev-r#{minor_version}",     :require => false, :platforms => "ruby"
+  gem "puppet-module-win-dev-r#{minor_version}",       :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "json_pure", '<= 2.0.1',                         :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
+  gem "fast_gettext", '1.1.0',                         :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
+  gem "fast_gettext",                                  :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
+end
+
+group :system_tests do
+  gem "puppet-module-posix-system-r#{minor_version}",                            :require => false, :platforms => "ruby"
+  gem "puppet-module-win-system-r#{minor_version}",                              :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3')                  
+  gem "beaker-pe",                                                               :require => false
+  gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION'])                
+  gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
+  gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')        
+end
+
 gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
 
+# Only explicitly specify Facter/Hiera if a version has been specified.
+# Otherwise it can lead to strange bundler behavior. If you are seeing weird
+# gem resolution behavior, try setting `DEBUG_RESOLVER` environment variable
+# to `1` and then run bundle install.
+gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) if ENV['FACTER_GEM_VERSION']
+gem 'hiera', *location_for(ENV['HIERA_GEM_VERSION']) if ENV['HIERA_GEM_VERSION']
 
+
+# Evaluate Gemfile.local if it exists
 if File.exists? "#{__FILE__}.local"
   eval(File.read("#{__FILE__}.local"), binding)
 end
+
+# Evaluate ~/.gemfile if it exists
+if File.exists?(File.join(Dir.home, '.gemfile'))
+  eval(File.read(File.join(Dir.home, '.gemfile')), binding)
+end
+
+# vim:ft=ruby
Index: src/puppetcode/environments/gnuboat/modules/apt/MAINTAINERS.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/MAINTAINERS.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/MAINTAINERS.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+## Maintenance
+
+Maintainers:
+  - Puppet Forge Modules Team `forge-modules |at| puppet |dot| com`
+
+Tickets: https://tickets.puppet.com/browse/MODULES. Make sure to set component to `apt`.
Index: src/puppetcode/environments/gnuboat/modules/apt/NOTICE
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/NOTICE	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/NOTICE	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,8 +1,5 @@
-apt puppet module
+Puppet Module - puppetlabs-apt
 
-Copyright (C) 2014-2016 Puppet Labs, Inc.
-
-Puppet Labs can be contacted at: info@puppetlabs.com
-
+Copyright 2017 Puppet, Inc.
 
 Licensed under the Apache License, Version 2.0 (the "License");
@@ -10,5 +7,5 @@
 You may obtain a copy of the License at
 
-http://www.apache.org/licenses/LICENSE-2.0
+    http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
Index: src/puppetcode/environments/gnuboat/modules/apt/README.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/README.md	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/README.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -59,9 +59,9 @@
 **Warning:** Using short key IDs presents a serious security issue, potentially leaving you open to collision attacks. We recommend you always use full fingerprints to identify your GPG keys. This module allows short keys, but issues a security warning if you use them.
 
-Declare the `apt::key` class:
+Declare the `apt::key` defined type:
 
 ```puppet
 apt::key { 'puppetlabs':
-  id      => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
+  id      => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
   server  => 'pgp.mit.edu',
   options => 'http-proxy="http://proxyuser:proxypass@example.org:3128"',
@@ -148,8 +148,8 @@
   repos    => 'main',
   key      => {
-    'id'     => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
+    'id'     => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
     'server' => 'pgp.mit.edu',
   },
-},
+}
 ```
 
@@ -179,5 +179,5 @@
     repos: 'main'
     key:
-      id: '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+      id: '6F6B15509CF8E59E6E469F327F438280EF8D349F'
       server: 'pgp.mit.edu'
 ```
@@ -193,5 +193,5 @@
   repos    => 'main universe multiverse restricted',
 }
- 
+
 apt::source { "archive.ubuntu.com-${lsbdistcodename}-security":
   location => 'http://archive.ubuntu.com/ubuntu',
@@ -200,5 +200,5 @@
   release  => "${lsbdistcodename}-security"
 }
- 
+
 apt::source { "archive.ubuntu.com-${lsbdistcodename}-updates":
   location => 'http://archive.ubuntu.com/ubuntu',
@@ -207,5 +207,5 @@
   release  => "${lsbdistcodename}-updates"
 }
- 
+
 apt::source { "archive.ubuntu.com-${lsbdistcodename}-backports":
  location => 'http://archive.ubuntu.com/ubuntu',
@@ -261,4 +261,6 @@
 ##### Parameters (all optional)
 
+* `confs`: Creates new `apt::conf` resources. Valid options: a hash to be passed to the [`create_resources` function](https://docs.puppetlabs.com/references/latest/function.html#createresources). Default: {}.
+
 * `keys`: Creates new `apt::key` resources. Valid options: a hash to be passed to the [`create_resources` function](https://docs.puppetlabs.com/references/latest/function.html#createresources). Default: {}.
 
@@ -421,10 +423,10 @@
 
   * Lucid and Precise: 'python-software-properties'
-  * Trusty, Utopic, and Vivid: 'software-properties-common'
-  * All others: undef
+  * Trusty and newer: 'software-properties-common'
+  * All others: 'python-software-properties'
 
 * `release`: *Optional if lsb-release is installed (unless you're using a different release than indicated by lsb-release, e.g., Linux Mint).* Specifies the operating system of your node. Valid options: a string containing a valid LSB distribution codename. Default: "$lsbdistcodename".
 
-#### Defined Type: `apt:setting`
+#### Defined Type: `apt::setting`
 
 Manages Apt configuration files.
@@ -485,4 +487,6 @@
 
 * `trusted_source`: Specifies whether to authenticate packages from this release, even if the Release file is not signed or the signature can't be checked. Valid options: 'true' and 'false'. Default: undef. This parameter is **deprecated** and will be removed in a future version of the module.
+
+* `notify_update`: *Optional.* Specifies whether to trigger an `apt-get update` run. Valid options: 'true' and 'false'. Default: 'true'.
 
 #### Type: `apt_key`
Index: src/puppetcode/environments/gnuboat/modules/apt/Rakefile
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/Rakefile	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/Rakefile	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,13 +1,8 @@
-require 'puppet_blacksmith/rake_tasks'
+require 'puppetlabs_spec_helper/rake_tasks'
 require 'puppet-lint/tasks/puppet-lint'
-require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
 
 PuppetLint.configuration.fail_on_warnings = true
 PuppetLint.configuration.send('relative')
-PuppetLint.configuration.send('disable_80chars')
-PuppetLint.configuration.send('disable_class_inherits_from_params_class')
-PuppetLint.configuration.send('disable_documentation')
-PuppetLint.configuration.send('disable_single_quote_string_with_variables')
-PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
 
 desc 'Generate pooler nodesets'
Index: src/puppetcode/environments/gnuboat/modules/apt/checksums.json
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/checksums.json	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/checksums.json	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,11 +1,12 @@
 {
-  "CHANGELOG.md": "6a1e5e7a7b25137bab30512b425c0634",
-  "CONTRIBUTING.md": "ad65d271f183b5adb9fdd58207939f5f",
-  "Gemfile": "a5493d10f1c1fec87972b13a9fe1afcf",
+  "CHANGELOG.md": "a91cd94a75b1abd4b28b3ff089d81c60",
+  "CONTRIBUTING.md": "77d0440d7cd4206497f99065c60bed46",
+  "Gemfile": "bedf635025b279d7c7732adcc8ae9a29",
   "LICENSE": "3b83ef96387f14655fc854ddc3c6bd57",
-  "NOTICE": "f0fd8d07c4a816a2655400c7403db877",
-  "README.md": "f27f862d74944cbd90d6e9e310602eaa",
-  "Rakefile": "ab91824042ec3fd085a41cab7e0e90d4",
-  "examples/backports.pp": "17882e4b05751cd28069dcc72705e470",
+  "MAINTAINERS.md": "35674b233c6d12c0f56ee8afbdae29e4",
+  "NOTICE": "9533d13591355591f69619be28e9cfce",
+  "README.md": "06945ba980070be5f9e9b755fcfa4d8b",
+  "Rakefile": "3851f083966b9bbd6d46e50dba5aa52a",
+  "examples/backports.pp": "af57ea62ed1b73f540858e00327e6517",
   "examples/builddep.pp": "eddb8b7d7c0ef7383d85a74c1cd0de3f",
   "examples/debian_testing.pp": "2e50a41180e2afeac2de15ade05ddaa1",
@@ -15,67 +16,62 @@
   "examples/force.pp": "f71857eba704a0eb3d8d6b146e80da6d",
   "examples/hold.pp": "5e58e0a30d6407a05691d96c7647ae14",
-  "examples/key.pp": "d1d63e76f1ca8a004dbeac9261c9045a",
+  "examples/key.pp": "d85507365bd2753e14e04c344c2f7703",
   "examples/pin.pp": "4b4c3612d75a19dba8eb7227070fa4ab",
   "examples/ppa.pp": "b902cce8159128b5e8b21bed540743ff",
   "examples/release.pp": "2bc960babf8c4dd24b7ffa4220a601f8",
-  "examples/source.pp": "2f402ae0218fdf070d5388a66e85f82f",
+  "examples/source.pp": "c79817e129305f86a495f7558de3d3ec",
   "examples/unattended_upgrades.pp": "e7a797388ef03077f110f4f268f5ecd1",
   "lib/facter/apt_reboot_required.rb": "7c3fc46f254fc4b4579d011578caaadb",
   "lib/facter/apt_update_last_success.rb": "2926ff059cd2f63a2a7824ba898837f9",
-  "lib/facter/apt_updates.rb": "6c2f2204761b2d8842e0db6235d900cb",
-  "lib/puppet/provider/apt_key/apt_key.rb": "f6ad8e3cacfa8a199921730d61e96105",
-  "lib/puppet/type/apt_key.rb": "b167dc62db19a482a5b46abf3095904b",
+  "lib/facter/apt_updates.rb": "2662a82fe574e565d225f7838278d9eb",
+  "lib/puppet/provider/apt_key/apt_key.rb": "33d0ab1b0a21cea5c120d63173d514a4",
+  "lib/puppet/type/apt_key.rb": "9c6ca9618cdcb863275c23cf32c77f2d",
   "lib/puppet_x/apt_key/patch_openuri.rb": "951bad007a3b5db035be069c1d1c9c09",
-  "manifests/backports.pp": "7d4a6e58ae3dc364e6279358e4f4b957",
-  "manifests/conf.pp": "403cee9be6284d6f47759482759f4b6d",
-  "manifests/init.pp": "3640560b938701bbc0c4ed8c93c5a64a",
-  "manifests/key.pp": "ad58e1224124b5b4a2617123d74eed00",
-  "manifests/params.pp": "d8799f415d36e4b50b1bf9a8a107a17c",
-  "manifests/pin.pp": "5abe01b9106f1f3c00f02e3ad81eec75",
-  "manifests/ppa.pp": "e745db50b160d7519e3dc97f137e0ca4",
-  "manifests/setting.pp": "cde5492c31b2b94c49bf67c7c96a6058",
-  "manifests/source.pp": "c1be91ad56665839711ada25c6f10850",
-  "manifests/update.pp": "93f132802d6280debfc46b35c656486f",
-  "metadata.json": "c6ad04eceebce0185b4882acb517a7da",
-  "spec/acceptance/apt_key_provider_spec.rb": "1e19756f710dbc8799b630721197786e",
-  "spec/acceptance/apt_spec.rb": "0bd13c6cb16e56d049ad0a5770f9c1f3",
-  "spec/acceptance/class_spec.rb": "7fa3ee3cade5e27891fe01aa8af8941d",
-  "spec/acceptance/nodesets/centos-59-x64.yml": "57eb3e471b9042a8ea40978c467f8151",
-  "spec/acceptance/nodesets/centos-64-x64-pe.yml": "ec075d95760df3d4702abea1ce0a829b",
-  "spec/acceptance/nodesets/centos-65-x64.yml": "3e5c36e6aa5a690229e720f4048bb8af",
-  "spec/acceptance/nodesets/debian-70rc1-x64.yml": "715f798e696d3582c66d13f0e8e5f009",
-  "spec/acceptance/nodesets/debian-73-x64.yml": "b44b7146a828c37482c06879862fb5d9",
-  "spec/acceptance/nodesets/default.yml": "e27bb4d7526ad3c7a1c4aeb87decec15",
-  "spec/acceptance/nodesets/ubuntu-server-10044-x64.yml": "75e86400b7889888dc0781c0ae1a1297",
-  "spec/acceptance/nodesets/ubuntu-server-12042-x64.yml": "d30d73e34cd50b043c7d14e305955269",
-  "spec/acceptance/nodesets/ubuntu-server-1404-x64.yml": "5f0aed10098ac5b78e4217bb27c7aaf0",
-  "spec/classes/apt_backports_spec.rb": "20492356c4ebddcfe8739b8f4a0beac6",
-  "spec/classes/apt_spec.rb": "73023d41e3d02b760bad354deae321a1",
-  "spec/classes/apt_update_spec.rb": "e1bae3848f53c709a14c1e6def93865e",
-  "spec/classes/params_spec.rb": "87ac980e35fbc87e4d5a61809b99c1d8",
-  "spec/defines/conf_spec.rb": "4c07a034a6e55098962535d5dca611b0",
-  "spec/defines/key_compat_spec.rb": "3676c87d803d19d92f35ba74bad1db7c",
-  "spec/defines/key_spec.rb": "a69d96e761e40767ee3526503b9ce63c",
-  "spec/defines/pin_spec.rb": "5a3866f7a49f88e6e14e3335872e387b",
-  "spec/defines/ppa_spec.rb": "b8aed505789e507775de01749cda49f4",
-  "spec/defines/setting_spec.rb": "740578ed09763c7573c0bfafab6c94a1",
-  "spec/defines/source_compat_spec.rb": "aee5bea3d7f13749f7e245efc572bb9e",
-  "spec/defines/source_spec.rb": "783ed8308e71699b7f0b6f7cc925d178",
-  "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
+  "locales/config.yaml": "46660fe63119d48b8fb7dc3b38ee0856",
+  "manifests/backports.pp": "87a05ecfa0243d152ab225feec963d92",
+  "manifests/conf.pp": "8a33d3106e75422f82abc63ec41c4d84",
+  "manifests/init.pp": "fe403437b485318b9c9c384abfb6bb06",
+  "manifests/key.pp": "2ef8581029647d3d5a12234c86eff85f",
+  "manifests/params.pp": "621974da9b92d75e943aba2c1b384188",
+  "manifests/pin.pp": "d4fd040d22da4b418771a01fab8336fe",
+  "manifests/ppa.pp": "5c05b41477ba7613af1855ec38be5971",
+  "manifests/setting.pp": "50e39637905de1dfcfdaad95672a2890",
+  "manifests/source.pp": "797edd25ee64b3128a04dbf70e1443a4",
+  "manifests/update.pp": "46330dc5a8e69b62b2dfd9072cd4f26c",
+  "metadata.json": "fd6d46586030158faa92d2af7aa46e7b",
+  "spec/acceptance/apt_key_provider_spec.rb": "68e448171b89dcf535ac3f985937f1a7",
+  "spec/acceptance/apt_spec.rb": "7b2ed0430e2288250586c5a17a51c21c",
+  "spec/acceptance/class_spec.rb": "d3a2ff84333f0f9ee0143aeac414e46b",
+  "spec/acceptance/nodesets/centos-7-x64.yml": "a713f3abd3657f0ae2878829badd23cd",
+  "spec/acceptance/nodesets/debian-8-x64.yml": "d2d2977900989f30086ad251a14a1f39",
+  "spec/acceptance/nodesets/default.yml": "b42da5a1ea0c964567ba7495574b8808",
+  "spec/acceptance/nodesets/docker/centos-7.yml": "8a3892807bdd62306ae4774f41ba11ae",
+  "spec/acceptance/nodesets/docker/debian-8.yml": "ac8e871d1068c96de5e85a89daaec6df",
+  "spec/acceptance/nodesets/docker/ubuntu-14.04.yml": "dc42ee922a96908d85b8f0f08203ce58",
+  "spec/classes/apt_backports_spec.rb": "9a2c5fd8b451ace56fcbca4e89d9a397",
+  "spec/classes/apt_spec.rb": "1a132e04a5e9b4284105a6b2c8e202ce",
+  "spec/classes/apt_update_spec.rb": "2061f6c2827b0ab9a3b461b2bb40fbaf",
+  "spec/defines/conf_spec.rb": "57230dec18839ed45d695453f8e74978",
+  "spec/defines/key_compat_spec.rb": "970b0cec22e99af9cf158e4338fef5a1",
+  "spec/defines/key_spec.rb": "75f4d0880e7b3b4930f9fdf5cda760d1",
+  "spec/defines/pin_spec.rb": "3bab03c1ac67f651334fc1e7d0c97000",
+  "spec/defines/ppa_spec.rb": "7791f279e6c77f835fc4a21fbd6ec168",
+  "spec/defines/setting_spec.rb": "fb41b3d28b7e1860a53846d99b811677",
+  "spec/defines/source_compat_spec.rb": "8bed1d3acf3e6713d2795d4ab71ebb83",
+  "spec/defines/source_spec.rb": "32d68cce3d579e9121602d87b0078bab",
   "spec/spec_helper.rb": "b2db3bc02b4ac2fd5142a6621c641b07",
-  "spec/spec_helper_acceptance.rb": "2d4884491c0eed85a780cbe694074945",
-  "spec/unit/facter/apt_has_updates_spec.rb": "fdc0d48ed55ebc72ae16c3f09cf82d2c",
-  "spec/unit/facter/apt_package_updates_spec.rb": "9102ea3ea94a286f5accd2fb2f040725",
+  "spec/spec_helper_acceptance.rb": "ba9896539a0b9d550e4d27803ba5214c",
+  "spec/unit/facter/apt_has_updates_spec.rb": "8294711c589fb1efa9aa23be0faf8500",
+  "spec/unit/facter/apt_package_updates_spec.rb": "2a0549f8656f094d9d0006ce12f61b2c",
   "spec/unit/facter/apt_reboot_required_spec.rb": "9d58cb2aeaed624f7c4ca118ec1b6410",
-  "spec/unit/facter/apt_security_updates_spec.rb": "41c9c1d84a0feaa3938f6f3d8def9772",
-  "spec/unit/facter/apt_update_last_success_spec.rb": "cbc907ca27e6f9bb803fa9654c4a1836",
-  "spec/unit/facter/apt_updates_spec.rb": "22f290cfbe2dc1d6bb321ce782e90bb8",
-  "spec/unit/puppet/type/apt_key_spec.rb": "986c3cf60937eb89cbf6335dc7923dc5",
-  "templates/15update-stamp.erb": "b9de0ac9e2c9854b1bb213e362dc4e41",
-  "templates/_conf_header.erb": "6f3077f2eabd3e929a44d55bc1c5446e",
-  "templates/_header.erb": "9300ac105fe777787ac9e793b8df8d25",
-  "templates/conf.erb": "b4bc626b0d998cd681ee6b8c507c0d1d",
-  "templates/pin.pref.erb": "c3885c6816db46cf66e3a9bf57973c61",
-  "templates/proxy.erb": "3d0f7b88020d8a29bafc690e05ca69d6",
-  "templates/source.list.erb": "72648dd11918d5c03db82065d3bef73b"
+  "spec/unit/facter/apt_security_updates_spec.rb": "ec8a6711feac739866743dfaf4baf3d0",
+  "spec/unit/facter/apt_update_last_success_spec.rb": "0c6320a500d44948b4ec965194970840",
+  "spec/unit/facter/apt_updates_spec.rb": "ffde1130fda5990d2786ff7878ade5e0",
+  "spec/unit/puppet/type/apt_key_spec.rb": "311c79d817ad03fbae8923fa2a075221",
+  "templates/15update-stamp.epp": "b9de0ac9e2c9854b1bb213e362dc4e41",
+  "templates/_conf_header.epp": "6f3077f2eabd3e929a44d55bc1c5446e",
+  "templates/_header.epp": "9300ac105fe777787ac9e793b8df8d25",
+  "templates/pin.pref.epp": "ab7a64e3779f93028fe965a6393fad74",
+  "templates/proxy.epp": "540643b8da51aa4cb209ab4713d3bbb3",
+  "templates/source.list.epp": "c32995778d056f204d51a6d79505a5aa"
 }
Index: src/puppetcode/environments/gnuboat/modules/apt/examples/backports.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/examples/backports.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/examples/backports.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -7,5 +7,5 @@
   key      => {
     id     => '630239CC130E1A7FD81A27B140976EAF437D05B5',
-    server => 'pgp.mit.edu',
+    server => 'hkps.pool.sks-keyservers.net',
   },
 }
Index: src/puppetcode/environments/gnuboat/modules/apt/examples/key.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/examples/key.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/examples/key.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,6 +1,6 @@
 # Declare Apt key for apt.puppetlabs.com source
 apt::key { 'puppetlabs':
-  id      => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
-  server  => 'pgp.mit.edu',
+  id      => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
+  server  => 'hkps.pool.sks-keyservers.net',
   options => 'http-proxy="http://proxyuser:proxypass@example.org:3128"',
 }
Index: src/puppetcode/environments/gnuboat/modules/apt/examples/source.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/examples/source.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/examples/source.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,6 +8,6 @@
   repos    => 'main',
   key      => {
-    id     => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
-    server => 'pgp.mit.edu',
+    id     => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
+    server => 'hkps.pool.sks-keyservers.net',
   },
 }
@@ -20,5 +20,5 @@
   key      => {
     id     => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
-    server => 'subkeys.pgp.net',
+    server => 'hkps.pool.sks-keyservers.net',
   },
   pin      => '-10',
@@ -30,5 +30,5 @@
   key      => {
     id     => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
-    server => 'subkeys.pgp.net',
+    server => 'hkps.pool.sks-keyservers.net',
   },
   pin      => '-10',
Index: src/puppetcode/environments/gnuboat/modules/apt/lib/facter/apt_updates.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/lib/facter/apt_updates.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/lib/facter/apt_updates.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,8 +2,24 @@
 Facter.add("apt_has_updates") do
   confine :osfamily => 'Debian'
-  if File.executable?("/usr/lib/update-notifier/apt-check")
-    apt_check_result = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>&1')
-    if not apt_check_result.nil? and apt_check_result =~ /^\d+;\d+$/
-      apt_package_updates = apt_check_result.split(';')
+  if File.executable?("/usr/bin/apt-get")
+    apt_get_result = Facter::Util::Resolution.exec('/usr/bin/apt-get -s upgrade 2>&1')
+    if not apt_get_result.nil?
+      apt_package_updates = [[], []]
+      apt_get_result.each_line do |line|
+        if line =~ /^Inst\s/
+          package = line.gsub(/^Inst\s([^\s]+)\s.*/, '\1').strip
+          apt_package_updates[0].push(package)
+          security_matches = [
+            / Debian[^\s]+-updates /,
+            / Debian-Security:/,
+            / Ubuntu[^\s]+-security /,
+            / gNewSense[^\s]+-security /
+          ]
+          re = Regexp.union(security_matches)
+          if line.match(re)
+            apt_package_updates[1].push(package)
+          end
+        end
+      end
     end
   end
@@ -11,5 +27,5 @@
   setcode do
     if not apt_package_updates.nil? and apt_package_updates.length == 2
-      apt_package_updates != ['0', '0']
+      apt_package_updates != [[], []]
     end
   end
@@ -19,9 +35,8 @@
   confine :apt_has_updates => true
   setcode do
-    packages = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check -p 2>&1').split("\n")
     if Facter.version < '2.0.0'
-      packages.join(',')
+      apt_package_updates[0].join(',')
     else
-      packages
+      apt_package_updates[0]
     end
   end
@@ -31,5 +46,5 @@
   confine :apt_has_updates => true
   setcode do
-    Integer(apt_package_updates[0])
+    Integer(apt_package_updates[0].length)
   end
 end
@@ -38,5 +53,5 @@
   confine :apt_has_updates => true
   setcode do
-    Integer(apt_package_updates[1])
+    Integer(apt_package_updates[1].length)
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/provider/apt_key/apt_key.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/provider/apt_key/apt_key.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/provider/apt_key/apt_key.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -128,5 +128,13 @@
     else
       begin
-        key = parsedValue.read
+        # Only send basic auth if URL contains userinfo
+        # Some webservers (e.g. Amazon S3) return code 400 if empty basic auth is sent
+        if parsedValue.userinfo.nil?
+          key = parsedValue.read
+        else
+          user_pass = parsedValue.userinfo.split(':')
+          parsedValue.userinfo = ''
+          key = open(parsedValue, :http_basic_authentication => user_pass).read
+        end
       rescue OpenURI::HTTPError, Net::FTPPermError => e
         fail("#{e.message} for #{resource[:source]}")
Index: src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/type/apt_key.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/type/apt_key.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/lib/puppet/type/apt_key.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,5 +8,5 @@
     be manipulated through the `apt-key` command.
 
-    apt_key { '4BD6EC30':
+    apt_key { '6F6B15509CF8E59E6E469F327F438280EF8D349F':
       source => 'http://apt.puppetlabs.com/pubkey.gpg'
     }
Index: src/puppetcode/environments/gnuboat/modules/apt/locales/config.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/locales/config.yaml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/locales/config.yaml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,25 @@
+---
+# This is the project-specific configuration file for setting up
+# fast_gettext for your project.
+gettext:
+  # This is used for the name of the .pot and .po files; they will be
+  # called <project_name>.pot?
+  project_name: puppetlabs-apt
+  # This is used in comments in the .pot and .po files to indicate what
+  # project the files belong to and should bea little more desctiptive than
+  # <project_name>
+  package_name: puppetlabs-apt
+  # The locale that the default messages in the .pot file are in
+  default_locale: en
+  # The email used for sending bug reports.
+  bugs_address: docs@puppet.com
+  # The holder of the copyright.
+  copyright_holder: Puppet, Inc.
+  # This determines which comments in code should be eligible for translation.
+  # Any comments that start with this string will be externalized. (Leave
+  # empty to include all.)
+  comments_tag: TRANSLATOR
+  # Patterns for +Dir.glob+ used to find all files that might contain
+  # translatable content, relative to the project root directory
+  source_files:
+  
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/backports.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/backports.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/backports.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,33 +1,27 @@
 class apt::backports (
-  $location = undef,
-  $release  = undef,
-  $repos    = undef,
-  $key      = undef,
-  $pin      = 200,
+  Optional[String] $location                    = undef,
+  Optional[String] $release                     = undef,
+  Optional[String] $repos                       = undef,
+  Optional[Variant[String, Hash]] $key          = undef,
+  Optional[Variant[Integer, String, Hash]] $pin = 200,
 ){
   if $location {
-    validate_string($location)
     $_location = $location
   }
   if $release {
-    validate_string($release)
     $_release = $release
   }
   if $repos {
-    validate_string($repos)
     $_repos = $repos
   }
   if $key {
-    unless is_hash($key) {
-      validate_string($key)
-    }
     $_key = $key
   }
-  if ($::apt::xfacts['lsbdistid'] == 'debian' or $::apt::xfacts['lsbdistid'] == 'ubuntu') {
+  if ($facts['lsbdistid'] == 'Debian' or $facts['lsbdistid'] == 'Ubuntu') {
     unless $location {
       $_location = $::apt::backports['location']
     }
     unless $release {
-      $_release = "${::apt::xfacts['lsbdistcodename']}-backports"
+      $_release = "${facts['lsbdistcodename']}-backports"
     }
     unless $repos {
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/conf.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/conf.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/conf.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,7 +1,7 @@
 define apt::conf (
-  $content       = undef,
-  $ensure        = present,
-  $priority      = '50',
-  $notify_update = undef,
+  Optional[String] $content          = undef,
+  Enum['present', 'absent'] $ensure  = present,
+  Variant[String, Integer] $priority = 50,
+  Optional[Boolean] $notify_update   = undef,
 ) {
 
@@ -12,8 +12,9 @@
   }
 
+  $confheadertmp = epp('apt/_conf_header.epp')
   apt::setting { "conf-${name}":
     ensure        => $ensure,
     priority      => $priority,
-    content       => template('apt/_conf_header.erb', 'apt/conf.erb'),
+    content       => "${confheadertmp}${content}",
     notify_update => $notify_update,
   }
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/init.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/init.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/init.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,28 +1,49 @@
+# == Class: apt
 #
-class apt(
-  $update   = {},
-  $purge    = {},
-  $proxy    = {},
-  $sources  = {},
-  $keys     = {},
-  $ppas     = {},
-  $pins     = {},
-  $settings = {},
-) inherits ::apt::params {
+# Manage APT (Advanced Packaging Tool)
+#
+class apt (
+  Hash $update_defaults         = $apt::params::update_defaults,
+  Hash $purge_defaults          = $apt::params::purge_defaults,
+  Hash $proxy_defaults          = $apt::params::proxy_defaults,
+  Hash $include_defaults        = $apt::params::include_defaults,
+  String $provider              = $apt::params::provider,
+  String $keyserver             = $apt::params::keyserver,
+  Optional[String] $ppa_options = $apt::params::ppa_options,
+  Optional[String] $ppa_package = $apt::params::ppa_package,
+  Optional[Hash] $backports     = $apt::params::backports,
+  Hash $confs                   = $apt::params::confs,
+  Hash $update                  = $apt::params::update,
+  Hash $purge                   = $apt::params::purge,
+  Hash $proxy                   = $apt::params::proxy,
+  Hash $sources                 = $apt::params::sources,
+  Hash $keys                    = $apt::params::keys,
+  Hash $ppas                    = $apt::params::ppas,
+  Hash $pins                    = $apt::params::pins,
+  Hash $settings                = $apt::params::settings,
+  String $root                  = $apt::params::root,
+  String $sources_list          = $apt::params::sources_list,
+  String $sources_list_d        = $apt::params::sources_list_d,
+  String $conf_d                = $apt::params::conf_d,
+  String $preferences           = $apt::params::preferences,
+  String $preferences_d         = $apt::params::preferences_d,
+  Hash $config_files            = $apt::params::config_files,
+  Hash $source_key_defaults     = $apt::params::source_key_defaults
+) inherits apt::params {
+
+  if $facts['osfamily'] != 'Debian' {
+    fail('This module only works on Debian or derivatives like Ubuntu')
+  }
 
   $frequency_options = ['always','daily','weekly','reluctantly']
-  validate_hash($update)
+
   if $update['frequency'] {
     validate_re($update['frequency'], $frequency_options)
   }
   if $update['timeout'] {
-    unless is_integer($update['timeout']) {
-      fail('timeout value for update must be an integer')
-    }
+    assert_type(Integer, $update['timeout'])
   }
   if $update['tries'] {
-    unless is_integer($update['tries']) {
-      fail('tries value for update must be an integer')
-    }
+    assert_type(Integer, $update['tries'])
   }
 
@@ -30,43 +51,37 @@
   include ::apt::update
 
-  validate_hash($purge)
   if $purge['sources.list'] {
-    validate_bool($purge['sources.list'])
+    assert_type(Boolean, $purge['sources.list'])
   }
   if $purge['sources.list.d'] {
-    validate_bool($purge['sources.list.d'])
+    assert_type(Boolean, $purge['sources.list.d'])
   }
   if $purge['preferences'] {
-    validate_bool($purge['preferences'])
+    assert_type(Boolean, $purge['preferences'])
   }
   if $purge['preferences.d'] {
-    validate_bool($purge['preferences.d'])
+    assert_type(Boolean, $purge['preferences.d'])
   }
 
   $_purge = merge($::apt::purge_defaults, $purge)
 
-  validate_hash($proxy)
   if $proxy['ensure'] {
     validate_re($proxy['ensure'], ['file', 'present', 'absent'])
   }
   if $proxy['host'] {
-    validate_string($proxy['host'])
+    assert_type(String, $proxy['host'])
   }
   if $proxy['port'] {
-    unless is_integer($proxy['port']) {
-      fail('$proxy port must be an integer')
-    }
+    assert_type(Integer, $proxy['port'])
   }
-  if $proxy['https'] {
-    validate_bool($proxy['https'])
+  if $proxy['https']{
+    assert_type(Boolean, $proxy['https'])
   }
 
   $_proxy = merge($apt::proxy_defaults, $proxy)
 
-  validate_hash($sources)
-  validate_hash($keys)
-  validate_hash($settings)
-  validate_hash($ppas)
-  validate_hash($pins)
+  $confheadertmp = epp('apt/_conf_header.epp')
+  $proxytmp = epp('apt/proxy.epp', {'proxies' => $_proxy})
+  $updatestamptmp = epp('apt/15update-stamp.epp')
 
   if $_proxy['ensure'] == 'absent' or $_proxy['host'] {
@@ -74,5 +89,5 @@
       ensure   => $_proxy['ensure'],
       priority => '01',
-      content  => template('apt/_conf_header.erb', 'apt/proxy.erb'),
+      content  => "${confheadertmp}${proxytmp}",
     }
   }
@@ -96,5 +111,5 @@
   apt::setting { 'conf-update-stamp':
     priority => 15,
-    content  => template('apt/_conf_header.erb', 'apt/15update-stamp.erb'),
+    content  => "${confheadertmp}${updatestamptmp}",
   }
 
@@ -140,4 +155,7 @@
   }
 
+  if $confs {
+    create_resources('apt::conf', $confs)
+  }
   # manage sources if present
   if $sources {
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/key.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/key.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/key.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,105 +1,54 @@
 # == Define: apt::key
 define apt::key (
-  $id          = $title,
-  $ensure      = present,
-  $content     = undef,
-  $source      = undef,
-  $server      = $::apt::keyserver,
-  $options     = undef,
-  $key         = undef,
-  $key_content = undef,
-  $key_source  = undef,
-  $key_server  = undef,
-  $key_options = undef,
-) {
+    String $id                           = $title,
+    Enum['present', 'absent'] $ensure    = present,
+    Optional[String] $content            = undef,
+    Optional[String] $source             = undef,
+    String $server                       = $::apt::keyserver,
+    Optional[String] $options            = undef,
+    ) {
 
-  if $key != undef {
-    warning('$key is deprecated and will be removed in the next major release. Please use $id instead.')
-    $_id = $key
-  } else {
-    $_id = $id
+  validate_re($id, ['\A(0x)?[0-9a-fA-F]{8}\Z', '\A(0x)?[0-9a-fA-F]{16}\Z', '\A(0x)?[0-9a-fA-F]{40}\Z'])
+
+  if $source {
+    validate_re($source, ['\Ahttps?:\/\/', '\Aftp:\/\/', '\A\/\w+'])
   }
 
-  if $key_content != undef {
-    warning('$key_content is deprecated and will be removed in the next major release. Please use $content instead.')
-    $_content = $key_content
-  } else {
-    $_content = $content
-  }
-
-  if $key_source != undef {
-    warning('$key_source is deprecated and will be removed in the next major release. Please use $source instead.')
-    $_source = $key_source
-  } else {
-    $_source = $source
-  }
-
-  if $key_server != undef {
-    warning('$key_server is deprecated and will be removed in the next major release. Please use $server instead.')
-    $_server = $key_server
-  } else {
-    $_server = $server
-  }
-
-  if $key_options != undef {
-    warning('$key_options is deprecated and will be removed in the next major release. Please use $options instead.')
-    $_options = $key_options
-  } else {
-    $_options = $options
-  }
-
-  validate_re($_id, ['\A(0x)?[0-9a-fA-F]{8}\Z', '\A(0x)?[0-9a-fA-F]{16}\Z', '\A(0x)?[0-9a-fA-F]{40}\Z'])
-  validate_re($ensure, ['\Aabsent|present\Z',])
-
-  if $_content {
-    validate_string($_content)
-  }
-
-  if $_source {
-    validate_re($_source, ['\Ahttps?:\/\/', '\Aftp:\/\/', '\A\/\w+'])
-  }
-
-  if $_server {
-    validate_re($_server,['\A((hkp|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?$'])
-  }
-
-  if $_options {
-    validate_string($_options)
+  if $server {
+    validate_re($server,['\A((hkp|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?$'])
   }
 
   case $ensure {
     present: {
-      if defined(Anchor["apt_key ${_id} absent"]){
-        fail("key with id ${_id} already ensured as absent")
+      if defined(Anchor["apt_key ${id} absent"]){
+        fail("key with id ${id} already ensured as absent")
       }
 
-      if !defined(Anchor["apt_key ${_id} present"]) {
+      if !defined(Anchor["apt_key ${id} present"]) {
         apt_key { $title:
           ensure  => $ensure,
-          id      => $_id,
-          source  => $_source,
-          content => $_content,
-          server  => $_server,
-          options => $_options,
-        } ->
-        anchor { "apt_key ${_id} present": }
+          id      => $id,
+          source  => $source,
+          content => $content,
+          server  => $server,
+          options => $options,
+        } -> anchor { "apt_key ${id} present": }
       }
     }
 
     absent: {
-      if defined(Anchor["apt_key ${_id} present"]){
-        fail("key with id ${_id} already ensured as present")
+      if defined(Anchor["apt_key ${id} present"]){
+        fail("key with id ${id} already ensured as present")
       }
 
-      if !defined(Anchor["apt_key ${_id} absent"]){
+      if !defined(Anchor["apt_key ${id} absent"]){
         apt_key { $title:
           ensure  => $ensure,
-          id      => $_id,
-          source  => $_source,
-          content => $_content,
-          server  => $_server,
-          options => $_options,
-        } ->
-        anchor { "apt_key ${_id} absent": }
+          id      => $id,
+          source  => $source,
+          content => $content,
+          server  => $server,
+          options => $options,
+        } -> anchor { "apt_key ${id} absent": }
       }
     }
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/params.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/params.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/params.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,45 +3,4 @@
   if $::osfamily != 'Debian' {
     fail('This module only works on Debian or derivatives like Ubuntu')
-  }
-
-  # prior to puppet 3.5.0, defined couldn't test if a variable was defined
-  # strict variables wasn't added until 3.5.0, so this should be fine.
-  if ! $::settings::strict_variables {
-    $xfacts = {
-      'lsbdistcodename'     => $::lsbdistcodename,
-      'lsbdistrelease'      => $::lsbdistrelease,
-      'lsbmajdistrelease'   => $::lsbmajdistrelease,
-      'lsbdistdescription'  => $::lsbdistdescription,
-      'lsbminordistrelease' => $::lsbminordistrelease,
-      'lsbdistid'           => $::lsbdistid,
-    }
-  } else {
-    # Strict variables facts lookup compatibility
-    $xfacts = {
-      'lsbdistcodename' => defined('$lsbdistcodename') ? {
-        true    => $::lsbdistcodename,
-        default => undef,
-      },
-      'lsbdistrelease' => defined('$lsbdistrelease') ? {
-        true    => $::lsbdistrelease,
-        default => undef,
-      },
-      'lsbmajdistrelease' => defined('$lsbmajdistrelease') ? {
-        true    => $::lsbmajdistrelease,
-        default => undef,
-      },
-      'lsbdistdescription' => defined('$lsbdistdescription') ? {
-        true    => $::lsbdistdescription,
-        default => undef,
-      },
-      'lsbminordistrelease' => defined('$lsbminordistrelease') ? {
-        true    => $::lsbminordistrelease,
-        default => undef,
-      },
-      'lsbdistid' => defined('$lsbdistid') ? {
-        true    => $::lsbdistid,
-        default => undef,
-      },
-    }
   }
 
@@ -54,4 +13,13 @@
   $preferences_d  = "${root}/preferences.d"
   $keyserver      = 'keyserver.ubuntu.com'
+  $confs          = {}
+  $update         = {}
+  $purge          = {}
+  $proxy          = {}
+  $sources        = {}
+  $keys           = {}
+  $ppas           = {}
+  $pins           = {}
+  $settings       = {}
 
   $config_files = {
@@ -102,8 +70,8 @@
   }
 
-  case $xfacts['lsbdistid'] {
-    'debian': {
-      case $xfacts['lsbdistcodename'] {
-        'squeeze': {
+  case $facts['os']['name']{
+    'Debian': {
+      case $facts['os']['release']['full'] {
+        '6.0': {
           $backports = {
             'location' => 'http://httpredir.debian.org/debian-backports',
@@ -125,5 +93,5 @@
 
     }
-    'ubuntu': {
+    'Ubuntu': {
       $backports = {
         'location' => 'http://archive.ubuntu.com/ubuntu',
@@ -132,14 +100,14 @@
       }
 
-      case $xfacts['lsbdistcodename'] {
-        'lucid': {
+      case $facts['os']['release']['full'] {
+        '10.04': {
           $ppa_options        = undef
           $ppa_package        = 'python-software-properties'
         }
-        'precise': {
+        '12.04': {
           $ppa_options        = '-y'
           $ppa_package        = 'python-software-properties'
         }
-        'trusty', 'utopic', 'vivid', 'wily': {
+        '14.04', '14.10', '15.04', '15.10': {
           $ppa_options        = '-y'
           $ppa_package        = 'software-properties-common'
@@ -152,5 +120,5 @@
     }
     undef: {
-      fail('Unable to determine lsbdistid, please install lsb-release first')
+      fail('Unable to determine full release number')
     }
     default: {
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/pin.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/pin.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/pin.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,21 +3,18 @@
 
 define apt::pin(
-  $ensure          = present,
-  $explanation     = undef,
-  $order           = undef,
-  $packages        = '*',
-  $priority        = 0,
-  $release         = '', # a=
-  $origin          = '',
-  $version         = '',
-  $codename        = '', # n=
-  $release_version = '', # v=
-  $component       = '', # c=
-  $originator      = '', # o=
-  $label           = ''  # l=
+  Optional[Enum['file', 'present', 'absent']] $ensure = present,
+  Optional[String] $explanation                       = undef,
+  Variant[Integer] $order                             = 50,
+  Variant[String, Array] $packages                    = '*',
+  Variant[Numeric, String] $priority                  = 0,
+  Optional[String] $release                           = '', # a=
+  Optional[String] $origin                            = '',
+  Optional[String] $version                           = '',
+  Optional[String] $codename                          = '', # n=
+  Optional[String] $release_version                   = '', # v=
+  Optional[String] $component                         = '', # c=
+  Optional[String] $originator                        = '', # o=
+  Optional[String] $label                             = '',  # l=
 ) {
-  if $order and !is_integer($order) {
-    fail('Only integers are allowed in the apt::pin order param')
-  }
 
   if $explanation {
@@ -37,5 +34,6 @@
     $component,
     $originator,
-    $label]
+    $label,
+  ]
   $pin_release = join($pin_release_array, '')
 
@@ -72,8 +70,26 @@
   $file_name = regsubst($title, '[^0-9a-z\-_\.]', '_', 'IG')
 
+  $headertmp = epp('apt/_header.epp')
+
+  $pinpreftmp = epp('apt/pin.pref.epp', {
+      'name'            => $name,
+      'pin_release'     => $pin_release,
+      'release'         => $release,
+      'codename'        => $codename,
+      'release_version' => $release_version,
+      'component'       => $component,
+      'originator'      => $originator,
+      'label'           => $label,
+      'version'         => $version,
+      'origin'          => $origin,
+      'explanation'     => $_explanation,
+      'packages_string' => $packages_string,
+      'priority'        => $priority,
+  })
+
   apt::setting { "pref-${file_name}":
     ensure        => $ensure,
     priority      => $order,
-    content       => template('apt/_header.erb', 'apt/pin.pref.erb'),
+    content       => "${headertmp}${pinpreftmp}",
     notify_update => false,
   }
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/ppa.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/ppa.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/ppa.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,9 +1,9 @@
 # ppa.pp
 define apt::ppa(
-  $ensure         = 'present',
-  $options        = $::apt::ppa_options,
-  $release        = $::apt::xfacts['lsbdistcodename'],
-  $package_name   = $::apt::ppa_package,
-  $package_manage = false,
+  String $ensure                 = 'present',
+  Optional[String] $options      = $::apt::ppa_options,
+  Optional[String] $release      = $facts['lsbdistcodename'],
+  Optional[String] $package_name = $::apt::ppa_package,
+  Boolean $package_manage        = false,
 ) {
   unless $release {
@@ -11,13 +11,10 @@
   }
 
-  if $::apt::xfacts['lsbdistid'] == 'Debian' {
+  if $facts['lsbdistid'] == 'Debian' {
     fail('apt::ppa is not currently supported on Debian.')
   }
 
-  $ubuntu_release_year  = regsubst($::apt::xfacts['lsbdistrelease'], '\.\d+$', '', 'G') + 0
-  $ubuntu_release_month = regsubst($::apt::xfacts['lsbdistrelease'], '^\d+\.', '', 'G') + 0
-
-  if $ubuntu_release_year >= 15 and $ubuntu_release_month >= 10 {
-    $distid = downcase($::apt::xfacts['lsbdistid'])
+  if versioncmp($facts['lsbdistrelease'], '15.10') >= 0 {
+    $distid = downcase($facts['lsbdistid'])
     $filename = regsubst($name, '^ppa:([^/]+)/(.+)$', "\\1-${distid}-\\2-${release}")
   } else {
@@ -32,5 +29,4 @@
     if $package_manage {
       ensure_packages($package_name)
-
       $_require = [File['sources.list.d'], Package[$package_name]]
     } else {
@@ -52,5 +48,5 @@
       environment => $_proxy_env,
       command     => "/usr/bin/add-apt-repository ${options} ${name}",
-      unless      => "/usr/bin/test -s ${::apt::sources_list_d}/${sources_list_d_filename}",
+      unless      => "/usr/bin/test -f ${::apt::sources_list_d}/${sources_list_d_filename}",
       user        => 'root',
       logoutput   => 'on_failure',
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/setting.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/setting.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/setting.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,11 +1,10 @@
 define apt::setting (
-  $priority      = 50,
-  $ensure        = file,
-  $source        = undef,
-  $content       = undef,
-  $notify_update = true,
+  Variant[String, Integer, Array] $priority           = 50,
+  Optional[Enum['file', 'present', 'absent']] $ensure = file,
+  Optional[String] $source                            = undef,
+  Optional[String] $content                           = undef,
+  Boolean $notify_update                              = true,
 ) {
 
-  include 'apt::params'
   if $content and $source {
     fail('apt::setting cannot have both content and source')
@@ -15,7 +14,4 @@
     fail('apt::setting needs either of content or source')
   }
-
-  validate_re($ensure,  ['file', 'present', 'absent'])
-  validate_bool($notify_update)
 
   $title_array = split($title, '-')
@@ -30,12 +26,4 @@
   }
 
-  if $source {
-    validate_string($source)
-  }
-
-  if $content {
-    validate_string($content)
-  }
-
   if ($setting_type == 'list') or ($setting_type == 'pref') {
     $_priority = ''
@@ -44,6 +32,6 @@
   }
 
-  $_path = $::apt::params::config_files[$setting_type]['path']
-  $_ext  = $::apt::params::config_files[$setting_type]['ext']
+  $_path = $::apt::config_files[$setting_type]['path']
+  $_ext  = $::apt::config_files[$setting_type]['ext']
 
   if $notify_update {
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/source.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/source.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/source.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,25 +2,16 @@
 # add an apt source
 define apt::source(
-  $location          = undef,
-  $comment           = $name,
-  $ensure            = present,
-  $release           = undef,
-  $repos             = 'main',
-  $include           = {},
-  $key               = undef,
-  $pin               = undef,
-  $architecture      = undef,
-  $allow_unsigned    = false,
-  $include_src       = undef,
-  $include_deb       = undef,
-  $required_packages = undef,
-  $key_server        = undef,
-  $key_content       = undef,
-  $key_source        = undef,
-  $trusted_source    = undef,
+  Optional[String] $location           = undef,
+  String $comment                      = $name,
+  String $ensure                       = present,
+  Optional[String] $release            = undef,
+  String $repos                        = 'main',
+  Optional[Variant[Hash]] $include     = {},
+  Optional[Variant[String, Hash]] $key = undef,
+  $pin                                 = undef,
+  Optional[String] $architecture       = undef,
+  Boolean $allow_unsigned              = false,
+  Boolean $notify_update               = true,
 ) {
-  validate_string($architecture, $comment, $location, $repos)
-  validate_bool($allow_unsigned)
-  validate_hash($include)
 
   # This is needed for compat with 1.8.x
@@ -29,46 +20,8 @@
   $_before = Apt::Setting["list-${title}"]
 
-  if $include_src != undef {
-    warning("\$include_src is deprecated and will be removed in the next major release, please use \$include => { 'src' => ${include_src} } instead")
-  }
-
-  if $include_deb != undef {
-    warning("\$include_deb is deprecated and will be removed in the next major release, please use \$include => { 'deb' => ${include_deb} } instead")
-  }
-
-  if $required_packages != undef {
-    warning('$required_packages is deprecated and will be removed in the next major release, please use package resources instead.')
-    exec { "Required packages: '${required_packages}' for ${name}":
-      command     => "${::apt::params::provider} -y install ${required_packages}",
-      logoutput   => 'on_failure',
-      refreshonly => true,
-      tries       => 3,
-      try_sleep   => 1,
-      before      => $_before,
-    }
-  }
-
-  if $key_server != undef {
-    warning("\$key_server is deprecated and will be removed in the next major release, please use \$key => { 'server' => ${key_server} } instead.")
-  }
-
-  if $key_content != undef {
-    warning("\$key_content is deprecated and will be removed in the next major release, please use \$key => { 'content' => ${key_content} } instead.")
-  }
-
-  if $key_source != undef {
-    warning("\$key_source is deprecated and will be removed in the next major release, please use \$key => { 'source' => ${key_source} } instead.")
-  }
-
-  if $trusted_source != undef {
-    warning('$trusted_source is deprecated and will be removed in the next major release, please use $allow_unsigned instead.')
-    $_allow_unsigned = $trusted_source
-  } else {
-    $_allow_unsigned = $allow_unsigned
-  }
-
-  if ! $release {
-    $_release = $::apt::params::xfacts['lsbdistcodename']
-    unless $_release {
+  if !$release {
+    if $facts['lsbdistcodename'] {
+      $_release = $facts['lsbdistcodename']
+    } else {
       fail('lsbdistcodename fact not available: release parameter required')
     }
@@ -81,24 +34,5 @@
   }
 
-  if $include_src != undef and $include_deb != undef {
-    $_deprecated_include = {
-      'src' => $include_src,
-      'deb' => $include_deb,
-    }
-  } elsif $include_src != undef {
-    $_deprecated_include = { 'src' => $include_src }
-  } elsif $include_deb != undef {
-    $_deprecated_include = { 'deb' => $include_deb }
-  } else {
-    $_deprecated_include = {}
-  }
-
-  $_include = merge($::apt::params::include_defaults, $_deprecated_include, $include)
-
-  $_deprecated_key = {
-    'key_server'  => $key_server,
-    'key_content' => $key_content,
-    'key_source'  => $key_source,
-  }
+  $includes = merge($::apt::include_defaults, $include)
 
   if $key {
@@ -107,14 +41,27 @@
         fail('key hash must contain at least an id entry')
       }
-      $_key = merge($::apt::params::source_key_defaults, $_deprecated_key, $key)
+      $_key = merge($::apt::source_key_defaults, $key)
     } else {
-      validate_string($key)
-      $_key = merge( { 'id' => $key }, $_deprecated_key)
+      validate_legacy(String, 'validate_string', $key)
+      $_key = { 'id' => $key }
     }
   }
 
+  $header = epp('apt/_header.epp')
+
+  $sourcelist = epp('apt/source.list.epp', {
+    'comment'          => $comment,
+    'includes'         => $includes,
+    'opt_architecture' => $architecture,
+    'allow_unsigned'   => $allow_unsigned,
+    'location'         => $location,
+    'release'          => $_release,
+    'repos'            => $repos,
+  })
+
   apt::setting { "list-${name}":
-    ensure  => $ensure,
-    content => template('apt/_header.erb', 'apt/source.list.erb'),
+    ensure        => $ensure,
+    content       => "${header}${sourcelist}",
+    notify_update => $notify_update,
   }
 
@@ -123,6 +70,6 @@
       $_pin = merge($pin, { 'ensure' => $ensure, 'before' => $_before })
     } elsif (is_numeric($pin) or is_string($pin)) {
-      $url_split = split($location, '/')
-      $host      = $url_split[2]
+      $url_split = split($location, '[:\/]+')
+      $host      = $url_split[1]
       $_pin = {
         'ensure'   => $ensure,
@@ -141,14 +88,11 @@
     if is_hash($_key) {
       apt::key { "Add key: ${$_key['id']} from Apt::Source ${title}":
-        ensure      => present,
-        id          => $_key['id'],
-        server      => $_key['server'],
-        content     => $_key['content'],
-        source      => $_key['source'],
-        options     => $_key['options'],
-        key_server  => $_key['key_server'],
-        key_content => $_key['key_content'],
-        key_source  => $_key['key_source'],
-        before      => $_before,
+        ensure  => present,
+        id      => $_key['id'],
+        server  => $_key['server'],
+        content => $_key['content'],
+        source  => $_key['source'],
+        options => $_key['options'],
+        before  => $_before,
       }
     }
Index: src/puppetcode/environments/gnuboat/modules/apt/manifests/update.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/manifests/update.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/manifests/update.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -14,5 +14,5 @@
       $daily_threshold = (strftime('%s') - 86400)
       if $::apt_update_last_success {
-        if $::apt_update_last_success < $daily_threshold {
+        if $::apt_update_last_success + 0 < $daily_threshold {
           $_kick_apt = true
         } else {
@@ -29,5 +29,5 @@
       $weekly_threshold = (strftime('%s') - 604800)
       if $::apt_update_last_success {
-        if ( $::apt_update_last_success < $weekly_threshold ) {
+        if ( $::apt_update_last_success + 0 < $weekly_threshold ) {
           $_kick_apt = true
         } else {
Index: src/puppetcode/environments/gnuboat/modules/apt/metadata.json
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/metadata.json	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/metadata.json	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,5 +1,5 @@
 {
   "name": "puppetlabs-apt",
-  "version": "2.2.2",
+  "version": "4.1.0",
   "author": "Puppet Labs",
   "summary": "Provides an interface for managing Apt source, key, and definitions with Puppet",
@@ -9,6 +9,7 @@
   "issues_url": "https://tickets.puppetlabs.com/browse/MODULES",
   "dependencies": [
-    {"name":"puppetlabs/stdlib","version_requirement":">= 4.5.0 < 5.0.0"}
+    {"name":"puppetlabs/stdlib","version_requirement":">= 4.16.0 < 5.0.0"}
   ],
+  "data_provider": null,
   "operatingsystem_support": [
     {
@@ -25,5 +26,6 @@
         "10.04",
         "12.04",
-        "14.04"
+        "14.04",
+        "16.04"
       ]
     }
@@ -31,10 +33,6 @@
   "requirements": [
     {
-      "name": "pe",
-      "version_requirement": ">= 3.3.0 < 2015.4.0"
-    },
-    {
       "name": "puppet",
-      "version_requirement": ">= 3.0.0 < 5.0.0"
+      "version_requirement": ">= 4.7.0 < 5.0.0"
     }
   ]
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_key_provider_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_key_provider_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_key_provider_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,9 +1,9 @@
 require 'spec_helper_acceptance'
 
-PUPPETLABS_GPG_KEY_SHORT_ID    = '4BD6EC30'
-PUPPETLABS_GPG_KEY_LONG_ID     = '1054B7A24BD6EC30'
-PUPPETLABS_GPG_KEY_FINGERPRINT = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+PUPPETLABS_GPG_KEY_SHORT_ID    = 'EF8D349F'
+PUPPETLABS_GPG_KEY_LONG_ID     = '7F438280EF8D349F'
+PUPPETLABS_GPG_KEY_FINGERPRINT = '6F6B15509CF8E59E6E469F327F438280EF8D349F'
 PUPPETLABS_APT_URL             = 'apt.puppetlabs.com'
-PUPPETLABS_GPG_KEY_FILE        = 'pubkey.gpg'
+PUPPETLABS_GPG_KEY_FILE        = 'DEB-GPG-KEY-puppet'
 CENTOS_GPG_KEY_SHORT_ID        = 'C105B9DE'
 CENTOS_GPG_KEY_LONG_ID         = '0946FCA2C105B9DE'
@@ -12,9 +12,13 @@
 CENTOS_GPG_KEY_FILE            = 'RPM-GPG-KEY-CentOS-6'
 
-SHOULD_NEVER_EXIST_ID          = '4BD6EC30'
+SHOULD_NEVER_EXIST_ID          = 'EF8D349F'
 
 KEY_CHECK_COMMAND              = "apt-key adv --list-keys --with-colons --fingerprint | grep "
 PUPPETLABS_KEY_CHECK_COMMAND   = "#{KEY_CHECK_COMMAND} #{PUPPETLABS_GPG_KEY_FINGERPRINT}"
 CENTOS_KEY_CHECK_COMMAND       = "#{KEY_CHECK_COMMAND} #{CENTOS_GPG_KEY_FINGERPRINT}"
+
+MAX_TIMEOUT_RETRY              = 3
+TIMEOUT_RETRY_WAIT             = 5
+TIMEOUT_ERROR_MATCHER    = /no valid OpenPGP data found/
 
 describe 'apt_key' do
@@ -30,16 +34,16 @@
   describe 'default options' do
     key_versions = {
-      '32bit key id'                        => '4BD6EC30',
-      '64bit key id'                        => '1054B7A24BD6EC30',
-      '160bit key fingerprint'              => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
-      '32bit lowercase key id'              => '4bd6ec30',
-      '64bit lowercase key id'              => '1054b7a24bd6ec30',
-      '160bit lowercase key fingerprint'    => '47b320eb4c7c375aa9dae1a01054b7a24bd6ec30',
-      '0x formatted 32bit key id'           => '0x4BD6EC30',
-      '0x formatted 64bit key id'           => '0x1054B7A24BD6EC30',
-      '0x formatted 160bit key fingerprint' => '0x47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
-      '0x formatted 32bit lowercase key id' => '0x4bd6ec30',
-      '0x formatted 64bit lowercase key id' => '0x1054b7a24bd6ec30',
-      '0x formatted 160bit lowercase key fingerprint' => '0x47b320eb4c7c375aa9dae1a01054b7a24bd6ec30',
+      '32bit key id'                        => "#{PUPPETLABS_GPG_KEY_SHORT_ID}",
+      '64bit key id'                        => "#{PUPPETLABS_GPG_KEY_LONG_ID}",
+      '160bit key fingerprint'              => "#{PUPPETLABS_GPG_KEY_FINGERPRINT}",
+      '32bit lowercase key id'              => "#{PUPPETLABS_GPG_KEY_SHORT_ID.downcase}",
+      '64bit lowercase key id'              => "#{PUPPETLABS_GPG_KEY_LONG_ID.downcase}",
+      '160bit lowercase key fingerprint'    => "#{PUPPETLABS_GPG_KEY_FINGERPRINT.downcase}",
+      '0x formatted 32bit key id'           => "0x#{PUPPETLABS_GPG_KEY_SHORT_ID}",
+      '0x formatted 64bit key id'           => "0x#{PUPPETLABS_GPG_KEY_LONG_ID}",
+      '0x formatted 160bit key fingerprint' => "0x#{PUPPETLABS_GPG_KEY_FINGERPRINT}",
+      '0x formatted 32bit lowercase key id' => "0x#{PUPPETLABS_GPG_KEY_SHORT_ID.downcase}",
+      '0x formatted 64bit lowercase key id' => "0x#{PUPPETLABS_GPG_KEY_LONG_ID.downcase}",
+      '0x formatted 160bit lowercase key fingerprint' => "0x#{PUPPETLABS_GPG_KEY_FINGERPRINT.downcase}",
     }
 
@@ -65,5 +69,5 @@
         pp = <<-EOS
         apt_key { 'puppetlabs':
-          id => '4B7A24BD6EC30',
+          id => '8280EF8D349F',
         }
         EOS
@@ -86,18 +90,23 @@
         EOS
 
-        # Install the key first
-        shell("apt-key adv --keyserver keyserver.ubuntu.com \
+        # Install the key first (retry because key pool may timeout)
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          shell("apt-key adv --keyserver hkps.pool.sks-keyservers.net \
               --recv-keys #{CENTOS_GPG_KEY_FINGERPRINT}")
+        end
         shell(CENTOS_KEY_CHECK_COMMAND)
 
         # Time to remove it using Puppet
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
 
         shell(CENTOS_KEY_CHECK_COMMAND,
               :acceptable_exit_codes => [1])
 
-        shell("apt-key adv --keyserver keyserver.ubuntu.com \
-              --recv-keys #{CENTOS_GPG_KEY_FINGERPRINT}")
+        # Re-Install the key (retry because key pool may timeout)
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          shell("apt-key adv --keyserver hkps.pool.sks-keyservers.net \
+                --recv-keys #{CENTOS_GPG_KEY_FINGERPRINT}")
+        end
       end
     end
@@ -112,12 +121,15 @@
         EOS
 
-        # Install the key first
-        shell("apt-key adv --keyserver keyserver.ubuntu.com \
-              --recv-keys #{PUPPETLABS_GPG_KEY_LONG_ID}")
+        # Install the key first (retry because key pool may timeout)
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          shell("apt-key adv --keyserver hkps.pool.sks-keyservers.net \
+                --recv-keys #{PUPPETLABS_GPG_KEY_LONG_ID}")
+        end
+
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
 
         # Time to remove it using Puppet
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
 
         shell(PUPPETLABS_KEY_CHECK_COMMAND,
@@ -135,6 +147,77 @@
             ensure  => 'present',
             content => "-----BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.4.12 (GNU/Linux)
-Comment: GPGTools - http://gpgtools.org
+
+mQINBFe2Iz4BEADqbv/nWmR26bsivTDOLqrfBEvRu9kSfDMzYh9Bmik1A8Z036Eg
+h5+TZD8Rrd5TErLQ6eZFmQXk9yKFoa9/C4aBjmsL/u0yeMmVb7/66i+x3eAYGLzV
+FyunArjtefZyxq0B2mdRHE8kwl5XGl8015T5RGHCTEhpX14O9yigI7gtliRoZcl3
+hfXtedcvweOf9VrV+t5LF4PrZejom8VcB5CE2pdQ+23KZD48+Cx/sHSLHDtahOTQ
+5HgwOLK7rBll8djFgIqP/UvhOqnZGIsg4MzTvWd/vwanocfY8BPwwodpX6rPUrD2
+aXPsaPeM3Q0juDnJT03c4i0jwCoYPg865sqBBrpOQyefxWD6UzGKYkZbaKeobrTB
+xUKUlaz5agSK12j4N+cqVuZUBAWcokXLRrcftt55B8jz/Mwhx8kl6Qtrnzco9tBG
+T5JN5vXMkETDjN/TqfB0D0OsLTYOp3jj4hpMpG377Q+6D71YuwfAsikfnpUtEBxe
+NixXuKAIqrgG8trfODV+yYYWzfdM2vuuYiZW9pGAdm8ao+JalDZss3HL7oVYXSJp
+MIjjhi78beuNflkdL76ACy81t2TvpxoPoUIG098kW3xd720oqQkyWJTgM+wV96bD
+ycmRgNQpvqHYKWtZIyZCTzKzTTIdqg/sbE/D8cHGmoy0eHUDshcE0EtxsQARAQAB
+tEhQdXBwZXQsIEluYy4gUmVsZWFzZSBLZXkgKFB1cHBldCwgSW5jLiBSZWxlYXNl
+IEtleSkgPHJlbGVhc2VAcHVwcGV0LmNvbT6JAj4EEwECACgFAle2Iz4CGwMFCQlm
+AYAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEH9DgoDvjTSfIN0P/jcCRzK8
+WIdhcNz5dkj7xRZb8Oft2yDfenQmzb1SwGGa96IwJFcjF4Nq7ymcDUqunS2DEDb2
+gCucsqmW1ubkaggsYbc9voz/SQwhsQpBjfWbuyOX9DWmW6av/aB1F85wP79gyfqT
+uidTGxQE6EhDbLe7tuvxOHfM1bKsUtI+0n9TALLLHfXUEdtaXCwMlJuO1IIn1PWa
+H7HzyEjw6OW/cy73oM9nuErBIio1O60slPLOW2XNhdWZJCRWkcXyuumRjoepz7WN
+1JgsLOTcB7rcQaBP3pDN0O/Om5dlDQ6oYitoJs/F0gfEgwK68Uy8k8sUR+FLLJqM
+o0CwOg6CeWU4ShAEd1xZxVYW6VOOKlz9x9dvjIVDn2SlTBDmLS99ySlQS57rjGPf
+GwlRUnuZP4OeSuoFNNJNb9PO6XFSP66eNHFbEpIoBU7phBzwWpTXNsW+kAcY8Rno
+8GzKR/2FRsxe5Nhfh8xy88U7BA0tqxWdqpk/ym+wDcgHBfSRt0dPFnbaHAiMRlgX
+J/NPHBQtkoEdQTKA+ICxcNTUMvsPDQgZcU1/ViLMN+6kZaGNDVcPeMgDvqxu0e/T
+b3uYiId38HYbHmD6rDrOQL/2VPPXbdGbxDGQUgX1DfdOuFXw1hSTilwI1KdXxUXD
+sCsZbchgliqGcI1l2En62+6pI2x5XQqqiJ7+uQINBFe2Iz4BEADzbs8WhdBxBa0t
+JBl4Vz0brDgU3YDqNkqnra/T17kVPI7s27VEhoHERmZJ17pKqb2pElpr9mN/FzuN
+0N9wvUaumd9gxzsOCam7DPTmuSIvwysk391mjCJkboo01bhuVXe2FBkgOPFzAJEH
+YFPxmu7tWOmCxNYiuuYtxLywU7lC/Zp6CZuq57xJqUWK47I5wDK9/iigkwSb3nDs
+6A2LpkDmCr+rcOwLh5bxDSei7vYW+3TNOkPlC/h6fO9dPeC9AfyW6qPdVFQq1mpZ
+Zcj1ALz7zFiciIB4NrD3PTjDlRnaJCWKPafVSsMbyIWmQaJ01ifuE0Owianrau8c
+I264VXmI5pA9C8k9f2aVBuJiLsXaLEb03CzFWz9JpBLttA9ccaam3feU2EmnC3sb
+9xD+Ibkxq5mKFN3lEzUAAIqbI1QYGZXPgLxMY7JSvoUxAqeHwpf/dO2LIUqYUpx0
+bF/GWRV9Uql8omNQbhwP0p2X/0Gfxj9Abg2IJM8LeOu3Xk0HACwwyVXgxcgk5FO+
++KZpTN3iynjmbIzB9qcd9TeSzjVh/RDPSdn5K6Ao5ynubGYmaPwCk+DdVBRDlgWo
+7yNIF4N9rFuSMAEJxA1nS5TYFgIN9oDF3/GHngVGfFCv4EG3yS08Hk1tDV0biKdK
+ypcx402TAwVRWP5Pzmxc6/ZXU4ZhZQARAQABiQIlBBgBAgAPBQJXtiM+AhsMBQkJ
+ZgGAAAoJEH9DgoDvjTSfbWYQALwafIQK9avVNIuhMsyYPa/yHf6rUOLqrYO1GCmj
+vyG4cYmryzdxyfcXEmuE5QAIbEKSISrcO6Nvjt9PwLCjR/dUvco0f0YFTPv+kamn
++Bwp2Zt6d3MenXC6mLXPHR4OqFjzCpUT8kFwycvGPsuqZQ/CO0qzLDmAGTY+4ly3
+9aQEsQyFhV3P+6SWnaC2TldWpfG/2pCSaSa8dbYbRe3SUNKXwT8kw3WoQYNofF6n
+or8oFVA+UIVlvHc5h7L3tfFylRy5CwtR5rBQtoBicRVxEQc7ARNmB1XWuPntMQl/
+N1Fcfc+KSILFblAR6eVv+6BhMvRqzxqe81AEAP+oKVVwJ7H+wTQun2UKAgZATDWP
+/LQsYinmLADpraDPqxT2WJe8kjszMDQZCK+jhsVrhZdkiw9EHAM0z7BKz6JERmLu
+TIEcickkTfzbJWXZgv40Bvl99yPMswnR1lQHD7TKxyHYrI7dzJQri4mbORg4lOnZ
+3Tyodv21Ocf4as2No1p6esZW+M46zjZeO8zzExmmENI2+P7/VUt+LWyQFiqRM0iW
+zGioYMWgVePywFGaTV51/0uF9ymHHC7BDIcLgUWHdg/1B67jR5YQfzPJUqLhnylt
+1sjDRQIlf+3U+ddvre2YxX/rYUI2gBT32QzQrv016KsiZO+N+Iya3B4D68s6xxQS
+3xJn
+=mMjt
+-----END PGP PUBLIC KEY BLOCK-----",
+          }
+        EOS
+
+        #Apply the manifest (Retry if timeout error is received from key pool)
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          apply_manifest(pp, :catch_failures => true)
+        end
+
+        apply_manifest(pp, :catch_changes => true)
+        shell(PUPPETLABS_KEY_CHECK_COMMAND)
+      end
+    end
+
+
+    context 'multiple keys' do
+      it 'runs without errors' do
+        pp = <<-EOS
+          apt_key { 'puppetlabs':
+            id      => '#{PUPPETLABS_GPG_KEY_FINGERPRINT}',
+            ensure  => 'present',
+            content => "-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
 
 mQINBEw3u0ABEAC1+aJQpU59fwZ4mxFjqNCgfZgDhONDSYQFMRnYC1dzBpJHzI6b
@@ -150,234 +233,240 @@
 f4CR5+ba+w2dpuDeMwiHJIs5JsGyJjmA5/0xytB7QvgMs2q25vWhygsmUQARAQAB
 tEdQdXBwZXQgTGFicyBSZWxlYXNlIEtleSAoUHVwcGV0IExhYnMgUmVsZWFzZSBL
-ZXkpIDxpbmZvQHB1cHBldGxhYnMuY29tPokCPgQTAQIAKAUCTDe7QAIbAwUJA8Jn
-AAYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQEFS3okvW7DAZaw//aLmE/eob
-pXpIUVyCUWQxEvPtM/h/SAJsG3KoHN9u216ews+UHsL/7F91ceVXQQdD2e8CtYWF
-eLNM0RSM9i/KM60g4CvIQlmNqdqhi1HsgGqInZ72/XLAXun0gabfC36rLww2kel+
-aMpRf58SrSuskY321NnMEJl4OsHV2hfNtAIgw2e/zm9RhoMpGKxoHZCvFhnP7u2M
-2wMq7iNDDWb6dVsLpzdlVf242zCbubPCxxQXOpA56rzkUPuJ85mdVw4i19oPIFIZ
-VL5owit1SxCOxBg4b8oaMS36hEl3qtZG834rtLfcqAmqjhx6aJuJLOAYN84QjDEU
-3NI5IfNRMvluIeTcD4Dt5FCYahN045tW1Rc6s5GAR8RW45GYwQDzG+kkkeeGxwEh
-qCW7nOHuwZIoVJufNhd28UFn83KGJHCQt4NBBr3K5TcY6bDQEIrpSplWSDBbd3p1
-IaoZY1WSDdP9OTVOSbsz0JiglWmUWGWCdd/CMSW/D7/3VUOJOYRDwptvtSYcjJc8
-1UV+1zB+rt5La/OWe4UOORD+jU1ATijQEaFYxBbqBBkFboAEXq9btRQyegqk+eVp
-HhzacP5NYFTMThvHuTapNytcCso5au/cMywqCgY1DfcMJyjocu4bCtrAd6w4kGKN
-MUdwNDYQulHZDI+UjJInhramyngdzZLjdeGJARwEEAECAAYFAkw3wEYACgkQIVr+
-UOQUcDKvEwgAoBuOPnPioBwYp8oHVPTo/69cJn1225kfraUYGebCcrRwuoKd8Iyh
-R165nXYJmD8yrAFBk8ScUVKsQ/pSnqNrBCrlzQD6NQvuIWVFegIdjdasrWX6Szj+
-N1OllbzIJbkE5eo0WjCMEKJVI/GTY2AnTWUAm36PLQC5HnSATykqwxeZDsJ/s8Rc
-kd7+QN5sBVytG3qb45Q7jLJpLcJO6KYH4rz9ZgN7LzyyGbu9DypPrulADG9OrL7e
-lUnsGDG4E1M8Pkgk9Xv9MRKao1KjYLD5zxOoVtdeoKEQdnM+lWMJin1XvoqJY7FT
-DJk6o+cVqqHkdKL+sgsscFVQljgCEd0EgIkCHAQQAQgABgUCTPlA6QAKCRBcE9bb
-kwUuAxdYD/40FxAeNCYByxkr/XRT0gFT+NCjPuqPWCM5tf2NIhSapXtb2+32WbAf
-DzVfqWjC0G0RnQBve+vcjpY4/rJu4VKIDGIT8CtnKOIyEcXTNFOehi65xO4ypaei
-BPSb3ip3P0of1iZZDQrNHMW5VcyL1c+PWT/6exXSGsePtO/89tc6mupqZtC05f5Z
-XG4jswMF0U6Q5s3S0tG7Y+oQhKNFJS4sH4rHe1o5CxKwNRSzqccA0hptKy3MHUZ2
-+zeHzuRdRWGjb2rUiVxnIvPPBGxF2JHhB4ERhGgbTxRZ6wZbdW06BOE8r7pGrUpU
-fCw/WRT3gGXJHpGPOzFAvr3Xl7VcDUKTVmIajnpd3SoyD1t2XsvJlSQBOWbViucH
-dvE4SIKQ77vBLRlZIoXXVb6Wu7Vq+eQs1ybjwGOhnnKjz8llXcMnLzzN86STpjN4
-qGTXQy/E9+dyUP1sXn3RRwb+ZkdI77m1YY95QRNgG/hqh77IuWWg1MtTSgQnP+F2
-7mfo0/522hObhdAe73VO3ttEPiriWy7tw3bS9daP2TAVbYyFqkvptkBb1OXRUSzq
-UuWjBmZ35UlXjKQsGeUHlOiEh84aondF90A7gx0X/ktNIPRrfCGkHJcDu+HVnR7x
-Kk+F0qb9+/pGLiT3rqeQTr8fYsb4xLHT7uEg1gVFB1g0kd+RQHzV74kCPgQTAQIA
-KAIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AFAk/x5PoFCQtIMjoACgkQEFS3
-okvW7DAIKQ/9HvZyf+LHVSkCk92Kb6gckniin3+5ooz67hSr8miGBfK4eocqQ0H7
-bdtWjAILzR/IBY0xj6OHKhYP2k8TLc7QhQjt0dRpNkX+Iton2AZryV7vUADreYz4
-4B0bPmhiE+LL46ET5IThLKu/KfihzkEEBa9/t178+dO9zCM2xsXaiDhMOxVE32gX
-vSZKP3hmvnK/FdylUY3nWtPedr+lHpBLoHGaPH7cjI+MEEugU3oAJ0jpq3V8n4w0
-jIq2V77wfmbD9byIV7dXcxApzciK+ekwpQNQMSaceuxLlTZKcdSqo0/qmS2A863Y
-ZQ0ZBe+Xyf5OI33+y+Mry+vl6Lre2VfPm3udgR10E4tWXJ9Q2CmG+zNPWt73U1FD
-7xBI7PPvOlyzCX4QJhy2Fn/fvzaNjHp4/FSiCw0HvX01epcersyun3xxPkRIjwwR
-M9m5MJ0o4hhPfa97zibXSh8XXBnosBQxeg6nEnb26eorVQbqGx0ruu/W2m5/JpUf
-REsFmNOBUbi8xlKNS5CZypH3Zh88EZiTFolOMEh+hT6s0l6znBAGGZ4m/Unacm5y
-DHmg7unCk4JyVopQ2KHMoqG886elu+rm0ASkhyqBAk9sWKptMl3NHiYTRE/m9VAk
-ugVIB2pi+8u84f+an4Hml4xlyijgYu05pqNvnLRyJDLd61hviLC8GYU=
-=a34C
------END PGP PUBLIC KEY BLOCK-----",
+ZXkpIDxpbmZvQHB1cHBldGxhYnMuY29tPokBHAQQAQIABgUCTDfARgAKCRAhWv5Q
+5BRwMq8TCACgG44+c+KgHBinygdU9Oj/r1wmfXbbmR+tpRgZ5sJytHC6gp3wjKFH
+XrmddgmYPzKsAUGTxJxRUqxD+lKeo2sEKuXNAPo1C+4hZUV6Ah2N1qytZfpLOP43
+U6WVvMgluQTl6jRaMIwQolUj8ZNjYCdNZQCbfo8tALkedIBPKSrDF5kOwn+zxFyR
+3v5A3mwFXK0bepvjlDuMsmktwk7opgfivP1mA3svPLIZu70PKk+u6UAMb06svt6V
+SewYMbgTUzw+SCT1e/0xEpqjUqNgsPnPE6hW116goRB2cz6VYwmKfVe+ioljsVMM
+mTqj5xWqoeR0ov6yCyxwVVCWOAIR3QSAiQEcBBABAgAGBQJUCeGFAAoJEBM5V+oR
+Ao3zE3AH/1GQTS4JX3kS3WXE2Pi8L+gGylfYsf1dDbaDBX8mPfxKO6usZZmX9fIu
+qQwQDIEksGrdcb6nrGecHufJDbLmFZiE77LjjoREFlG9tEyaIAVSCw/vyng9wVo8
+InDF7j1VHuUueh6eu+yvLjUrFuh3CVNHcx2rEIFzx+X5660TbbRfMgxLpTMkkb4w
+7DQjCUmFQD4yLzZzXAzjELc/TgsFGZc3lxo7UuzwX0ZEm15WjrdYwvtMU1TGjjI2
+6dgk24K3Kb2OeUnCybQ1mLx6qVx0aFd21beKRG9u3Stp8HHXpfLh/aznbCY5JavO
+ShOXgNgq3f0/UImLjyuFv27x0HQFxfeJARwEEAEKAAYFAlQHuw4ACgkQpHBvotfb
+FDW/pwf+J6JBPpUHi/EsuLLbqDTQjGbnMTsH35pZRApKheaISPRZH8oqgdmWE599
+6e5GwnXMoBJoUvU0VbcO7aEarWlKmO6dpTKsfvjP+PtiSBeXUa8ewNcTq5N0Z7O5
+IwF2CiHrSTEcySjjboMKJHS/vQCmsLg1j+MA7wq3quzX0vQsGBX3X1x+n2KOH4s8
+BGoXFJs6sM1SInnqkPwryCesj61zc9I72kTM6IsG17X586INWMHoMDzpF/hTWKKw
+2c0kFMDIJDpU+KBKr/e4mbKrp8ToP64GjB0MOx6MqjZI6I3k1PQu8zgWmOQ+yQhI
+e/UfB8u+eGbhDwUMqKBEHUzV3b5lj4kCHAQQAQIABgUCUeTczgAKCRBKMwua1kj6
+4/mED/9RNl8PfjS6SKnqM+UzPHBIP9BqnC07sPiCwZOxd7MOQ73sPbV3Wk1o1PRG
+tcAxqDCTUSUPGaf9gdQN8yi9lrZspqCNaZXfzGRaz4+uHU/ji9QMbfQIBTopn6ZM
+YtRuiV868N98JOb0yfWLaTEVonFtWFZHrNHbwplHbyzUgGyup5MKSxh90p2S7DX+
+PznSFbwwzeE8En/jxUvHlAQV+eVfC3V+n4vKAC+sjInDu8m2xr1CMIiRCTa1y/vu
+uGSJnoAO2GBUjHmPfINZKbicuoWnBtBMqs1GsJvldsv+ggx4cm4UgJvYdyQNLUq4
+pceaq8O4uhGvT/AURkymzldB6+iZRrsmQx5LmP0C5sIbiDXMoS089oYOx8MoGWMI
+cErBTKxCPmgZTnDxW+U4+dLrYMF+yBTbLmKmaYhNiSNI4votfA7rEbn+zEDxzKgl
+KZs3bzqKZxjoAeWhOKK7r83tSz4I2uHD9XscC6fnp61YGfdtlYJEYYA8XeomvjLa
+xQxjQTcdrs48Qcgp8FvgyImelee1ZPbydB8Xd2VMVO2EDPBydlyHHZ6zjKt8Neff
+djh6KyrFYJtOW4StdSiBQQofUqiFJq1gy3F6dy/ttSXMivbbNJQJjJV/1zKDnSQH
+L7Qnux4SmobkrlHzP2z/rcFPk6CGaLpsHazmIrl8G3dO7UhinIkCHAQQAQIABgUC
+VAesWAAKCRBGnps2mw8PHet2EACTyXdYh4kXGgSwQpY8hUJwd9FPrXPyYMTfeJFq
+kIBpG/q60Q72Kqvn0AqUSmnROoKzPnwYW/jE+89tx1JBAT+8EtRAJvJaNH9Hovw4
+S3GV5wqImdsmIqJUxl8lh9moB9zfpsqWz2Laa1Xn/TGwmLl/zFL0PWQ4rv8r6pZ/
+OhEE/pnqZDLh/+6PxYmQRsIvDfmeVd57XSYLnT6JNXkAYBnmMouw+L7b2B9LWMIs
+10lfjdOCplNE1FCTFS7K/j13x8Cyul6yF6eeq+rd5ftcw84XW+1qh3Jsw4bSNc0Z
+LvGh7zgRznEWhxZrcGzWwtxnEG1aW7wXiDJ/kqAvBNP1LOhIQQH2NVp3oRW+hB1o
+Cb/pbIht3xin7g5EJ0cpplTKNvfVdcitIflpgV9CT51oNkV7dVCtkXbFxwGdxP1L
+CnYmfJ8IBumX6a3ue741E1tHHp2dZOHXWiMUI6TjYISQjx4KiiFTXJRpMsm5AQDi
+ps+TSnF5TsNJ4776aAhP0hTN6Wy864NRoWEPs9OHltmZFCHzzTixQZrNxaUvLALP
+vCmQ++U8f4mxD1+/eLXSzcfWolUoqyneTH/DEWpYXaoE5NalLfmoH7WxCR32LXWR
+tJ748SZXI5SFjOzIzLsFr/qq36hGqDb7fqsc4LSz8uvJYo7vAdvkSUL2mkHeX4lD
+QzwR/4kCHAQQAQgABgUCTPlA6QAKCRBcE9bbkwUuAxdYD/40FxAeNCYByxkr/XRT
+0gFT+NCjPuqPWCM5tf2NIhSapXtb2+32WbAfDzVfqWjC0G0RnQBve+vcjpY4/rJu
+4VKIDGIT8CtnKOIyEcXTNFOehi65xO4ypaeiBPSb3ip3P0of1iZZDQrNHMW5VcyL
+1c+PWT/6exXSGsePtO/89tc6mupqZtC05f5ZXG4jswMF0U6Q5s3S0tG7Y+oQhKNF
+JS4sH4rHe1o5CxKwNRSzqccA0hptKy3MHUZ2+zeHzuRdRWGjb2rUiVxnIvPPBGxF
+2JHhB4ERhGgbTxRZ6wZbdW06BOE8r7pGrUpUfCw/WRT3gGXJHpGPOzFAvr3Xl7Vc
+DUKTVmIajnpd3SoyD1t2XsvJlSQBOWbViucHdvE4SIKQ77vBLRlZIoXXVb6Wu7Vq
++eQs1ybjwGOhnnKjz8llXcMnLzzN86STpjN4qGTXQy/E9+dyUP1sXn3RRwb+ZkdI
+77m1YY95QRNgG/hqh77IuWWg1MtTSgQnP+F27mfo0/522hObhdAe73VO3ttEPiri
+Wy7tw3bS9daP2TAVbYyFqkvptkBb1OXRUSzqUuWjBmZ35UlXjKQsGeUHlOiEh84a
+ondF90A7gx0X/ktNIPRrfCGkHJcDu+HVnR7xKk+F0qb9+/pGLiT3rqeQTr8fYsb4
+xLHT7uEg1gVFB1g0kd+RQHzV74kCPgQTAQIAKAIbAwYLCQgHAwIGFQgCCQoLBBYC
+AwECHgECF4AFAk/x5PoFCQtIMjoACgkQEFS3okvW7DAIKQ/9HvZyf+LHVSkCk92K
+b6gckniin3+5ooz67hSr8miGBfK4eocqQ0H7bdtWjAILzR/IBY0xj6OHKhYP2k8T
+Lc7QhQjt0dRpNkX+Iton2AZryV7vUADreYz44B0bPmhiE+LL46ET5IThLKu/Kfih
+zkEEBa9/t178+dO9zCM2xsXaiDhMOxVE32gXvSZKP3hmvnK/FdylUY3nWtPedr+l
+HpBLoHGaPH7cjI+MEEugU3oAJ0jpq3V8n4w0jIq2V77wfmbD9byIV7dXcxApzciK
++ekwpQNQMSaceuxLlTZKcdSqo0/qmS2A863YZQ0ZBe+Xyf5OI33+y+Mry+vl6Lre
+2VfPm3udgR10E4tWXJ9Q2CmG+zNPWt73U1FD7xBI7PPvOlyzCX4QJhy2Fn/fvzaN
+jHp4/FSiCw0HvX01epcersyun3xxPkRIjwwRM9m5MJ0o4hhPfa97zibXSh8XXBno
+sBQxeg6nEnb26eorVQbqGx0ruu/W2m5/JpUfREsFmNOBUbi8xlKNS5CZypH3Zh88
+EZiTFolOMEh+hT6s0l6znBAGGZ4m/Unacm5yDHmg7unCk4JyVopQ2KHMoqG886el
+u+rm0ASkhyqBAk9sWKptMl3NHiYTRE/m9VAkugVIB2pi+8u84f+an4Hml4xlyijg
+Yu05pqNvnLRyJDLd61hviLC8GYWJAj4EEwECACgFAkw3u0ACGwMFCQPCZwAGCwkI
+BwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEBBUt6JL1uwwGWsP/2i5hP3qG6V6SFFc
+glFkMRLz7TP4f0gCbBtyqBzfbttensLPlB7C/+xfdXHlV0EHQ9nvArWFhXizTNEU
+jPYvyjOtIOAryEJZjanaoYtR7IBqiJ2e9v1ywF7p9IGm3wt+qy8MNpHpfmjKUX+f
+Eq0rrJGN9tTZzBCZeDrB1doXzbQCIMNnv85vUYaDKRisaB2QrxYZz+7tjNsDKu4j
+Qw1m+nVbC6c3ZVX9uNswm7mzwscUFzqQOeq85FD7ifOZnVcOItfaDyBSGVS+aMIr
+dUsQjsQYOG/KGjEt+oRJd6rWRvN+K7S33KgJqo4cemibiSzgGDfOEIwxFNzSOSHz
+UTL5biHk3A+A7eRQmGoTdOObVtUXOrORgEfEVuORmMEA8xvpJJHnhscBIaglu5zh
+7sGSKFSbnzYXdvFBZ/NyhiRwkLeDQQa9yuU3GOmw0BCK6UqZVkgwW3d6dSGqGWNV
+kg3T/Tk1Tkm7M9CYoJVplFhlgnXfwjElvw+/91VDiTmEQ8Kbb7UmHIyXPNVFftcw
+fq7eS2vzlnuFDjkQ/o1NQE4o0BGhWMQW6gQZBW6ABF6vW7UUMnoKpPnlaR4c2nD+
+TWBUzE4bx7k2qTcrXArKOWrv3DMsKgoGNQ33DCco6HLuGwrawHesOJBijTFHcDQ2
+ELpR2QyPlIySJ4a2psp4Hc2S43XhiQI+BBMBAgAoAhsDBgsJCAcDAgYVCAIJCgsE
+FgIDAQIeAQIXgAUCVwb4BQUJDDXSzQAKCRAQVLeiS9bsMLwBEACtdY+PvfNw8SFu
+RpIM2rvdjGsEfJPKpUK5Dx90m1NSVyhMwQeYLdBb0GGgeGjjX8E5kCqhsD53VPWH
+AD13nPc3zCeiDJiwpjYXeuGIH7AOG+gZZDLdy14myEN0JQIXQslOK8SiaTn/yI4s
+2Lrje0Ubf6wbJ3uX9MwsqIkugkJrYn9e1BC1uPgESbE1SjiIbB4iL8lrxE6fdyxc
+QnUEzneOFQ9kScfPc/M5U9COMuQOuoefiAEh+FRrjxf9ag3NzecTlwk/EdpgmfSj
+a+ClS+BJv83zYForrHRfUU1SDiueuWXAH1OTaUpAsZIiXpigTB4X3hLJXB1iKoA1
+TEM/9bZGPdJsS1mwUUy3ukDW1rhOodxojhN1XhT3f7X9Cl8lKxKw1tloRijfL3n4
+njwk6hEyKaURTo4iOs12HDlBZV3zhWONNZTvqrFMkz4OB+q8RGpfO8G4Mbba+fNQ
+2At+cAWmGCoZeX3KfyRtqYe6vtKJf5ptQZgjl3EFPl6OxKjopzomB7o9lXbxARgO
+6Pf9NSyYwlv0sNfy88N5iSsa7Sw7yi9t9tO5KFGoGYLmXXgyjvNZrE8KMh6/hJOW
+HsW19noVdogd73q+gjRAl+eZ4J1nKpbSPkbufNoD8uB/j3rr5/sRJrtvVnMTJXwC
+iTItalyg7XRJSQ9kAqzvRlxdGobo95kCDQRXtiM+ARAA6m7/51pkdum7Ir0wzi6q
+3wRL0bvZEnwzM2IfQZopNQPGdN+hIIefk2Q/Ea3eUxKy0OnmRZkF5PcihaGvfwuG
+gY5rC/7tMnjJlW+/+uovsd3gGBi81RcrpwK47Xn2csatAdpnURxPJMJeVxpfNNeU
++URhwkxIaV9eDvcooCO4LZYkaGXJd4X17XnXL8Hjn/Va1freSxeD62Xo6JvFXAeQ
+hNqXUPttymQ+PPgsf7B0ixw7WoTk0OR4MDiyu6wZZfHYxYCKj/1L4Tqp2RiLIODM
+071nf78Gp6HH2PAT8MKHaV+qz1Kw9mlz7Gj3jN0NI7g5yU9N3OItI8AqGD4POubK
+gQa6TkMnn8Vg+lMximJGW2inqG60wcVClJWs+WoEitdo+DfnKlbmVAQFnKJFy0a3
+H7beeQfI8/zMIcfJJekLa583KPbQRk+STeb1zJBEw4zf06nwdA9DrC02Dqd44+Ia
+TKRt++0Pug+9WLsHwLIpH56VLRAcXjYsV7igCKq4BvLa3zg1fsmGFs33TNr7rmIm
+VvaRgHZvGqPiWpQ2bLNxy+6FWF0iaTCI44Yu/G3rjX5ZHS++gAsvNbdk76caD6FC
+BtPfJFt8Xe9tKKkJMliU4DPsFfemw8nJkYDUKb6h2ClrWSMmQk8ys00yHaoP7GxP
+w/HBxpqMtHh1A7IXBNBLcbEAEQEAAbRIUHVwcGV0LCBJbmMuIFJlbGVhc2UgS2V5
+IChQdXBwZXQsIEluYy4gUmVsZWFzZSBLZXkpIDxyZWxlYXNlQHB1cHBldC5jb20+
+iQI+BBMBAgAoBQJXtiM+AhsDBQkJZgGABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIX
+gAAKCRB/Q4KA7400nyDdD/43AkcyvFiHYXDc+XZI+8UWW/Dn7dsg33p0Js29UsBh
+mveiMCRXIxeDau8pnA1Krp0tgxA29oArnLKpltbm5GoILGG3Pb6M/0kMIbEKQY31
+m7sjl/Q1plumr/2gdRfOcD+/YMn6k7onUxsUBOhIQ2y3u7br8Th3zNWyrFLSPtJ/
+UwCyyx311BHbWlwsDJSbjtSCJ9T1mh+x88hI8Ojlv3Mu96DPZ7hKwSIqNTutLJTy
+zltlzYXVmSQkVpHF8rrpkY6Hqc+1jdSYLCzk3Ae63EGgT96QzdDvzpuXZQ0OqGIr
+aCbPxdIHxIMCuvFMvJPLFEfhSyyajKNAsDoOgnllOEoQBHdcWcVWFulTjipc/cfX
+b4yFQ59kpUwQ5i0vfckpUEue64xj3xsJUVJ7mT+DnkrqBTTSTW/TzulxUj+unjRx
+WxKSKAVO6YQc8FqU1zbFvpAHGPEZ6PBsykf9hUbMXuTYX4fMcvPFOwQNLasVnaqZ
+P8pvsA3IBwX0kbdHTxZ22hwIjEZYFyfzTxwULZKBHUEygPiAsXDU1DL7Dw0IGXFN
+f1YizDfupGWhjQ1XD3jIA76sbtHv0297mIiHd/B2Gx5g+qw6zkC/9lTz123Rm8Qx
+kFIF9Q33TrhV8NYUk4pcCNSnV8VFw7ArGW3IYJYqhnCNZdhJ+tvuqSNseV0Kqoie
+/okBHAQQAQoABgUCV7d12AAKCRATOVfqEQKN8xl+B/0cdW8EhjyBXFWi4B0RzVXR
+TIi5vUEe2mL+/cwt/qD70VJbe6Vy2X1VwGX5QrpMtjSnouGAa7aMU+oYXlzz+RPW
+MtJTWMMVgOidRnAWw61wFAabZLFyJfVUg/QxI/sUQYkA3VC1XxSHLK+bjfglULRC
+Q+JKpuK2D1jz0SrJhQtX6IGkVmT0t1tlwMUWhW3EIuHpc8TwvgxP0wjg8KLd01vK
+KJTRLNb6Z3pFlT8rEF0Cw5LFReJM8i4+w1DqIy18xMkuDh09WBJhhCUH8LIHgGlz
+D5p3fRmbtkW6T/wpjP2XR+eiGABJ0nr4WTDAwWn9SxnjXapp/QvKd+lOPRYUqRB5
+iQEcBBABAgAGBQJXt3igAAoJEF5FJ36WgCWsN2wH/RBYyRHcIXW3F3oYS884JNj+
+KA4Fl04kmuF9oQ3OnF8JYaYyZ1uuRErGH1UB8BVxTudKcowGCYi8AV4iQHSLx5dr
+qY0w2MVlcxC2+8vUYEHYXU2i9EoGa6vwIJU+oSB/evnCJGe5DmzR6EbgQPADlkX3
+IW8GzrnPionDJhP7POwOY4HNOOBRm6AfAE3JMjH++TUuEgAuB0urjCNPmZ2/t9ic
+uSS5hDp5HepoaQ2rfEI1Df+/wd8vXAD5Zdi1wZhmDWX8pq/spdAgV4/kMlcKzdRS
+FINyA4wajLVLfsYPavBCW18aHV6pEBc9mdhQ3xsqardcnyX+rd9kMgXKsG69WAGJ
+ARwEEAEKAAYFAle3ca8ACgkQpHBvotfbFDWkRQf8CZtvvGM1sHJk7l07KDmG2zSM
+rWb/GPsySK+DZRZDBJz3m7FWazWnfb2cuqRSMnoDDvnjg5EVSFqdZ3GaTsjKFBNe
+NnLp/dC+sjSfKoi+a1iCP5wuhiXOwwWz4O45ekYUKrIwCXh3C32mtnqc6460YQwp
+a1pdGqEeGq4aqcZPHUYAb294GuelA1TUkxibCIIDo5f223UNwGV3m9LPTyf0uOwO
+1cht4ZdvccWBFXuDvzMQ9AGh6jHq8SX1uopQkEOY8AY53Lul6ubHzoHIvrld/GaQ
+9osF1dm2/llGtHbQDqnVYVXg+lLNqW0u6JhNSE/EHDi9S2zWmK8J60m4akJRRokB
+HAQQAQgABgUCV7eBzwAKCRDfnAdsUd5/xDeuB/0aVR8KKFpEjV+mYspTMJMUi0ku
+0iqXYqVmvMCfrwP2fzKu2MbLqWjgutG9RiwtrMmqaRPx+AYGJMU6k/TVd9bxWP8+
+vxvZzsEz9lPIoH6xCEAgA6AQ6TIYswwU0G6duR/iRUtn57oTixfoFazUFXriY3yk
+gAeSphPmG2ZBVU/VEvht6qjkKrxIT46sjNEl5+5R3R9EekrW19D9S0TjtjPOGjfo
++6ZMxKWlGW5gCREliuSTQY1/56MTQdrA6bFdiim0TPftC+aK+6l2kzTyVbygBPPo
+8/p30iOYHOX179HZNwGyGnP9fNxaURLsx7Zymaf2esA4mGVApDDE6QrZbeGHiQEc
+BBABCAAGBQJXu01KAAoJEOe7Y9N+knoevtAH/2VjCnLU1xc25iuIDnDKtPdgdclY
+tV5w4kLpDxo1WTieCPOjSK5Xbsfe9eSSSqjgsHm1EkejunzuDcmm57LXfcdf3MA3
+1u6qIkS/fdctj9hkEMonEeWN2NnyYLAkcjWf6+I4u/qhM8BdoT/UmB80rgdq07yr
+14zxMhetoZaqcLMCtZuaVpQMmoa/SbaADQSISiYRN3xWeZUmeWBjU10avK7YeRMN
+tyYTCAsRCvrwcKTN9XKdzHgm5kMZfo9UDuqnD2TsUxDwRcwYfe1+ZiHWV6sWZtGv
+zPqJ4t7fUO8tlo3LnCCdZRXp3U5i9G8f4xZCkH0fY2kEMHMxOn4T5NS1WxmJARwE
+EAEKAAYFAle3euIACgkQutXwo5LphXJtOAf/QvpHm4MsGYMFe0GamNcfCqgPQBfr
++/7SIreIG9BJDpsB+JkNZX3+tcZR5m7tfXl7Zt8+t+ENJVs62FPPzOA8EuXQAMGW
+NkyQlV9Y4lFerccUX3gK3rP4BMxTQ372quGXfOIeYwUmTEPaA0me6M0ODla3jT+g
+dl9HSwCCLTfv4/2djK/Oi/+m1r3grfeFLbOjoznR4xZoPbWFBWCn7iweWE3B6r1X
+n+99DEaLmuEG4Mk8ohlKzIgReZ1wTkHcIt27GG60to8TUhbgqtGcOtE3Qc9hxZXh
+wRbYaNFM8gkIAmo4eJuuWd+VWjnMeFH9JKtcrSEgMhI/qyt97c8g5497sYkBHAQQ
+AQoABgUCV7d67gAKCRCCRVGYVPwajc8QB/93fnBi8sKAaaWIjFA5ZrZkjZEsVE2a
+y8G4hCKUPFk8qwacVSC78I/yFqZPhy1DE2zsXEQEdu9VBNxVvEHuRBrs79XU7L92
+8xtdzEZF06my+xqYhhgBTqK1VguU4ayD9jKNgE1jGjPnHPFcjLaadyEtDDk9MMwC
+fzvtFPGepRi1LYRMYxR4CNxAvAlgb0uVnZ+9dEfo9nfBfRL7ACLtnQbkazJZXyfP
+zKeRmxlA9RTRlGm+ufHN5TgzsKFiTBbkQOF51ItAVJcKZVEARuyuMqWXIlZyURXq
+kG9x1jAx0oZDW2iVRb6Ft21pAJd5P1ovGacX6EhTubAeAmlkqvmuPh3viQEcBBAB
+CgAGBQJXt3sHAAoJEDy4a/JFI238WrgIAJS1gtpqw/tzyeAgopnKUyl+/ocCWoye
+0wkS4/9QLzttQ718oDeb1EIcGnQEkazES1NAPoHAnc6TbvPfu71sfPqiTVMRE4VI
+6AwXdjNT8ZWi0ip8fog1YVzFBxxMpYThDAPqkKPQG3kj3TAUMpmTlM/h63ndOOOU
+5clUmuqT2agX7Xo/lP4qApcvcXe/EhwtWttYkFW9pPtjXUoHA7R4iEw/HZZRGvgi
+RRuVkVnta63SBMasyypO8Km35dg/UAE4RRsPV1QLwl+uqgvD6zGt3A8+GNEXoAki
+agKt8GJ43DlsD8aDkFzsp0E2iQ+idkqkqy7FXJMe4eG/LL4WG72fNL6JAhwEEAEC
+AAYFAle3e60ACgkQyXOBc2z4R/lCtQ//SCePwH2R35N2h9EMYsCH9iypJmFWMcwN
+HlEXOKmJrQ3viD0X3iXEa2SNRKKK7Evn3ggN9zbKwLLBIvZimut8LBLiF6TFnK/u
++8kZxGHLW0dhR/IokUY5zadx/E1F0C0IAkY7hNh791K6e7rwjw49pxSUnAQ00YMc
+hNFeuq+IRtty+Jnw8uYz9m5CRAzBqPeAQ3mtXeYgkNPWEMQSTW5FDHnINlZItup9
+BSwIQxYJymKFkG3YxcJsx18dQNuVdzhg81b4XS35C2mOjlOhUsD+5Pp+8L0SQ3GC
+u3qj/xXazdB9U0yJIs0u3JYb1Rl73v/fQji6UYyU/4TbEAhjl4n8JRgje1bJ4W1g
+ugjalCM9YVaLrgjf5CIf0t8rn3G4Hl26ddNm/VroTCMLKXvg4kdFKF1oc6xImqoo
+WJblVa4B4la9LxuRsgN9PamGlBUg1cDUftjpSstW1PYQPiGhc0jJh8vXNmIg5fzq
+5dcLLWXOlrQOkg4ce30YzDculzn6ntBl30sCzVi/hxQrX3c0cpAqgRT3azAkO7JT
+4J8fXO8CyAwuXjpDv6g4N9xfIdgTrbtqgnZb3MzOzpd11s7Q6ypCcEZVxt+FKVS1
+LgzJoWMQNVJ31sBwI1KenfB2/YfF6uILtpdFM+soKt86IvQub726rw56JWrIiP8w
++ojBTcDZGM6JAhwEEAEIAAYFAle3gC8ACgkQEFS3okvW7DCFfQ//SduNnxVJqud1
++c1B+N1G/M3jfkMvSb6Sujb5/4qu5yL2Yo/PoTHesvqkFh5zILGuepCLI4ravZd7
+zyxy31o+egTC+adR4s6118k9swe9XDuZ+SNxBhK9A18pnaPcwa6b0j2q5KZI4klF
+DKCg3u+D6qJQ3jqMPKbfPymVn1LE4qzkj/SXll0Nxkw7jIapn30UNONdY+q2nXpZ
+Ej4xI01X66v9Zh/IRj8H0jwtJsTKfAoCkRmE9aJW4ywDUMJ0iHAqxYuGX2y617F6
+b1IY1JoWvBlNDTlCwj0v8xF6CK02JQecKhHl9hvAoAuJDhGIqSGkKH3ENAOFN6I0
+7orX6UrHDafphfqLYmEYCHJhz/QXC6Y4hxWS4cpcGbNqzfoerFkQimi0FT2lLPtn
+DH1OOvBvibKAVKkifkAUjYCGN4EJYI39x9VX1I++sqoXWZoAgRTGd7Ppm7PQFdvM
+pHQYDMLIzdFex5xvcQGrga1r7kOjUgpSP3rqBTgNfZtDNRucQE1iLOCu6Iias8HW
+B66ya5eN7tpAN3vXvtMs1qpOU7748HbUKTOPvccj6abxJ5OKFluK286eLMXW1hHP
+rB8I1WuIyYuqgtyuvdiRqhq0d+LyWuM2ZVos0usa03OtAuvnlaaTLE4qsW0cc73l
+TAUI89WEAZ4yrD+IIVbR8WNv+F0O0GaJAhwEEAEIAAYFAle3ge4ACgkQhyhST+Id
+P8Y9VBAAij8tXwW0Kl/cpJo0AEh1zPObs2ChFucwdj3DIbMOziV4d3cD/agGTL2H
+rjNQnfGqr+oxvBOPGTXFJGllhmXYFISWdWQFGNM0G8XF0/zlnMP6c7XEpmUmr0O1
+OQuTVi31lY3kBmFLuZiTmN4YENIo3vCG1z7P8hHb3jpDUR4112KZdqWnvTGznDsA
+lFTiNdlX9bU7eoQtFC0bueYv+rvHQ3PdzT4O8NBPuRhrfqVaaCUOERlUGuqjJzlK
+TfxRq949Ts7piTqlnwIgw+mWfuvyVtKcRnrIkTSMmDcojKnYmi8FjRQoEyZp5DOZ
+NLoJ5OMLCb3gyjQDLtGaPeDuLBiAPfb+dB+FtTplwbeevpOks/Cnbr8eCY2DflMd
+3cgOA7xT5NyoZrUY9nhlRGStqIjJ/QrB1orFt8hqisshGJLgGp+64wvbFORgXvcY
+3M2qoSeCRz03IFjeIf58TxcmaTC+aYffWTFKuGmvUKNCbGod20MyRtl5/xzQ3K5S
+bt9u6MXeLw50psnu/GzQEgN52dU36fsh3XNWQrlV3YdTihJHTSeFAs1LA/eg/qJL
+4WPGXmg/sBHFXuv4NC7aqI+0sUjlZfDk3aJCZHmnBTQ8izuvlUhhYy3+8N5D9i5E
+KjaIAsEoHGIljwcenI5lLZNSNqlREW3ZED7vJZrbblOWq7ezlhKJAhwEEAEKAAYF
+Ale3e7cACgkQAl2/Z5bsLy5UhA/+JZ/I5Zscici5SnbVKTIefcJWwlylWCale/IV
+0m+YXl1GTLOxNFMgeSHlISVDWeo1g22jtT/ln4mfYfKJFN+Hy2lHuknxqZOCwti/
+T6DDSCqk8SZBIJliESPp1yOC6a1I1LhZWGzq1fUc3JtPng/CuiFKgxVQvrKooFTT
+eFFzC3+S5Bjfcgz/vw/Hfuf8C2kMW6FFg3SQJIo1Iz8Z4C/f++J9kMKgkU7lfauK
+9B3teN5F7gavOMv1C3SeM7xv0smaayM+coSA29/8LOKbfc5oSucNldXMI9CZTWQa
+Kq7gfN5Lq7MPYDScS9UbEXAGQQIWsMIkeLadkdVpOqTjMfvnUX3d+rFdOCI4xFEA
+5mm9o2qsmKTdZtGBeoY1M1Quq4qITtZifqthe6cZ83YulyKCEZniqiQzfCjWYZoS
+tcW8rc+DIC/pakwRN7K7nZRNpoYb50+C+vlHfk7tuQuR3B95QFiOdfob9lSrnNtM
+pli+diK5g1xmBbhSCUvbSK22ELCEtek6CZxKvkQclscteEhvVDIiq6rl5fMZsQCz
+85L4fMX1HhVQ4fSPIIAfMi1sup36DEtTM9ensT8jKSB0gp9ZHsUAX+NA8PeUsjB1
+p6i7ywHuA0kS4NC8a7uACXgWyQq6rVZPn9w9ogu1k2KdtcHLcQSAgq8jB0Xw3056
+K7S6EVK5Ag0EV7YjPgEQAPNuzxaF0HEFrS0kGXhXPRusOBTdgOo2Sqetr9PXuRU8
+juzbtUSGgcRGZknXukqpvakSWmv2Y38XO43Q33C9Rq6Z32DHOw4JqbsM9Oa5Ii/D
+KyTf3WaMImRuijTVuG5Vd7YUGSA48XMAkQdgU/Ga7u1Y6YLE1iK65i3EvLBTuUL9
+mnoJm6rnvEmpRYrjsjnAMr3+KKCTBJvecOzoDYumQOYKv6tw7AuHlvENJ6Lu9hb7
+dM06Q+UL+Hp871094L0B/Jbqo91UVCrWalllyPUAvPvMWJyIgHg2sPc9OMOVGdok
+JYo9p9VKwxvIhaZBonTWJ+4TQ7CJqetq7xwjbrhVeYjmkD0LyT1/ZpUG4mIuxdos
+RvTcLMVbP0mkEu20D1xxpqbd95TYSacLexv3EP4huTGrmYoU3eUTNQAAipsjVBgZ
+lc+AvExjslK+hTECp4fCl/907YshSphSnHRsX8ZZFX1SqXyiY1BuHA/SnZf/QZ/G
+P0BuDYgkzwt467deTQcALDDJVeDFyCTkU774pmlM3eLKeOZsjMH2px31N5LONWH9
+EM9J2fkroCjnKe5sZiZo/AKT4N1UFEOWBajvI0gXg32sW5IwAQnEDWdLlNgWAg32
+gMXf8YeeBUZ8UK/gQbfJLTweTW0NXRuIp0rKlzHjTZMDBVFY/k/ObFzr9ldThmFl
+ABEBAAGJAiUEGAECAA8FAle2Iz4CGwwFCQlmAYAACgkQf0OCgO+NNJ9tZhAAvBp8
+hAr1q9U0i6EyzJg9r/Id/qtQ4uqtg7UYKaO/IbhxiavLN3HJ9xcSa4TlAAhsQpIh
+Ktw7o2+O30/AsKNH91S9yjR/RgVM+/6Rqaf4HCnZm3p3cx6dcLqYtc8dHg6oWPMK
+lRPyQXDJy8Y+y6plD8I7SrMsOYAZNj7iXLf1pASxDIWFXc/7pJadoLZOV1al8b/a
+kJJpJrx1thtF7dJQ0pfBPyTDdahBg2h8XqeivygVUD5QhWW8dzmHsve18XKVHLkL
+C1HmsFC2gGJxFXERBzsBE2YHVda4+e0xCX83UVx9z4pIgsVuUBHp5W/7oGEy9GrP
+Gp7zUAQA/6gpVXAnsf7BNC6fZQoCBkBMNY/8tCxiKeYsAOmtoM+rFPZYl7ySOzMw
+NBkIr6OGxWuFl2SLD0QcAzTPsErPokRGYu5MgRyJySRN/NslZdmC/jQG+X33I8yz
+CdHWVAcPtMrHIdisjt3MlCuLiZs5GDiU6dndPKh2/bU5x/hqzY2jWnp6xlb4zjrO
+Nl47zPMTGaYQ0jb4/v9VS34tbJAWKpEzSJbMaKhgxaBV4/LAUZpNXnX/S4X3KYcc
+LsEMhwuBRYd2D/UHruNHlhB/M8lSouGfKW3WyMNFAiV/7dT512+t7ZjFf+thQjaA
+FPfZDNCu/TXoqyJk7434jJrcHgPryzrHFBLfEmc=
+=TREp
+-----END PGP PUBLIC KEY BLOCK----- ",
           }
         EOS
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
-        shell(PUPPETLABS_KEY_CHECK_COMMAND)
-      end
-    end
-
-    context 'multiple keys' do
-      it 'runs without errors' do
-        pp = <<-EOS
-          apt_key { 'puppetlabs':
-            id      => '#{PUPPETLABS_GPG_KEY_FINGERPRINT}',
-            ensure  => 'present',
-            content => "-----BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.4.12 (GNU/Linux)
-Comment: GPGTools - http://gpgtools.org
-
-mQINBEw3u0ABEAC1+aJQpU59fwZ4mxFjqNCgfZgDhONDSYQFMRnYC1dzBpJHzI6b
-fUBQeaZ8rh6N4kZ+wq1eL86YDXkCt4sCvNTP0eF2XaOLbmxtV9bdpTIBep9bQiKg
-5iZaz+brUZlFk/MyJ0Yz//VQ68N1uvXccmD6uxQsVO+gx7rnarg/BGuCNaVtGwy+
-S98g8Begwxs9JmGa8pMCcSxtC7fAfAEZ02cYyrw5KfBvFI3cHDdBqrEJQKwKeLKY
-GHK3+H1TM4ZMxPsLuR/XKCbvTyl+OCPxU2OxPjufAxLlr8BWUzgJv6ztPe9imqpH
-Ppp3KuLFNorjPqWY5jSgKl94W/CO2x591e++a1PhwUn7iVUwVVe+mOEWnK5+Fd0v
-VMQebYCXS+3dNf6gxSvhz8etpw20T9Ytg4EdhLvCJRV/pYlqhcq+E9le1jFOHOc0
-Nc5FQweUtHGaNVyn8S1hvnvWJBMxpXq+Bezfk3X8PhPT/l9O2lLFOOO08jo0OYiI
-wrjhMQQOOSZOb3vBRvBZNnnxPrcdjUUm/9cVB8VcgI5KFhG7hmMCwH70tpUWcZCN
-NlI1wj/PJ7Tlxjy44f1o4CQ5FxuozkiITJvh9CTg+k3wEmiaGz65w9jRl9ny2gEl
-f4CR5+ba+w2dpuDeMwiHJIs5JsGyJjmA5/0xytB7QvgMs2q25vWhygsmUQARAQAB
-tEdQdXBwZXQgTGFicyBSZWxlYXNlIEtleSAoUHVwcGV0IExhYnMgUmVsZWFzZSBL
-ZXkpIDxpbmZvQHB1cHBldGxhYnMuY29tPokCPgQTAQIAKAUCTDe7QAIbAwUJA8Jn
-AAYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQEFS3okvW7DAZaw//aLmE/eob
-pXpIUVyCUWQxEvPtM/h/SAJsG3KoHN9u216ews+UHsL/7F91ceVXQQdD2e8CtYWF
-eLNM0RSM9i/KM60g4CvIQlmNqdqhi1HsgGqInZ72/XLAXun0gabfC36rLww2kel+
-aMpRf58SrSuskY321NnMEJl4OsHV2hfNtAIgw2e/zm9RhoMpGKxoHZCvFhnP7u2M
-2wMq7iNDDWb6dVsLpzdlVf242zCbubPCxxQXOpA56rzkUPuJ85mdVw4i19oPIFIZ
-VL5owit1SxCOxBg4b8oaMS36hEl3qtZG834rtLfcqAmqjhx6aJuJLOAYN84QjDEU
-3NI5IfNRMvluIeTcD4Dt5FCYahN045tW1Rc6s5GAR8RW45GYwQDzG+kkkeeGxwEh
-qCW7nOHuwZIoVJufNhd28UFn83KGJHCQt4NBBr3K5TcY6bDQEIrpSplWSDBbd3p1
-IaoZY1WSDdP9OTVOSbsz0JiglWmUWGWCdd/CMSW/D7/3VUOJOYRDwptvtSYcjJc8
-1UV+1zB+rt5La/OWe4UOORD+jU1ATijQEaFYxBbqBBkFboAEXq9btRQyegqk+eVp
-HhzacP5NYFTMThvHuTapNytcCso5au/cMywqCgY1DfcMJyjocu4bCtrAd6w4kGKN
-MUdwNDYQulHZDI+UjJInhramyngdzZLjdeGJARwEEAECAAYFAkw3wEYACgkQIVr+
-UOQUcDKvEwgAoBuOPnPioBwYp8oHVPTo/69cJn1225kfraUYGebCcrRwuoKd8Iyh
-R165nXYJmD8yrAFBk8ScUVKsQ/pSnqNrBCrlzQD6NQvuIWVFegIdjdasrWX6Szj+
-N1OllbzIJbkE5eo0WjCMEKJVI/GTY2AnTWUAm36PLQC5HnSATykqwxeZDsJ/s8Rc
-kd7+QN5sBVytG3qb45Q7jLJpLcJO6KYH4rz9ZgN7LzyyGbu9DypPrulADG9OrL7e
-lUnsGDG4E1M8Pkgk9Xv9MRKao1KjYLD5zxOoVtdeoKEQdnM+lWMJin1XvoqJY7FT
-DJk6o+cVqqHkdKL+sgsscFVQljgCEd0EgIkCHAQQAQgABgUCTPlA6QAKCRBcE9bb
-kwUuAxdYD/40FxAeNCYByxkr/XRT0gFT+NCjPuqPWCM5tf2NIhSapXtb2+32WbAf
-DzVfqWjC0G0RnQBve+vcjpY4/rJu4VKIDGIT8CtnKOIyEcXTNFOehi65xO4ypaei
-BPSb3ip3P0of1iZZDQrNHMW5VcyL1c+PWT/6exXSGsePtO/89tc6mupqZtC05f5Z
-XG4jswMF0U6Q5s3S0tG7Y+oQhKNFJS4sH4rHe1o5CxKwNRSzqccA0hptKy3MHUZ2
-+zeHzuRdRWGjb2rUiVxnIvPPBGxF2JHhB4ERhGgbTxRZ6wZbdW06BOE8r7pGrUpU
-fCw/WRT3gGXJHpGPOzFAvr3Xl7VcDUKTVmIajnpd3SoyD1t2XsvJlSQBOWbViucH
-dvE4SIKQ77vBLRlZIoXXVb6Wu7Vq+eQs1ybjwGOhnnKjz8llXcMnLzzN86STpjN4
-qGTXQy/E9+dyUP1sXn3RRwb+ZkdI77m1YY95QRNgG/hqh77IuWWg1MtTSgQnP+F2
-7mfo0/522hObhdAe73VO3ttEPiriWy7tw3bS9daP2TAVbYyFqkvptkBb1OXRUSzq
-UuWjBmZ35UlXjKQsGeUHlOiEh84aondF90A7gx0X/ktNIPRrfCGkHJcDu+HVnR7x
-Kk+F0qb9+/pGLiT3rqeQTr8fYsb4xLHT7uEg1gVFB1g0kd+RQHzV74kCPgQTAQIA
-KAIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AFAk/x5PoFCQtIMjoACgkQEFS3
-okvW7DAIKQ/9HvZyf+LHVSkCk92Kb6gckniin3+5ooz67hSr8miGBfK4eocqQ0H7
-bdtWjAILzR/IBY0xj6OHKhYP2k8TLc7QhQjt0dRpNkX+Iton2AZryV7vUADreYz4
-4B0bPmhiE+LL46ET5IThLKu/KfihzkEEBa9/t178+dO9zCM2xsXaiDhMOxVE32gX
-vSZKP3hmvnK/FdylUY3nWtPedr+lHpBLoHGaPH7cjI+MEEugU3oAJ0jpq3V8n4w0
-jIq2V77wfmbD9byIV7dXcxApzciK+ekwpQNQMSaceuxLlTZKcdSqo0/qmS2A863Y
-ZQ0ZBe+Xyf5OI33+y+Mry+vl6Lre2VfPm3udgR10E4tWXJ9Q2CmG+zNPWt73U1FD
-7xBI7PPvOlyzCX4QJhy2Fn/fvzaNjHp4/FSiCw0HvX01epcersyun3xxPkRIjwwR
-M9m5MJ0o4hhPfa97zibXSh8XXBnosBQxeg6nEnb26eorVQbqGx0ruu/W2m5/JpUf
-REsFmNOBUbi8xlKNS5CZypH3Zh88EZiTFolOMEh+hT6s0l6znBAGGZ4m/Unacm5y
-DHmg7unCk4JyVopQ2KHMoqG886elu+rm0ASkhyqBAk9sWKptMl3NHiYTRE/m9VAk
-ugVIB2pi+8u84f+an4Hml4xlyijgYu05pqNvnLRyJDLd61hviLC8GYWJAhwEEAEC
-AAYFAlHk3M4ACgkQSjMLmtZI+uP5hA//UTZfD340ukip6jPlMzxwSD/QapwtO7D4
-gsGTsXezDkO97D21d1pNaNT0RrXAMagwk1ElDxmn/YHUDfMovZa2bKagjWmV38xk
-Ws+Prh1P44vUDG30CAU6KZ+mTGLUbolfOvDffCTm9Mn1i2kxFaJxbVhWR6zR28KZ
-R28s1IBsrqeTCksYfdKdkuw1/j850hW8MM3hPBJ/48VLx5QEFfnlXwt1fp+LygAv
-rIyJw7vJtsa9QjCIkQk2tcv77rhkiZ6ADthgVIx5j3yDWSm4nLqFpwbQTKrNRrCb
-5XbL/oIMeHJuFICb2HckDS1KuKXHmqvDuLoRr0/wFEZMps5XQevomUa7JkMeS5j9
-AubCG4g1zKEtPPaGDsfDKBljCHBKwUysQj5oGU5w8VvlOPnS62DBfsgU2y5ipmmI
-TYkjSOL6LXwO6xG5/sxA8cyoJSmbN286imcY6AHloTiiu6/N7Us+CNrhw/V7HAun
-56etWBn3bZWCRGGAPF3qJr4y2sUMY0E3Ha7OPEHIKfBb4MiJnpXntWT28nQfF3dl
-TFTthAzwcnZchx2es4yrfDXn33Y4eisqxWCbTluErXUogUEKH1KohSatYMtxencv
-7bUlzIr22zSUCYyVf9cyg50kBy+0J7seEpqG5K5R8z9s/63BT5Oghmi6bB2s5iK5
-fBt3Tu1IYpyZAg0EURGeeQEQALoU2rlo+usvGKqmBKaEl8Cbx0UZY4tQa1OQSDCj
-6QeCBc36rq2NCAFpjYg0nrxMN86e0aHYVVetT75rSX701jRJD/TRCPzr03QVwEtk
-GpGIpBXtdx0962I0We5rSZL2TWKuPtGRKrbs6CSVlNynLprIEnN+2sJYd/1yEsrR
-9wBtUfVOkq6o4hBWOj4oEqhqQv1MPv1RPqGEgJl19s4LS9277cMIwrj553nGzsy1
-XwO6BQIP8IhJQZ+8Okw3UaJjLHkJExgo3UHMFdZhAOOYbrlxwq3lENmkdgjxCUBZ
-iVNiEX9NLm8x1HWaW/nnBIHu6g7r+1Ff5qMSI2hBVan6om4gKHdI9wThG89V16Nq
-3YztuK5L6Nh9a7BVQJos0r419NHGXPqXqN99jWRL+jAqwKozviUYijDx8k4xLnpQ
-1dIbHfwE0MPuIkgHeQIoBMkxD1tiQC7ouqVRqU1gg9VKhOZf0opDnvqQ+cDMyfUC
-hgrjjikSoCBIVCDvr1r7T/gUMDEXfnaMfAdEy1z9qnUzTRRzMbl4BN3Zn+4Htf+B
-zpAln6H8h7sBb6CO1TX2Qh3JPTrV9zSSbbOW/kuySU+rkHBQPza5l+pnWD7eXaVj
-7+WEx+TsYIP9Gpe/FOVp2ht93NgjNFAodPW+i5jm7MRk+vlzjidHJ69pEUoQQtuk
-Td8LABEBAAG0V1B1cHBldCBMYWJzIE5pZ2h0bHkgQnVpbGQgS2V5IChQdXBwZXQg
-TGFicyBOaWdodGx5IEJ1aWxkIEtleSkgPGRlbGl2ZXJ5QHB1cHBldGxhYnMuY29t
-PokCPwQTAQIAKQUCURGzrQIbAwUJBaOagAcLCQgHAwIBBhUIAgkKCwQWAgMBAh4B
-AheAAAoJELj5mcAHu2xX7UUQAKGDOQS20BRNEa3top+dQONWmC/j1ABDVTOkF7Zc
-9JT5oEESzVof/yIWKAfCbYyH5l3yySZI3NOQt7CswIWDYe0JR/uBhyGoHkA1t52L
-zP45UxI29K5XaeBm3qoQbV3W6GWScGkijfaJ2yz/dIHh0m3SkC8mUGBrIqqVwV38
-JcsW1/CzTetZiWGlk8/nPeUg+snGwd22zUlZkTaVh3FbHrqh2xsMFdrphDOtSU5s
-Jzebu5h6mp7cMZELaRNNmg3O7VeQMA1hwaq05jQuPisS/ktOqSgJXh8pOaUpDoV0
-ta4JSwaqEkWsZHv3tmaXGy0Qzs9X9bOjRbIKgN2w9JY+z2OKJ5L4Yg5VMJPYMdKp
-wGSQf70YaaT0d1N/84P8j7CRsDBnVME/TDuE2u1XM/9B7xmdcI28FxZrqQc06OGS
-UvK9vSgTkTxXSsjobah8ssi4C4/zRgTZu94KOhSlH4YGrzLX7g25M708NxgXJiPZ
-7K8Ceea28mHYf3f+JobEbpzPeewURAFCXHCm4cFU31FsiXQrNhGmUpRKVayiMMzN
-JF8yjuHpwB2DjGdV3QR5C8Ms+RO86JnD/Yq9zeoF7T7jCAkQKuh76cQe60XllKhV
-Dlh2rpKXAtLAbea9hcSraZkm3Lj+oKzXUSf3Ml9xp65yjUjm9O+a4AMQ1wFroGEP
-QUEEiQEcBBABCgAGBQJT0XkMAAoJELrV8KOS6YVy7O8IAKJYT0Afd6Ufkx4cR0rj
-soCoPpDDiyITmSdeLSzvl9rr1X39+PqR0dcncEhO1heCZo8sm/iMNsiV4UORv2Wh
-lCriE2fDpu9ByX1rwuKl9nEu9xx2WTRWtdx4M4fB+ZXYiJbgb1vuM46mGp51NYRK
-ByPIm1EAjOhsfXm14BZICOQO5WLy5Sv/oRVSEBiGXNXf1kweXSzrhRCNEWYfPhQJ
-4pCsvNeiQuhqQIB+J9FbA48x47JikMM92w0aEa4aVVokNF2PBCp9/SdRAzlY7Ikx
-aAdIzuyc0ANIZBPgYxIgdH/Fltwz6VW6iFNk3gS7jR6TFBjRQba73I53IBbiVIRq
-dnWJAhwEEAECAAYFAlPRd2QACgkQRp6bNpsPDx1HiQ//TEOYPkp+iHT/wNcTUO4A
-r00La6xl9bw3v5XlnW83YjrB0ieChbXcHpChNRk08vdRSgxyWCtbIwmMeOO8mDiv
-aJbYrgngJY+FSMsAzhSyPauze0l4PV3dnLRMZmK5Nro4GNI4oiOGp0qXPcBjstlc
-BnEa6XuLHDnRYFhkcVboZDu2o/tdz+OJD+CZjyeiIAtChMJ+ghlpfO3cOuK0wmTh
-Jtn/eDAfjB34CZdkt1paKZap5bLZCF0QwP+DbJd189HZy/ot6w2jpNXFt1JFnoyn
-7Nluo6MPNTZSG3pzh7fvzb924M1sm+CyLFzEV1rYi6ujyHOsW+KYc6fOUB5jk/BZ
-QPaU6vG1JRDLHWPjbPf9Ax8uGQSrVXC3txiu2OLZcn4Ti54PoHed5m7Fxk9fnaiT
-gNGL0ox/wmIPbIsdGrXuTHcdmPyuRM5btXFWCMbknTIbefEEOQdbPl+e5QgWR5cf
-EVOvo6qTBstH7aHqiWMQpuvnU7l9xpfcJ40SawHxiY/UCKXhpf7SJXAvE8zkMIvi
-PJaHKDy2FyCwtCHwG1wiQSqjnCJt5gmTGCXzO/yAGhcgUWbTpykIMij9IPboL7VL
-er+I/3CikWeszcjBp5lJhg4k2OCBi5LOiI+8EUTlFcAqxbTFEyM+IQDOwnW8Gznf
-nMb070gS9iBk0GTVC9iXHla0U1B1cHBldCBMYWJzIE5pZ2h0bHkgQnVpbGQgS2V5
-IChQdXBwZXQgTGFicyBOaWdodGx5IEJ1aWxkIEtleSkgPGluZm9AcHVwcGV0bGFi
-cy5jb20+iQI+BBMBAgAoBQJREZ55AhsDBQkFo5qABgsJCAcDAgYVCAIJCgsEFgID
-AQIeAQIXgAAKCRC4+ZnAB7tsVyjmEACSw9ZLq1ehcq8/QemiB+i8W/yVYZAxphmq
-w547JXOxk19V5joR5Wp0fwqIEvE1Thw0mAiMUDAgM4TpdZc8zOaILj2OH1gWsuyi
-fbFTHExTZAuZ1Lx1Nc1AlUv5Q+bmrzjAhx13Nk3LE7yfe4DLZnSyF3cZxAcSXYSq
-wSo1sBrWxf2bOYnuyJwLlz94eeEkNdSi0mfANqt+ihiiAeTe9OXf65iPFn8SYRqV
-W0hUayVlOedoCl0kviVXHvIgHxgkfazeIPqncFgPiRyYGNCVhKjaFjpUm+RzBFOk
-HQzzcyNovlnjHmhxKkN+L2f1JqmHmUQguTTpJfpRdwmnEkA1BYY6m0WQ5Owga1eE
-WEeHh9AjtVrukJOOibvpoS/M5FdAgaUgGXPIOziURDKBjQ0zuYMtlXgEDzKt0ugp
-7YO74EAv1JiyeZ0Mu+m6WnxRX0Sb/op0ef74xZYD4eKYixOxahQ7kxtO9qTy+pOs
-c3/KSNGv+oQh/CgChBbN3oq1UBfL6gVioRIp2GmP6Jmfipfod+VGIVI8xyfD3h/Z
-nKF7dEHHMsyB03Ap2ypCcy8OEVwCeAZ4eY+lKXNyBSnddXcMGuFTqgJ1IMvTm0T8
-BfYn74A4fDqwNKKQGYjb67MZ+3N7YaWwCgWUvFpfd557fTQmZfV1arok2urvWIGa
-x82lgKTA64kBHAQQAQoABgUCU9F5DwAKCRC61fCjkumFchUwB/wLfX/PA0LUbSen
-es6ilcbHOZVZKyppMA5bIU6fG6SIS9FVauL0lgkEnJAhr5w3rXGd14LM33QkkPbs
-/uNe2YQHzzrsffLhFyJkKJXH5rc6sSM7RYbAxtMNXKpkdMhPGmHgIgMzJo3ZuD8+
-ixsyR/8tGAMXbHwX5aAJDKYfg8X4kkPBxzysWJzN5/wFbYEK8FHiULkHNfJv480H
-UBLNwczVeg9Etaje0tCQuGkD/CJHR50Kxuc/BiGYdYVjAnQVILXa2NcBizXtUU3f
-N+6L+K2m9Fm3Dvhw0ZVEq7TxTMmHA23HGt8fMJ7zNCRO3krK7vtjUQxSXKOM7HF+
-D60QA/oGiQIcBBABAgAGBQJT0XdkAAoJEEaemzabDw8dtt0QAITarh4rsJWupVXD
-BFHbxsUyT7AXspJ7kW3vxG3Y/gHSjleDX0VdblzUUBmD5y5JvR/DHrAgDd8XQN4E
-4+hTOpZhzILZcoSWhiAW+VuL5b+R5NxSzIiHEt/qKgslvcx/sbQz8+Ro/zWHxhn9
-1uFf5JOFw+5W2wBmC4OdQby7B8AiV58OBAGcVUs0+57oJRYIU0zTRAJKRstMlD7s
-F3R1d6EyNUbGjnJhPcltk6RRsYuJJx8vJzyY4pEy5eZPNSPEpFBjWlWyRnKDbQ6/
-TbtSB7bojbtjQFhh905kvdKxzcBkFgYTyzqJffUwHqJti8QQMraGAtC79/D/0vmf
-lIJtzTB+gA/NOhyriaSXoGzi0oA/ZKReU3uJd5Yl202s/hvG+xpBkh7ouaVa5zFX
-cqfi6gmmpQzVo6snI7d+Wonyvg1lhqZ7TXvtUIilsmbc5zEedidaCei77buX/ZuV
-8jo+32HtsSKTYYHVsJzY6YzEy1SVfrUY+EdXXWG7Y97JaXKJc8oCNT1YA8BG4c+M
-1cMXO1LTiP56gyYnrH6/oTIFrBXMl3dO/gKpcwUmf8lScFXIfVn5Wm3D0n6cUBKT
-aRmmpfu7UhzBMEA7ZrIGxNBuD8WwfVi8ZSwBbV92fHkukkfixkhmeUmCB9vyq31+
-UfTwFXkHDTMZ4jfctKuBU+3p5sEwuQINBFERnnkBEAC0XpaBe0L9yvF1oc7rDLEt
-XMrjDWHL6qPEW8ei94D619n1eo1QbZA4zZSZFjmN1SWtxg+2VRJazIlaFNMTpp+q
-7lpmHPwzGdFdZZPVvjwd7cIe5KrGjEiTD1zf7i5Ws5Xh9jTh6VzY8nseakhIGTOC
-lWzxl/+X2cJlMAR4/nLJjiTi3VwI2JBT8w2H8j8EgfRpjf6P1FyLv0WWMODc/hgc
-/o5koLb4WRsK2w5usP/a3RNeh6L6iqHiiAL1Y9+0GZXOrjtNpkzPRarIL3MiX29o
-VKSFcjUREpsEZHBHLwuA3WIR6WBX49LhrA6uLgofYhALeky6/H3ZFEH9ZS3plmnX
-/vow8YWmz0Lyzzf848qsg5E5cHg36m2CXSEUeZfH748H78R62uIf/shusffl9Op2
-aZnQoPyeYIkA6N8m29CqIa/pzd68rLEQ+MNHHkp0KjQ0oKyrz9/YCXeQg3lIBXAv
-+FIVK/04fMA3rr5tnynkeG9Ow6fGEtqzNjZhMZtx5BnkhdLTt6qu+wyaDw3q9X1/
-/j3lhplXteYzUkNUIinCHODGXaI55R/I4HNsbvtvy904g5sTHZX9QBn0x7QpVZaW
-90jCgl6+NPH96g1cuHFuk+HED4H6XYFcdt1VRVb9YA7GgRXkSyfw6KdtGFT15e7o
-7PcaD6NpqyBfbYfrNQmiOwARAQABiQIlBBgBAgAPBQJREZ55AhsMBQkFo5qAAAoJ
-ELj5mcAHu2xXR8cP/Ai4PqUKBZdN6Jz628VQdiVX2EO7jhQ7KYdt9RWz87kfm0rC
-LhdROCyeddgGsYbpdikC3Gzrk0JFIs/qAzpZOMIip0cXTxDEWWObuwShIac8hmZz
-BE5SM7TcA9+/jmBwLajcreGgKs/MfDkkWkiBT/B+FyHkqS6O/rdBvYqFzLtvUigG
-SRf1clP4QEGWcR6LLsJ1uiH+brK3G1GsILVpX5iQ0Y4wNv0xNRGZzAPVZ1/vgHCM
-sAG7TZy26oOraigvnZeo1Q9r7pg+i6uSIu4ywfdNTOuoBK+VY+RKyAybBHIqH07w
-p9TmYOY1x+wmIe0oSYcR47OcvZU57fdLsEB9djYvkGkkmbz0gwXQL0iEW3kX+05J
-zrLzPsx6muR35SPNCvfR2T/0VCDwtNwwxACWuZI/tqsobU/+lA/MqRZ4kOD/Bx07
-CpZfYIAi2STc0MIDvpyDnZLiYVMMkqV4+gn2ANtkF+GKbra3Aeof9b4KEVabSaQ5
-5W70DJF0G5bmHBSdyqdYnKB/yRj1rH+dgRbiRMv7rBAx5Q8rbYiym8im+5XNUDy2
-ZTQcCD53HcBLvKX6RJ4ByYawKaQqMa27WK/YWVmFXqVDVk12iKrQW6zktDdGInnD
-+f0rRH7c/7F/QuBR6Y4Zkso0CuVMNsmxv0E+7Zk0z4dWalzQuXpN7OXcZ8Gp
-=Gl+v
------END PGP PUBLIC KEY BLOCK-----",
-          }
-        EOS
-        apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
@@ -402,21 +491,25 @@
 
   describe 'server =>' do
-    context 'pgp.mit.edu' do
-      it 'works' do
-        pp = <<-EOS
-        apt_key { 'puppetlabs':
-          id     => '#{PUPPETLABS_GPG_KEY_LONG_ID}',
-          ensure => 'present',
-          server => 'pgp.mit.edu',
-        }
-        EOS
-
-        apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
-        shell(PUPPETLABS_KEY_CHECK_COMMAND)
-      end
-    end
-
-    context 'hkp://pgp.mit.edu:80' do
+    context 'hkps.pool.sks-keyservers.net' do
+      it 'works' do
+        pp = <<-EOS
+        apt_key { 'puppetlabs':
+          id     => '#{PUPPETLABS_GPG_KEY_LONG_ID}',
+          ensure => 'present',
+          server => 'hkps.pool.sks-keyservers.net',
+        }
+        EOS
+
+        #Apply the manifest (Retry if timeout error is received from key pool)
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          apply_manifest(pp, :catch_failures => true)
+        end
+
+        apply_manifest(pp, :catch_changes => true)
+        shell(PUPPETLABS_KEY_CHECK_COMMAND)
+      end
+    end
+
+    context 'hkp://hkps.pool.sks-keyservers.net:80' do
       it 'works' do
         pp = <<-EOS
@@ -424,10 +517,13 @@
           id     => '#{PUPPETLABS_GPG_KEY_FINGERPRINT}',
           ensure => 'present',
-          server => 'hkp://pgp.mit.edu:80',
-        }
-        EOS
-
-        apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+          server => 'hkp://hkps.pool.sks-keyservers.net:80',
+        }
+        EOS
+
+        retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+          apply_manifest(pp, :catch_failures => true)
+        end
+
+        apply_manifest(pp, :catch_changes => true)
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
@@ -479,5 +575,19 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
+        shell(PUPPETLABS_KEY_CHECK_COMMAND)
+      end
+
+      it 'works with userinfo' do
+        pp = <<-EOS
+        apt_key { 'puppetlabs':
+          id     => '#{PUPPETLABS_GPG_KEY_LONG_ID}',
+          ensure => 'present',
+          source => 'http://dummyuser:dummypassword@#{PUPPETLABS_APT_URL}/#{PUPPETLABS_GPG_KEY_FILE}',
+        }
+        EOS
+
+        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
@@ -528,5 +638,5 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
         shell(CENTOS_KEY_CHECK_COMMAND)
       end
@@ -572,5 +682,19 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
+        shell(PUPPETLABS_KEY_CHECK_COMMAND)
+      end
+
+      it 'works with userinfo' do
+        pp = <<-EOS
+        apt_key { 'puppetlabs':
+          id     => '#{PUPPETLABS_GPG_KEY_LONG_ID}',
+          ensure => 'present',
+          source => 'https://dummyuser:dummypassword@#{PUPPETLABS_APT_URL}/#{PUPPETLABS_GPG_KEY_FILE}',
+        }
+        EOS
+
+        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
@@ -618,5 +742,5 @@
         pp = <<-EOS
         apt_key { 'puppetlabs':
-          id     => '4BD6EC30',
+          id     => 'EF8D349F',
           ensure => 'present',
           source => '/tmp/puppetlabs-pubkey.gpg',
@@ -625,5 +749,5 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
         shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
@@ -682,21 +806,6 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
-        shell(PUPPETLABS_KEY_CHECK_COMMAND)
-      end
-
-      it 'fails on invalid options' do
-        pp = <<-EOS
-        apt_key { 'puppetlabs':
-          id      => '#{PUPPETLABS_GPG_KEY_LONG_ID}',
-          ensure  => 'present',
-          options => 'this is totally bonkers',
-        }
-        EOS
-
-        shell("apt-key del #{PUPPETLABS_GPG_KEY_FINGERPRINT}", :acceptable_exit_codes => [0,1,2])
-        apply_manifest(pp, :expect_failures => true) do |r|
-          expect(r.stderr).to match(/--keyserver-options this is totally/)
-        end
+        apply_manifest(pp, :catch_changes => true)
+        shell(PUPPETLABS_KEY_CHECK_COMMAND)
       end
     end
@@ -715,5 +824,5 @@
 
         apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_failures => true)
+        apply_manifest(pp, :catch_changes => true)
       end
     end
@@ -723,5 +832,5 @@
         pp = <<-EOS
         apt_key { 'puppetlabs':
-          id      => '47B320EB4C7C375AA9DAE1A01054B7A24BD6E666',
+          id      => '6F6B15509CF8E59E6E469F327F438280EF8D9999',
           ensure  => 'present',
           source  => 'https://#{PUPPETLABS_APT_URL}/#{PUPPETLABS_GPG_KEY_FILE}',
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/apt_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,3 +1,7 @@
 require 'spec_helper_acceptance'
+
+MAX_TIMEOUT_RETRY              = 3
+TIMEOUT_RETRY_WAIT             = 5
+TIMEOUT_ERROR_MATCHER    = /no valid OpenPGP data found/
 
 describe 'apt class' do
@@ -21,6 +25,6 @@
             'repos'    => 'main',
             'key'      => {
-              'id'     => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
-              'server' => 'pgp.mit.edu',
+              'id'     => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
+              'server' => 'hkps.pool.sks-keyservers.net',
             },
           },
@@ -30,6 +34,6 @@
         update => {
           'frequency' => 'always',
-          'timeout'   => '400',
-          'tries'     => '3',
+          'timeout'   => 400,
+          'tries'     => 3,
         },
         purge => {
@@ -43,5 +47,9 @@
       EOS
 
-      apply_manifest(pp, :catch_failures => true)
+      #Apply the manifest (Retry if timeout error is received from key pool)
+      retry_on_error_matching(MAX_TIMEOUT_RETRY, TIMEOUT_RETRY_WAIT, TIMEOUT_ERROR_MATCHER) do
+        apply_manifest(pp, :catch_failures => true)
+      end
+
       apply_manifest(pp, :catch_failures => true)
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/class_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/class_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/class_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,5 +12,5 @@
       # Run it twice and test for idempotency
       apply_manifest(pp, :catch_failures => true)
-      apply_manifest(pp, :catch_failures => true)
+      apply_manifest(pp, :catch_changes => true)
     end
   end
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-59-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-59-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  centos-59-x64:
-    roles:
-      - master
-    platform: el-5-x86_64
-    box : centos-59-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: git
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-64-x64-pe.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-64-x64-pe.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,12 +1,0 @@
-HOSTS:
-  centos-64-x64:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: el-6-x86_64
-    box : centos-64-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: pe
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-65-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-65-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  centos-65-x64:
-    roles:
-      - master
-    platform: el-6-x86_64
-    box : centos-65-x64-vbox436-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-7-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-7-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/centos-7-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,10 @@
+HOSTS:
+  centos-7-x64:
+    roles:
+      - agent
+      - default
+    platform: el-7-x86_64
+    hypervisor: vagrant
+    box: puppetlabs/centos-7.2-64-nocm
+CONFIG:
+  type: foss
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-70rc1-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-70rc1-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  debian-70rc1-x64:
-    roles:
-      - master
-    platform: debian-70rc1-x64
-    box : debian-70rc1-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-73-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-73-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,11 +1,0 @@
-HOSTS:
-  debian-73-x64:
-    roles:
-      - master
-    platform: debian-7-amd64
-    box : debian-73-x64-virtualbox-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  log_level: debug
-  type: git
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-8-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-8-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/debian-8-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,10 @@
+HOSTS:
+  debian-8-x64:
+    roles:
+      - agent
+      - default
+    platform: debian-8-amd64
+    hypervisor: vagrant
+    box: puppetlabs/debian-8.2-64-nocm
+CONFIG:
+  type: foss
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/default.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/default.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/default.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,11 +1,10 @@
 HOSTS:
-  ubuntu-server-12042-x64:
+  ubuntu-1404-x64:
     roles:
-      - master
-    platform: ubuntu-server-12.04-amd64
-    box : ubuntu-server-12042-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
-    hypervisor : vagrant
+      - agent
+      - default
+    platform: ubuntu-14.04-amd64
+    hypervisor: vagrant
+    box: puppetlabs/ubuntu-14.04-64-nocm
 CONFIG:
   type: foss
-  vagrant_ssh_port_random: true
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/centos-7.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/centos-7.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/centos-7.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,12 @@
+HOSTS:
+  centos-7-x64:
+    platform: el-7-x86_64
+    hypervisor: docker
+    image: centos:7
+    docker_preserve_image: true
+    docker_cmd: '["/usr/sbin/init"]'
+    # install various tools required to get the image up to usable levels
+    docker_image_commands:
+      - 'yum install -y crontabs tar wget openssl sysvinit-tools iproute which initscripts'
+CONFIG:
+  trace_limit: 200
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/debian-8.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/debian-8.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/debian-8.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,11 @@
+HOSTS:
+  debian-8-x64:
+    platform: debian-8-amd64
+    hypervisor: docker
+    image: debian:8
+    docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get update && apt-get install -y net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
+CONFIG:
+  trace_limit: 200
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/ubuntu-14.04.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/ubuntu-14.04.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/docker/ubuntu-14.04.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,12 @@
+HOSTS:
+  ubuntu-1404-x64:
+    platform: ubuntu-14.04-amd64
+    hypervisor: docker
+    image: ubuntu:14.04
+    docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      # ensure that upstart is booting correctly in the container
+      - 'rm /usr/sbin/policy-rc.d && rm /sbin/initctl && dpkg-divert --rename --remove /sbin/initctl && apt-get update && apt-get install -y net-tools wget && locale-gen en_US.UTF-8'
+CONFIG:
+  trace_limit: 200
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  ubuntu-server-10044-x64:
-    roles:
-      - master
-    platform: ubuntu-10.04-amd64
-    box : ubuntu-server-10044-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  ubuntu-server-12042-x64:
-    roles:
-      - master
-    platform: ubuntu-12.04-amd64
-    box : ubuntu-server-12042-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,11 +1,0 @@
-HOSTS:
-  ubuntu-server-1404-x64:
-    roles:
-      - master
-    platform: ubuntu-14.04-amd64
-    box : puppetlabs/ubuntu-14.04-64-nocm
-    box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
-    hypervisor : vagrant
-CONFIG:
-  log_level   : debug
-  type: git
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_backports_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_backports_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_backports_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,4 +8,5 @@
       let(:facts) do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
           :lsbdistid       => 'Debian',
           :osfamily        => 'Debian',
@@ -26,4 +27,5 @@
       let(:facts) do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '6', :full => '6.0' }},
           :lsbdistid       => 'Debian',
           :osfamily        => 'Debian',
@@ -44,7 +46,9 @@
       let(:facts) do
         {
+          :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
           :lsbdistid       => 'Ubuntu',
           :osfamily        => 'Debian',
           :lsbdistcodename => 'trusty',
+          :lsbdistrelease  => '14.04',
           :puppetversion   => Puppet.version,
         }
@@ -62,7 +66,9 @@
       let(:facts) do
         {
+          :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
           :lsbdistid       => 'Ubuntu',
           :osfamily        => 'Debian',
           :lsbdistcodename => 'trusty',
+          :lsbdistrelease  => '14.04',
           :puppetversion   => Puppet.version,
         }
@@ -89,7 +95,9 @@
       let(:facts) do
         {
+          :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
           :lsbdistid       => 'Ubuntu',
           :osfamily        => 'Debian',
           :lsbdistcodename => 'trusty',
+          :lsbdistrelease  => '14.04',
           :puppetversion   => Puppet.version,
         }
@@ -115,4 +123,5 @@
     let(:facts) do
       {
+        :os => { :family => 'Debian', :name => 'Linuxmint', :release => { :major => '17', :full => '17' }},
         :lsbdistid       => 'linuxmint',
         :osfamily        => 'Debian',
@@ -199,7 +208,9 @@
     let(:facts) do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistid       => 'Ubuntu',
         :osfamily        => 'Debian',
         :lsbdistcodename => 'trusty',
+        :lsbdistrelease  => '14.04',
         :puppetversion   => Puppet.version,
       }
@@ -214,5 +225,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /is not a string/)
+        }.to raise_error(Puppet::Error, /expects a/)
       end
     end
@@ -226,5 +237,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /is not a string/)
+        }.to raise_error(Puppet::Error, /expects a/)
       end
     end
@@ -238,5 +249,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /is not a string/)
+        }.to raise_error(Puppet::Error, /expects a/)
       end
     end
@@ -250,5 +261,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /is not a string/)
+        }.to raise_error(Puppet::Error, /expects a/)
       end
     end
@@ -262,5 +273,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /pin must be either a string, number or hash/)
+        }.to raise_error(Puppet::Error, /expects a/)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,6 +1,13 @@
 require 'spec_helper'
 describe 'apt' do
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version} }
-
+  let(:facts) do
+  {
+    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+    :lsbdistid       => 'Debian',
+    :osfamily        => 'Debian',
+    :lsbdistcodename => 'wheezy',
+    :puppetversion   => Puppet.version,
+  }
+  end
   context 'defaults' do
     it { is_expected.to contain_file('sources.list').that_notifies('Class[Apt::Update]').only_with({
@@ -138,7 +145,9 @@
   context 'with sources defined on valid osfamily' do
     let :facts do
-      { :osfamily        => 'Debian',
-        :lsbdistcodename => 'precise',
-        :lsbdistid       => 'Debian',
+      { :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04' }},
+        :osfamily        => 'Debian',
+        :lsbdistcodename => 'precise',
+        :lsbdistid       => 'Ubuntu',
+        :lsbdistrelease  => '12.04',
         :puppetversion   => Puppet.version,
       }
@@ -156,5 +165,5 @@
         'location'   => 'http://apt.puppetlabs.com',
         'repos'      => 'main',
-        'key'        => { 'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', 'server' => 'pgp.mit.edu' },
+        'key'        => { 'id' => '6F6B15509CF8E59E6E469F327F438280EF8D349F', 'server' => 'pgp.mit.edu' },
       }
     } } }
@@ -178,7 +187,37 @@
   end
 
+  context 'with confs defined on valid osfamily' do
+    let :facts do
+      {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+        :osfamily        => 'Debian',
+        :lsbdistcodename => 'precise',
+        :lsbdistid       => 'Debian',
+        :puppetversion   => Puppet.version,
+      }
+    end
+    let(:params) { { :confs => {
+      'foo' => {
+        'content' => 'foo',
+      },
+      'bar' => {
+        'content' => 'bar',
+      }
+    } } }
+
+    it { is_expected.to contain_apt__conf('foo').with({
+        :content => 'foo',
+    })}
+
+    it { is_expected.to contain_apt__conf('bar').with({
+        :content => 'bar',
+    })}
+  end
+
   context 'with keys defined on valid osfamily' do
     let :facts do
-      { :osfamily        => 'Debian',
+      {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+        :osfamily        => 'Debian',
         :lsbdistcodename => 'precise',
         :lsbdistid       => 'Debian',
@@ -190,5 +229,5 @@
         'server' => 'subkeys.pgp.net',
       },
-      '4BD6EC30' => {
+      'EF8D349F' => {
         'server' => 'pgp.mit.edu',
       }
@@ -199,5 +238,5 @@
     })}
 
-    it { is_expected.to contain_apt__key('4BD6EC30').with({
+    it { is_expected.to contain_apt__key('EF8D349F').with({
         :server => 'pgp.mit.edu',
     })}
@@ -206,5 +245,7 @@
   context 'with ppas defined on valid osfamily' do
     let :facts do
-      { :osfamily        => 'Debian',
+      {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+        :osfamily        => 'Debian',
         :lsbdistcodename => 'precise',
         :lsbdistid       => 'ubuntu',
@@ -224,5 +265,7 @@
   context 'with settings defined on valid osfamily' do
     let :facts do
-      { :osfamily        => 'Debian',
+      {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+        :osfamily        => 'Debian',
         :lsbdistcodename => 'precise',
         :lsbdistid       => 'Debian',
@@ -241,5 +284,7 @@
   context 'with pins defined on valid osfamily' do
     let :facts do
-      { :osfamily        => 'Debian',
+      {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+        :osfamily        => 'Debian',
         :lsbdistcodename => 'precise',
         :lsbdistid       => 'Debian',
@@ -292,16 +337,4 @@
       end
     end
-
-    context 'with unsupported osfamily' do
-      let :facts do
-        { :osfamily => 'Darwin', :puppetversion   => Puppet.version,}
-      end
-
-      it do
-        expect {
-          subject.call
-        }.to raise_error(Puppet::Error, /This module only works on Debian or derivatives like Ubuntu/)
-      end
-    end
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_update_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_update_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/classes/apt_update_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -4,8 +4,21 @@
 describe 'apt::update', :type => :class do
   context "and apt::update['frequency']='always'" do
-    { 'a recent run' => Time.now.to_i, 'we are due for a run' => 1406660561,'the update-success-stamp file does not exist' => -1 }.each_pair do |desc, factval|
+    {
+      'a recent run'                                 => Time.now.to_i,
+      'we are due for a run'                         => 1406660561,
+      'the update-success-stamp file does not exist' => -1,
+    }.each_pair do |desc, factval|
       context "and $::apt_update_last_success indicates #{desc}" do
-        let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :apt_update_last_success => factval, :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
-        let (:pre_condition) { "class{'::apt': update => {'frequency' => 'always' },}" }
+        let(:facts) { {
+          :os                      => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid               => 'Debian',
+          :osfamily                => 'Debian',
+          :apt_update_last_success => factval,
+          :lsbdistcodename         => 'wheezy',
+          :puppetversion           => Puppet.version,
+        } }
+        let (:pre_condition) {
+          "class{'::apt': update => {'frequency' => 'always' },}"
+        }
         it 'should trigger an apt-get update run' do
           #set the apt_update exec's refreshonly attribute to false
@@ -15,5 +28,11 @@
     end
     context 'when $::apt_update_last_success is nil' do
-      let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+      let(:facts) { {
+        :os              => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+        :lsbdistid       => 'Debian',
+        :osfamily        => 'Debian',
+        :lsbdistcodename => 'wheezy',
+        :puppetversion   => Puppet.version,
+      } }
       let (:pre_condition) { "class{ '::apt': update => {'frequency' => 'always' },}" }
       it 'should trigger an apt-get update run' do
@@ -24,7 +43,18 @@
   end
   context "and apt::update['frequency']='reluctantly'" do
-    {'a recent run' => Time.now.to_i, 'we are due for a run' => 1406660561,'the update-success-stamp file does not exist' => -1 }.each_pair do |desc, factval|
+    {
+      'a recent run'                                 => Time.now.to_i,
+      'we are due for a run'                         => 1406660561,
+      'the update-success-stamp file does not exist' => -1,
+    }.each_pair do |desc, factval|
       context "and $::apt_update_last_success indicates #{desc}" do
-        let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :apt_update_last_success => factval, :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version,} }
+        let(:facts) { {
+          :os                      => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid               => 'Debian',
+          :osfamily                => 'Debian',
+          :apt_update_last_success => factval,
+          :lsbdistcodename         => 'wheezy',
+          :puppetversion           => Puppet.version,
+        } }
         let (:pre_condition) { "class{ '::apt': update => {'frequency' => 'reluctantly' },}" }
         it 'should not trigger an apt-get update run' do
@@ -35,5 +65,11 @@
     end
     context 'when $::apt_update_last_success is nil' do
-      let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+      let(:facts) { {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+        :lsbdistid       => 'Debian',
+        :osfamily        => 'Debian',
+        :lsbdistcodename => 'wheezy',
+        :puppetversion   => Puppet.version,
+      } }
       let (:pre_condition) { "class{ '::apt': update => {'frequency' => 'reluctantly' },}" }
       it 'should not trigger an apt-get update run' do
@@ -47,5 +83,12 @@
       { 'we are due for a run' => 1406660561,'the update-success-stamp file does not exist' => -1 }.each_pair do |desc, factval|
         context "and $::apt_update_last_success indicates #{desc}" do
-          let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :apt_update_last_success => factval, :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+          let(:facts) { {
+            :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+            :lsbdistid               => 'Debian',
+            :osfamily                => 'Debian',
+            :apt_update_last_success => factval,
+            :lsbdistcodename         => 'wheezy',
+            :puppetversion           => Puppet.version,
+          } }
           let (:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
           it 'should trigger an apt-get update run' do
@@ -56,5 +99,12 @@
       end
       context 'when the $::apt_update_last_success fact has a recent value' do
-        let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :apt_update_last_success => Time.now.to_i, :puppetversion   => Puppet.version, } }
+        let(:facts) { {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid               => 'Debian',
+          :osfamily                => 'Debian',
+          :lsbdistcodename         => 'wheezy',
+          :apt_update_last_success => Time.now.to_i,
+          :puppetversion           => Puppet.version,
+        } }
         let (:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
         it 'should not trigger an apt-get update run' do
@@ -64,5 +114,12 @@
       end
       context 'when $::apt_update_last_success is nil' do
-        let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :apt_update_last_success => nil, :puppetversion   => Puppet.version, } }
+        let(:facts) { {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid               => 'Debian',
+          :osfamily                => 'Debian',
+          :lsbdistcodename         => 'wheezy',
+          :apt_update_last_success => nil,
+          :puppetversion           => Puppet.version,
+        } }
         let (:pre_condition) { "class{ '::apt': update => {'frequency' => '#{update_frequency}',} }" }
         it 'should trigger an apt-get update run' do
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/classes/params_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/classes/params_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,25 +1,0 @@
-require 'spec_helper'
-describe 'apt::params', :type => :class do
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
-  let (:title) { 'my_package' }
-
-  it { is_expected.to contain_apt__params }
-
-  # There are 4 resources in this class currently
-  # there should not be any more resources because it is a params class
-  # The resources are class[apt::params], class[main], class[settings], stage[main]
-  it "Should not contain any resources" do
-    expect(subject.call.resources.size).to eq(4)
-  end
-
-  describe "With lsb-release not installed" do
-    let(:facts) { { :osfamily => 'Debian', :puppetversion   => Puppet.version, } }
-    let (:title) { 'my_package' }
-
-    it do
-      expect {
-        subject.call
-      }.to raise_error(Puppet::Error, /Unable to determine lsbdistid, please install lsb-release first/)
-    end
-  end
-end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/conf_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/conf_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/conf_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -4,5 +4,11 @@
     'class { "apt": }'
   end
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+  let(:facts) { {
+    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+    :lsbdistid       => 'Debian',
+    :osfamily        => 'Debian',
+    :lsbdistcodename => 'wheezy',
+    :puppetversion   => Puppet.version,
+  } }
   let :title do
     'norecommends'
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_compat_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_compat_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_compat_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,6 +2,11 @@
 
 describe 'apt::key', :type => :define do
-  let(:facts) { { :lsbdistid => 'Debian' } }
-  GPG_KEY_ID = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+  let(:facts) { {
+    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+    :lsbdistid     => 'Debian',
+    :osfamily      => 'Debian',
+    :puppetversion => Puppet.version,
+  } }
+  GPG_KEY_ID = '6F6B15509CF8E59E6E469F327F438280EF8D349F'
 
   let :title do
@@ -9,18 +14,21 @@
   end
 
+  let :pre_condition do
+    'include apt'
+  end
+
   describe 'normal operation' do
     describe 'default options' do
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+      it {
+        is_expected.to contain_apt_key(title).with({
           :id                => title,
           :ensure            => 'present',
           :source            => nil,
-          :server            => nil,
+          :server            => 'keyserver.ubuntu.com',
           :content           => nil,
-          :keyserver_options => nil,
-        })
-      end
+        })
+      }
       it 'contains the apt_key present anchor' do
-        should contain_anchor("apt_key #{title} present")
+        is_expected.to contain_anchor("apt_key #{title} present")
       end
     end
@@ -32,19 +40,18 @@
 
       let :params do {
-        :key => GPG_KEY_ID,
-      } end
-
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+        :id => GPG_KEY_ID,
+      } end
+
+      it 'contains the apt_key' do
+        is_expected.to contain_apt_key(title).with({
           :id                => GPG_KEY_ID,
           :ensure            => 'present',
           :source            => nil,
-          :server            => nil,
+          :server            => 'keyserver.ubuntu.com',
           :content           => nil,
-          :keyserver_options => nil,
         })
       end
       it 'contains the apt_key present anchor' do
-        should contain_anchor("apt_key #{GPG_KEY_ID} present")
+        is_expected.to contain_anchor("apt_key #{GPG_KEY_ID} present")
       end
     end
@@ -56,15 +63,14 @@
 
       it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+        is_expected.to contain_apt_key(title).with({
           :id                => title,
           :ensure            => 'absent',
           :source            => nil,
-          :server            => nil,
+          :server            => 'keyserver.ubuntu.com',
           :content           => nil,
-          :keyserver_options => nil,
         })
       end
       it 'contains the apt_key absent anchor' do
-        should contain_anchor("apt_key #{title} absent")
+        is_expected.to contain_anchor("apt_key #{title} absent")
       end
     end
@@ -72,22 +78,22 @@
     describe 'set a bunch of things!' do
       let :params do {
-        :key_content => 'GPG key content',
-        :key_source => 'http://apt.puppetlabs.com/pubkey.gpg',
-        :key_server => 'pgp.mit.edu',
-        :key_options => 'debug',
-      } end
-
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+        :content => 'GPG key content',
+        :source => 'http://apt.puppetlabs.com/pubkey.gpg',
+        :server => 'pgp.mit.edu',
+        :options => 'debug',
+      } end
+
+      it 'contains the apt_key' do
+        is_expected.to contain_apt_key(title).with({
           :id      => title,
           :ensure  => 'present',
           :source  => 'http://apt.puppetlabs.com/pubkey.gpg',
           :server  => 'pgp.mit.edu',
-          :content => params[:key_content],
+          :content => params[:content],
           :options => 'debug',
         })
       end
       it 'contains the apt_key present anchor' do
-        should contain_anchor("apt_key #{title} present")
+        is_expected.to contain_anchor("apt_key #{title} present")
       end
     end
@@ -95,8 +101,8 @@
     context "domain with dash" do
       let(:params) do{
-        :key_server => 'p-gp.m-it.edu',
-      } end
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+        :server => 'p-gp.m-it.edu',
+      } end
+      it 'contains the apt_key' do
+        is_expected.to contain_apt_key(title).with({
           :id        => title,
           :server => 'p-gp.m-it.edu',
@@ -108,9 +114,9 @@
       let :params do
         {
-          :key_server => 'hkp://pgp.mit.edu',
-        }
-      end
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+          :server => 'hkp://pgp.mit.edu',
+        }
+      end
+      it 'contains the apt_key' do
+        is_expected.to contain_apt_key(title).with({
           :id        => title,
           :server => 'hkp://pgp.mit.edu',
@@ -121,9 +127,9 @@
       let :params do
         {
-          :key_server => 'hkp://pgp.mit.edu:80',
-        }
-      end
-      it 'contains the apt_key' do
-        should contain_apt_key(title).with({
+          :server => 'hkp://pgp.mit.edu:80',
+        }
+      end
+      it 'contains the apt_key' do
+        is_expected.to contain_apt_key(title).with({
           :id        => title,
           :server => 'hkp://pgp.mit.edu:80',
@@ -136,5 +142,5 @@
     context "domain begin with dash" do
       let(:params) do{
-        :key_server => '-pgp.mit.edu',
+        :server => '-pgp.mit.edu',
       } end
       it 'fails' do
@@ -145,5 +151,5 @@
     context "domain begin with dot" do
       let(:params) do{
-        :key_server => '.pgp.mit.edu',
+        :server => '.pgp.mit.edu',
       } end
       it 'fails' do
@@ -154,5 +160,5 @@
     context "domain end with dot" do
       let(:params) do{
-        :key_server => "pgp.mit.edu.",
+        :server => "pgp.mit.edu.",
       } end
       it 'fails' do
@@ -163,5 +169,5 @@
       let :params do
         {
-          :key_server => 'hkp://pgpiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.mit.edu'
+          :server => 'hkp://pgpiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.mit.edu'
         }
       end
@@ -173,5 +179,5 @@
       let :params do
         {
-          :key_server => 'hkp://pgp.mit.edu:8008080'
+          :server => 'hkp://pgp.mit.edu:8008080'
         }
       end
@@ -183,5 +189,5 @@
       let :params do
         {
-          :key_server => 'abc://pgp.mit.edu:80'
+          :server => 'abc://pgp.mit.edu:80'
         }
       end
@@ -193,5 +199,5 @@
       let :params do
         {
-          :key_server => 'hkp://pgp.mit.edu:'
+          :server => 'hkp://pgp.mit.edu:'
         }
       end
@@ -203,5 +209,5 @@
       let :params do
         {
-          :key_server => 'hkp://pgp.mit.edu.'
+          :server => 'hkp://pgp.mit.edu.'
         }
       end
@@ -212,5 +218,5 @@
     context "url begin with a dash" do
       let(:params) do{
-        :key_server => "hkp://-pgp.mit.edu",
+        :server => "hkp://-pgp.mit.edu",
       } end
       it 'fails' do
@@ -229,5 +235,5 @@
     context 'invalid source' do
       let :params do {
-        :key_source => 'afp://puppetlabs.com/key.gpg',
+        :source => 'afp://puppetlabs.com/key.gpg',
       } end
       it 'fails' do
@@ -238,8 +244,8 @@
     context 'invalid content' do
       let :params do {
-        :key_content => [],
-      } end
-      it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        :content => [],
+      } end
+      it 'fails' do
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end
@@ -247,5 +253,5 @@
     context 'invalid server' do
       let :params do {
-        :key_server => 'two bottles of rum',
+        :server => 'two bottles of rum',
       } end
       it 'fails' do
@@ -256,8 +262,8 @@
     context 'invalid keyserver_options' do
       let :params do {
-        :key_options => {},
-      } end
-      it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        :options => {},
+      } end
+      it 'fails' do
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end
@@ -270,5 +276,5 @@
       end
       it 'fails' do
-        expect { subject.call }.to raise_error(/does not match/)
+        expect { subject.call }.to raise_error(/Enum\['absent', 'present'\]/)
       end
     end
@@ -277,13 +283,16 @@
       context 'two apt::key resources for same key, different titles' do
         let :pre_condition do
-          "apt::key { 'duplicate': key => '#{title}', }"
-        end
-
-        it 'contains two apt::key resources' do
-          should contain_apt__key('duplicate').with({
-            :key    => title,
+          "#{super()}\napt::key { 'duplicate': id => '#{title}', }"
+        end
+
+        it 'contains the duplicate apt::key resource' do
+          is_expected.to contain_apt__key('duplicate').with({
+            :id    => title,
             :ensure => 'present',
           })
-          should contain_apt__key(title).with({
+        end
+
+        it 'contains the original apt::key resource' do
+          is_expected.to contain_apt__key(title).with({
             :id     => title,
             :ensure => 'present',
@@ -291,14 +300,17 @@
         end
 
-        it 'contains only a single apt_key' do
-          should contain_apt_key('duplicate').with({
+        it 'contains the native apt_key' do
+          is_expected.to contain_apt_key('duplicate').with({
             :id                => title,
             :ensure            => 'present',
             :source            => nil,
-            :server            => nil,
+            :server            => 'keyserver.ubuntu.com',
             :content           => nil,
             :keyserver_options => nil,
           })
-          should_not contain_apt_key(title)
+        end
+
+        it 'does not contain the original apt_key' do
+          is_expected.not_to contain_apt_key(title)
         end
       end
@@ -306,5 +318,5 @@
       context 'two apt::key resources, different ensure' do
         let :pre_condition do
-          "apt::key { 'duplicate': key => '#{title}', ensure => 'absent', }"
+          "#{super()}\napt::key { 'duplicate': id => '#{title}', ensure => 'absent', }"
         end
         it 'informs the user of the impossibility' do
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/key_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,7 +6,13 @@
   end
 
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
-
-  GPG_KEY_ID = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+  let(:facts) { {
+    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+    :lsbdistid       => 'Debian',
+    :osfamily        => 'Debian',
+    :lsbdistcodename => 'wheezy',
+    :puppetversion   => Puppet.version,
+  } }
+
+  GPG_KEY_ID = '6F6B15509CF8E59E6E469F327F438280EF8D349F'
 
   let :title do
@@ -246,5 +252,5 @@
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end
@@ -264,16 +270,18 @@
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end
 
     context 'invalid ensure' do
-      let :params do
-        {
-          :ensure => 'foo',
-        }
-      end
-      it 'fails' do
-        expect { subject.call }.to raise_error(/does not match/)
+      %w(foo aabsent absenta apresent presenta).each do |param|
+        let :params do
+          {
+            :ensure => param,
+          }
+          end
+        it 'fails' do
+          expect { subject.call }.to raise_error(/for Enum\['absent', 'present'\], got/)
+        end
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/pin_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/pin_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/pin_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -4,10 +4,15 @@
     'class { "apt": }'
   end
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+  let(:facts) { {
+    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+    :lsbdistid       => 'Debian',
+    :osfamily        => 'Debian',
+    :lsbdistcodename => 'wheezy',
+    :puppetversion   => Puppet.version,
+  } }
   let(:title) { 'my_pin' }
 
   context 'defaults' do
     it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: \*\nPin: release a=my_pin\nPin-Priority: 0\n/)}
-    it { is_expected.to contain_apt__setting("pref-my_pin") }
   end
 
@@ -16,9 +21,8 @@
       {
         'packages' => 'vim',
-        'version'  => '1',
+        'version'  => "1",
       }
     end
     it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: vim\nPin: version 1\nPin-Priority: 0\n/)}
-    it { is_expected.to contain_apt__setting("pref-my_pin") }
   end
 
@@ -31,5 +35,4 @@
     end
     it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: vim\nPin: origin test\nPin-Priority: 0\n/)}
-    it { is_expected.to contain_apt__setting("pref-my_pin") }
   end
 
@@ -82,5 +85,5 @@
         expect {
           subject.call
-        }.to raise_error(Puppet::Error, /Only integers are allowed/)
+        }.to raise_error(Puppet::Error, /expects an Integer value, got String/)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/ppa_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/ppa_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/ppa_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,4 +8,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '11', :full => '11.04' }},
         :lsbdistrelease  => '11.04',
         :lsbdistcodename => 'natty',
@@ -22,5 +23,5 @@
       :environment => [],
       :command     => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow+type',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow_type-natty.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow_type-natty.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -32,4 +33,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '15', :full => '15.10' }},
         :lsbdistrelease  => '15.10',
         :lsbdistcodename => 'wily',
@@ -45,5 +47,5 @@
       :environment => [],
       :command     => '/usr/bin/add-apt-repository -y ppa:user/foo',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/user-ubuntu-foo-wily.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/user-ubuntu-foo-wily.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -70,4 +72,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '11', :full => '11.04' }},
         :lsbdistrelease  => '11.04',
         :lsbdistcodename => 'natty',
@@ -84,5 +87,5 @@
       'environment' => [],
       'command'     => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow',
-      'unless'      => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
+      'unless'      => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
       'user'        => 'root',
       'logoutput'   => 'on_failure',
@@ -105,4 +108,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '11', :full => '11.04' }},
         :lsbdistrelease  => '11.04',
         :lsbdistcodename => 'natty',
@@ -124,5 +128,5 @@
       'environment' => [],
       'command'     => '/usr/bin/add-apt-repository -y ppa:user/bar',
-      'unless'      => '/usr/bin/test -s /etc/apt/sources.list.d/user-bar-natty.list',
+      'unless'      => '/usr/bin/test -f /etc/apt/sources.list.d/user-bar-natty.list',
       'user'        => 'root',
       'logoutput'   => 'on_failure',
@@ -142,4 +146,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '11', :full => '11.04' }},
         :lsbdistrelease  => '11.04',
         :lsbdistcodename => 'natty',
@@ -161,5 +166,5 @@
       'environment' => [],
       'command'     => '/usr/bin/add-apt-repository -y ppa:needs/such.substitution/wow',
-      'unless'      => '/usr/bin/test -s /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
+      'unless'      => '/usr/bin/test -f /etc/apt/sources.list.d/needs-such_substitution-wow-natty.list',
       'user'        => 'root',
       'logoutput'   => 'on_failure',
@@ -181,4 +186,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistrelease  => '14.04',
         :lsbdistcodename => 'trusty',
@@ -202,5 +208,5 @@
       :environment => [],
       :command     => '/usr/bin/add-apt-repository  ppa:user/foo',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -217,4 +223,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistrelease  => '14.04',
         :lsbdistcodename => 'trusty',
@@ -236,5 +243,5 @@
       :environment => ['http_proxy=http://localhost:8080'],
       :command     => '/usr/bin/add-apt-repository  ppa:user/foo',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -251,4 +258,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistrelease  => '14.04',
         :lsbdistcodename => 'trusty',
@@ -270,5 +278,5 @@
       :environment => ['http_proxy=http://localhost:8180'],
       :command     => '/usr/bin/add-apt-repository  ppa:user/foo',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -285,4 +293,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistrelease  => '14.04',
         :lsbdistcodename => 'trusty',
@@ -304,5 +313,5 @@
       :environment => ['http_proxy=http://localhost:8180', 'https_proxy=https://localhost:8180'],
       :command     => '/usr/bin/add-apt-repository  ppa:user/foo',
-      :unless      => '/usr/bin/test -s /etc/apt/sources.list.d/user-foo-trusty.list',
+      :unless      => '/usr/bin/test -f /etc/apt/sources.list.d/user-foo-trusty.list',
       :user        => 'root',
       :logoutput   => 'on_failure',
@@ -317,4 +326,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
         :lsbdistrelease  => '14.04',
         :lsbdistcodename => 'trusty',
@@ -341,4 +351,5 @@
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '14', :full => '14.04' }},
           :lsbdistrelease  => '14.04',
           :operatingsystem => 'Ubuntu',
@@ -360,4 +371,5 @@
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '6', :full => '6.0.7' }},
           :lsbdistrelease  => '6.0.7',
           :lsbdistcodename => 'wheezy',
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/setting_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/setting_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/setting_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,5 +3,15 @@
 describe 'apt::setting' do
   let(:pre_condition) { 'class { "apt": }' }
-  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+  let :facts do
+    {
+      :os => { :distro => { :codename => 'wheezy' }, :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+      :lsbdistrelease  => '7.0',
+      :lsbdistcodename => 'wheezy',
+      :operatingsystem => 'Debian',
+      :osfamily        => 'Debian',
+      :lsbdistid       => 'Debian',
+      :puppetversion   => Puppet.version,
+    }
+  end
   let(:title) { 'conf-teddybear' }
 
@@ -62,5 +72,11 @@
       '
     end
-    let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
+    let(:facts) { {
+      :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+      :lsbdistid       => 'Debian',
+      :osfamily        => 'Debian',
+      :lsbdistcodename => 'wheezy',
+      :puppetversion   => Puppet.version,
+    } }
     let(:title) { 'conf-teddybear' }
     let(:default_params) { { :content => 'di' } }
@@ -83,5 +99,5 @@
       let(:params) { default_params }
       it do
-        expect { subject.call }.to raise_error(Puppet::Error, /must start with /)
+        expect { subject.call }.to raise_error(Puppet::Error, /must start with either/)
       end
     end
@@ -90,5 +106,5 @@
       let(:params) { default_params.merge({ :ensure => 'banana' }) }
       it do
-        expect { subject.call }.to raise_error(Puppet::Error, /"banana" does not /)
+        expect { subject.call }.to raise_error(Puppet::Error, /Enum\['absent', 'file', 'present'\]/)
       end
     end
@@ -96,6 +112,8 @@
     context 'with priority=1.2' do
       let(:params) { default_params.merge({ :priority => 1.2 }) }
-      it do
-        expect { subject.call }.to raise_error(Puppet::Error, /be an integer /)
+      if Puppet::Util::Package.versioncmp(Puppet.version, '4.0') >= 0 || ENV["FUTURE_PARSER"] == 'yes'
+        it { is_expected.to compile.and_raise_error(/expects a value of type/) }
+      else
+        it { is_expected.to compile.and_raise_error(/priority must be an integer or a zero-padded integer/) }
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_compat_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_compat_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_compat_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 
 describe 'apt::source', :type => :define do
-  GPG_KEY_ID = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+  GPG_KEY_ID = '6F6B15509CF8E59E6E469F327F438280EF8D349F'
 
   let :title do
@@ -11,7 +11,9 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
         :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
       }
     end
@@ -19,6 +21,5 @@
     let :params do
       {
-        'include_deb' => false,
-        'include_src' => true,
+        'include' => { 'deb' => false, 'src' => true },
         'location'    => 'http://debian.mirror.iweb.ca/debian/',
       }
@@ -32,24 +33,22 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
-        :osfamily        => 'Debian'
+        :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
       }
     end
     let :params do
       {
-        'comment'           => 'foo',
-        'location'          => 'http://debian.mirror.iweb.ca/debian/',
-        'release'           => 'sid',
-        'repos'             => 'testing',
-        'include_src'       => false,
-        'required_packages' => 'vim',
-        'key'               => GPG_KEY_ID,
-        'key_server'        => 'pgp.mit.edu',
-        'key_content'       => 'GPG key content',
-        'key_source'        => 'http://apt.puppetlabs.com/pubkey.gpg',
-        'pin'               => '10',
-        'architecture'      => 'x86_64',
-        'trusted_source'    => true,
+        'comment'        => 'foo',
+        'location'       => 'http://debian.mirror.iweb.ca/debian/',
+        'release'        => 'sid',
+        'repos'          => 'testing',
+        'include'        => { 'src' => false },
+        'key'            => GPG_KEY_ID,
+        'pin'            => '10',
+        'architecture'   => 'x86_64',
+        'allow_unsigned' => true,
       }
     end
@@ -65,36 +64,26 @@
     }
 
-    it { is_expected.to contain_exec("Required packages: 'vim' for my_source").that_comes_before('Apt::Setting[list-my_source]').with({
-      'command'     => '/usr/bin/apt-get -y install vim',
-      'logoutput'   => 'on_failure',
-      'refreshonly' => true,
-      'tries'       => '3',
-      'try_sleep'   => '1',
-    })
-    }
-
     it { is_expected.to contain_apt__key("Add key: #{GPG_KEY_ID} from Apt::Source my_source").that_comes_before('Apt::Setting[list-my_source]').with({
       'ensure' => 'present',
       'id'  => GPG_KEY_ID,
-      'key_server' => 'pgp.mit.edu',
-      'key_content' => 'GPG key content',
-      'key_source' => 'http://apt.puppetlabs.com/pubkey.gpg',
     })
     }
   end
 
-  context 'trusted_source true' do
+  context 'allow_unsigned true' do
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
-        :osfamily        => 'Debian'
+        :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
       }
     end
     let :params do
       {
-        'include_src'    => false,
+        'include'        => {'src' => false},
         'location'       => 'http://debian.mirror.iweb.ca/debian/',
-        'trusted_source' => true,
+        'allow_unsigned' => true,
       }
     end
@@ -106,7 +95,9 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
-        :osfamily        => 'Debian'
+        :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
       }
     end
@@ -125,7 +116,9 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
-        :osfamily        => 'Debian'
+        :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
       }
     end
@@ -146,6 +139,8 @@
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
           :lsbdistid       => 'Debian',
-          :osfamily        => 'Debian'
+          :osfamily        => 'Debian',
+          :puppetversion   => Puppet.version,
         }
       end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/defines/source_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 
 describe 'apt::source' do
-  GPG_KEY_ID = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
+  GPG_KEY_ID = '6F6B15509CF8E59E6E469F327F438280EF8D349F'
 
   let :pre_condition do
@@ -16,7 +16,7 @@
       let :facts do
         {
-          :lsbdistid       => 'Debian',
-          :lsbdistcodename => 'wheezy',
-          :osfamily        => 'Debian',
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :osfamily        => 'Debian',
+          :lsbdistcodename => 'wheezy',
           :puppetversion   => Puppet.version,
         }
@@ -31,4 +31,5 @@
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
           :lsbdistid       => 'Debian',
           :lsbdistcodename => 'wheezy',
@@ -49,7 +50,10 @@
     let :facts do
       {
-        :lsbdistid       => 'Debian',
-        :lsbdistcodename => 'wheezy',
-        :osfamily        => 'Debian',
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+        :lsbdistid       => 'Debian',
+        :lsbdistcodename => 'wheezy',
+        :osfamily        => 'Debian',
+        :operatingsystem => 'Debian',
+        :lsbdistrelease  => '7.0',
         :puppetversion   => Puppet.version,
       }
@@ -190,4 +194,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
@@ -212,4 +217,5 @@
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
@@ -221,5 +227,5 @@
       {
         :location     => 'hello.there',
-        :include      => {'deb' => false, 'src' => true,},
+        :include      => {'deb' => false, 'src' => true},
         :architecture => 'x86_64',
       }
@@ -232,7 +238,32 @@
   end
 
+  context 'with architecture fact and unset architecture parameter' do
+    let :facts do
+      {
+        :architecture    => 'amd64',
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+        :lsbdistid       => 'Debian',
+        :lsbdistcodename => 'wheezy',
+        :osfamily        => 'Debian',
+        :puppetversion   => Puppet.version,
+      }
+    end
+    let :params do
+      {
+        :location => 'hello.there',
+        :include  => {'deb' => false, 'src' => true,},
+      }
+    end
+
+    it { is_expected.to contain_apt__setting('list-my_source').with({
+      :ensure => 'present',
+    }).with_content(/# my_source\ndeb-src hello.there wheezy main\n/)
+    }
+  end
+
   context 'include_src => true' do
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
@@ -244,5 +275,5 @@
       {
         :location    => 'hello.there',
-        :include_src => true,
+        :include     => {'src' => true},
       }
     end
@@ -254,7 +285,8 @@
   end
 
-  context 'include_deb => false' do
-    let :facts do
-      {
+  context 'include deb => false' do
+    let :facts do
+      {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'debian',
         :lsbdistcodename => 'wheezy',
@@ -265,6 +297,6 @@
     let :params do
       {
+        :include => { 'deb' => false },
         :location    => 'hello.there',
-        :include_deb => false,
       }
     end
@@ -277,7 +309,8 @@
   end
 
-  context 'include_src => true and include_deb => false' do
-    let :facts do
-      {
+  context 'include src => true and include deb => false' do
+    let :facts do
+      {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'debian',
         :lsbdistcodename => 'wheezy',
@@ -288,7 +321,6 @@
     let :params do
       {
+        :include => { 'deb' => false, 'src' => true },
         :location    => 'hello.there',
-        :include_deb => false,
-        :include_src => true,
       }
     end
@@ -301,32 +333,8 @@
   end
 
-  context 'include precedence' do
-    let :facts do
-      {
-        :lsbdistid       => 'debian',
-        :lsbdistcodename => 'wheezy',
-        :osfamily        => 'debian',
-        :puppetversion   => Puppet.version,
-      }
-    end
-    let :params do
-      {
-        :location    => 'hello.there',
-        :include_deb => true,
-        :include_src => false,
-        :include     => { 'deb' => false, 'src' => true },
-      }
-    end
-
-    it { is_expected.to contain_apt__setting('list-my_source').with({
-      :ensure => 'present',
-    }).with_content(/deb-src hello.there wheezy main\n/)
-    }
-    it { is_expected.to contain_apt__setting('list-my_source').without_content(/deb hello.there wheezy main\n/) }
-  end
-
   context 'ensure => absent' do
     let :facts do
       {
+        :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
         :lsbdistid       => 'Debian',
         :lsbdistcodename => 'wheezy',
@@ -351,4 +359,5 @@
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
           :lsbdistid       => 'Debian',
           :osfamily        => 'Debian',
@@ -365,7 +374,22 @@
     end
 
+    context 'release is empty string' do
+      let :facts do
+        {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid       => 'Debian',
+          :osfamily        => 'Debian',
+          :puppetversion   => Puppet.version,
+        }
+      end
+      let(:params) { { :location => 'hello.there', :release => '' } }
+
+      it { is_expected.to contain_apt__setting('list-my_source').with_content(/hello\.there  main/) }
+    end
+
     context 'invalid pin' do
       let :facts do
         {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
           :lsbdistid       => 'Debian',
           :lsbdistcodename => 'wheezy',
@@ -388,4 +412,60 @@
     end
 
+    context "with notify_update = undef (default)" do
+      let :facts do
+        {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid       => 'Debian',
+          :lsbdistcodename => 'wheezy',
+          :osfamily        => 'Debian',
+          :puppetversion   => Puppet.version,
+        }
+      end
+      let :params do
+        {
+          :location      => 'hello.there',
+        }
+      end
+      it { is_expected.to contain_apt__setting("list-#{title}").with_notify_update(true) }
+    end
+
+    context "with notify_update = true" do
+      let :facts do
+        {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid       => 'Debian',
+          :lsbdistcodename => 'wheezy',
+          :osfamily        => 'Debian',
+          :puppetversion   => Puppet.version,
+        }
+      end
+      let :params do
+        {
+          :location      => 'hello.there',
+          :notify_update => true,
+        }
+      end
+      it { is_expected.to contain_apt__setting("list-#{title}").with_notify_update(true) }
+    end
+
+    context "with notify_update = false" do
+      let :facts do
+        {
+          :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
+          :lsbdistid       => 'Debian',
+          :lsbdistcodename => 'wheezy',
+          :osfamily        => 'Debian',
+          :puppetversion   => Puppet.version,
+        }
+      end
+      let :params do
+        {
+          :location      => 'hello.there',
+          :notify_update => false,
+        }
+      end
+      it { is_expected.to contain_apt__setting("list-#{title}").with_notify_update(false) }
+    end
+
   end
 end
Index: c/puppetcode/environments/gnuboat/modules/apt/spec/spec.opts
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/spec.opts	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,6 +1,0 @@
---format
-s
---colour
---loadby
-mtime
---backtrace
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/spec_helper_acceptance.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/spec_helper_acceptance.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/spec_helper_acceptance.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,8 +1,37 @@
 require 'beaker-rspec'
 require 'beaker/puppet_install_helper'
+require 'beaker/module_install_helper'
 
 run_puppet_install_helper
+install_module_on(hosts)
+install_module_dependencies_on(hosts)
 
 UNSUPPORTED_PLATFORMS = ['RedHat','Suse','windows','AIX','Solaris']
+
+# This method allows a block to be passed in and if an exception is raised
+# that matches the 'error_matcher' matcher, the block will wait a set number
+# of seconds before retrying.
+# Params:
+# - max_retry_count - Max number of retries
+# - retry_wait_interval_secs - Number of seconds to wait before retry
+# - error_matcher - Matcher which the exception raised must match to allow retry
+# Example Usage:
+# retry_on_error_matching(3, 5, /OpenGPG Error/) do
+#   apply_manifest(pp, :catch_failures => true)
+# end
+def retry_on_error_matching(max_retry_count = 3, retry_wait_interval_secs = 5, error_matcher = nil)
+  try = 0
+  begin
+    try += 1
+    yield
+  rescue Exception => e
+    if try < max_retry_count && (error_matcher == nil || e.message =~ error_matcher)
+      sleep retry_wait_interval_secs
+      retry
+    else
+      raise
+    end
+  end
+end
 
 RSpec.configure do |c|
@@ -12,13 +41,3 @@
   # Readable test descriptions
   c.formatter = :documentation
-
-  # Configure all nodes in nodeset
-  c.before :suite do
-    # Install module and dependencies
-    hosts.each do |host|
-      copy_module_to(host, :source => proj_root, :module_name => 'apt')
-      shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
-      on host, puppet('module install puppetlabs-stdlib --version 4.5.0'), { :acceptable_exit_codes => [0,1] }
-    end
-  end
 end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_has_updates_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_has_updates_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_has_updates_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,31 +12,9 @@
   end
 
-  describe 'on Debian based distro missing update-notifier-common' do
+  describe 'on Debian based distro missing apt-get' do
     before {
       Facter.fact(:osfamily).expects(:value).at_least(1).returns 'Debian'
       File.stubs(:executable?) # Stub all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns false
-    }
-    it { is_expected.to be_nil }
-  end
-
-  describe 'on Debian based distro with broken packages' do
-    before {
-      Facter.fact(:osfamily).expects(:value).at_least(1).returns 'Debian'
-      File.stubs(:executable?) # Stub all other calls
-      Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "E: Error: BrokenCount > 0"
-    }
-    it { is_expected.to be_nil }
-  end
-
-  describe 'on Debian based distro with unknown error with semicolons' do
-    before {
-      Facter.fact(:osfamily).expects(:value).at_least(1).returns 'Debian'
-      File.stubs(:executable?) # Stub all other calls
-      Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "E: Unknown Error: 'This error contains something that could be parsed like 4;3' (10)"
+      File.expects(:executable?).with('/usr/bin/apt-get').returns false
     }
     it { is_expected.to be_nil }
@@ -48,6 +26,10 @@
       File.stubs(:executable?) # Stub all other calls
       Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "4;3"
+      File.expects(:executable?).with('/usr/bin/apt-get').returns true
+      Facter::Util::Resolution.expects(:exec).with('/usr/bin/apt-get -s upgrade 2>&1').returns ""+
+        "Inst tzdata [2015f-0+deb8u1] (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Conf tzdata (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Inst unhide.rb [13-1.1] (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"+
+        "Conf unhide.rb (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"
     }
     it { is_expected.to be true }
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_package_updates_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_package_updates_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_package_updates_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,13 +17,16 @@
       File.stubs(:executable?) # Stub all other calls
       Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "1;2"
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check -p 2>&1').returns "puppet-common\nlinux-generic\nlinux-image-generic"
+      File.expects(:executable?).with('/usr/bin/apt-get').returns true
+      Facter::Util::Resolution.expects(:exec).with('/usr/bin/apt-get -s upgrade 2>&1').returns ""+
+        "Inst tzdata [2015f-0+deb8u1] (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Conf tzdata (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Inst unhide.rb [13-1.1] (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"+
+        "Conf unhide.rb (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"
     }
     it {
       if Facter.version < '2.0.0'
-        is_expected.to eq('puppet-common,linux-generic,linux-image-generic')
+        is_expected.to eq('tzdata,unhide.rb')
       else
-        is_expected.to eq(['puppet-common', 'linux-generic', 'linux-image-generic'])
+        is_expected.to eq(['tzdata','unhide.rb'])
       end
     }
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_security_updates_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_security_updates_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_security_updates_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,8 +17,12 @@
       File.stubs(:executable?) # Stub all other calls
       Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "14;7"
+      File.expects(:executable?).with('/usr/bin/apt-get').returns true
+      Facter::Util::Resolution.expects(:exec).with('/usr/bin/apt-get -s upgrade 2>&1').returns ""+
+        "Inst tzdata [2015f-0+deb8u1] (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Conf tzdata (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Inst unhide.rb [13-1.1] (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"+
+        "Conf unhide.rb (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"
     }
-    it { is_expected.to eq(7) }
+    it { is_expected.to eq(1) }
   end
 
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_update_last_success_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_update_last_success_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_update_last_success_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,12 +3,11 @@
 describe 'apt_update_last_success fact' do
   subject { Facter.fact(:apt_update_last_success).value }
+  before(:each) { Facter.clear }
   after(:each) { Facter.clear }
 
   describe 'on Debian based distro which has not yet created the update-success-stamp file' do
-    before {
+    it 'should have a value of -1' do
       Facter.fact(:osfamily).stubs(:value).returns 'Debian'
-      File.stubs(:exists?).returns false
-    }
-    it 'should have a value of -1' do
+      File.expects(:exists?).with('/var/lib/apt/periodic/update-success-stamp').returns false
       is_expected.to eq(-1)
     end
@@ -16,10 +15,8 @@
 
   describe 'on Debian based distro which has created the update-success-stamp' do
-    before {
+    it 'should have the value of the mtime of the file' do
       Facter.fact(:osfamily).stubs(:value).returns 'Debian'
       File.stubs(:exists?).returns true
       File.stubs(:mtime).returns 1407660561
-    }
-    it 'should have the value of the mtime of the file' do
       is_expected.to eq(1407660561)
     end
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_updates_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_updates_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/facter/apt_updates_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,8 +17,12 @@
       File.stubs(:executable?) # Stub all other calls
       Facter::Util::Resolution.stubs(:exec) # Catch all other calls
-      File.expects(:executable?).with('/usr/lib/update-notifier/apt-check').returns true
-      Facter::Util::Resolution.expects(:exec).with('/usr/lib/update-notifier/apt-check 2>&1').returns "14;7"
+      File.expects(:executable?).with('/usr/bin/apt-get').returns true
+      Facter::Util::Resolution.expects(:exec).with('/usr/bin/apt-get -s upgrade 2>&1').returns ""+
+        "Inst tzdata [2015f-0+deb8u1] (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Conf tzdata (2015g-0+deb8u1 Debian:stable-updates [all])\n"+
+        "Inst unhide.rb [13-1.1] (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"+
+        "Conf unhide.rb (22-2~bpo8+1 Debian Backports:jessie-backports [all])\n"
     }
-    it { is_expected.to eq(14) }
+    it { is_expected.to eq(2) }
   end
 
Index: src/puppetcode/environments/gnuboat/modules/apt/spec/unit/puppet/type/apt_key_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/spec/unit/puppet/type/apt_key_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/apt/spec/unit/puppet/type/apt_key_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,12 +5,12 @@
   context 'only namevar 32bit key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '4BD6EC30'
+      :id => 'EF8D349F'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq '4BD6EC30'
+      expect(resource[:id]).to eq 'EF8D349F'
     end
 
     it 'name is set to id' do
-      expect(resource[:name]).to eq '4BD6EC30'
+      expect(resource[:name]).to eq 'EF8D349F'
     end
 
@@ -30,8 +30,8 @@
   context 'with a lowercase 32bit key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '4bd6ec30'
+      :id => 'ef8d349f'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq '4BD6EC30'
+      expect(resource[:id]).to eq 'EF8D349F'
     end
   end
@@ -39,8 +39,8 @@
   context 'with a 64bit key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => 'FFFFFFFF4BD6EC30'
+      :id => 'FFFFFFFFEF8D349F'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq 'FFFFFFFF4BD6EC30'
+      expect(resource[:id]).to eq 'FFFFFFFFEF8D349F'
     end
   end
@@ -48,8 +48,8 @@
   context 'with a 0x formatted key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '0x4BD6EC30'
+      :id => '0xEF8D349F'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq '4BD6EC30'
+      expect(resource[:id]).to eq 'EF8D349F'
     end
   end
@@ -57,8 +57,8 @@
   context 'with a 0x formatted lowercase key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '0x4bd6ec30'
+      :id => '0xef8d349f'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq '4BD6EC30'
+      expect(resource[:id]).to eq 'EF8D349F'
     end
   end
@@ -66,8 +66,8 @@
   context 'with a 0x formatted 64bit key id' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '0xFFFFFFFF4BD6EC30'
+      :id => '0xFFFFFFFFEF8D349F'
     )}
     it 'id is set' do
-      expect(resource[:id]).to eq 'FFFFFFFF4BD6EC30'
+      expect(resource[:id]).to eq 'FFFFFFFFEF8D349F'
     end
   end
@@ -75,5 +75,5 @@
   context 'with source' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '4BD6EC30',
+      :id => 'EF8D349F',
       :source => 'http://apt.puppetlabs.com/pubkey.gpg'
     )}
@@ -86,5 +86,5 @@
   context 'with content' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '4BD6EC30',
+      :id => 'EF8D349F',
       :content => 'http://apt.puppetlabs.com/pubkey.gpg'
     )}
@@ -97,5 +97,5 @@
   context 'with keyserver' do
     let(:resource) { Puppet::Type.type(:apt_key).new(
-      :id => '4BD6EC30',
+      :id => 'EF8D349F',
       :server => 'http://keyring.debian.org'
     )}
@@ -109,5 +109,5 @@
     it 'raises an error if content and source are set' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'http://apt.puppetlabs.com/pubkey.gpg',
         :content => 'Completely invalid as a GPG key'
@@ -117,5 +117,5 @@
     it 'raises an error if a weird length key is used' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => 'F4BD6EC30',
+        :id      => 'FEF8D349F',
         :source  => 'http://apt.puppetlabs.com/pubkey.gpg',
         :content => 'Completely invalid as a GPG key'
@@ -125,5 +125,5 @@
     it 'raises an error when an invalid URI scheme is used in source' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'hkp://pgp.mit.edu'
       )}.to raise_error(/Valid values match/)
@@ -132,6 +132,13 @@
     it 'allows the http URI scheme in source' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'http://pgp.mit.edu'
+      )}.to_not raise_error
+    end
+
+    it 'allows the http URI with username and password' do
+      expect { Puppet::Type.type(:apt_key).new(
+          :id      => '4BD6EC30',
+          :source  => 'http://testme:Password2@pgp.mit.edu'
       )}.to_not raise_error
     end
@@ -139,5 +146,5 @@
     it 'allows the https URI scheme in source' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'https://pgp.mit.edu'
       )}.to_not raise_error
@@ -146,5 +153,5 @@
     it 'allows the https URI with username and password' do
       expect { Puppet::Type.type(:apt_key).new(
-          :id      => '4BD6EC30',
+          :id      => 'EF8D349F',
           :source  => 'https://testme:Password2@pgp.mit.edu'
       )}.to_not raise_error
@@ -153,5 +160,5 @@
     it 'allows the ftp URI scheme in source' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'ftp://pgp.mit.edu'
       )}.to_not raise_error
@@ -160,5 +167,5 @@
     it 'allows an absolute path in source' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => '/path/to/a/file'
       )}.to_not raise_error
@@ -167,5 +174,5 @@
     it 'allows 5-digit ports' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :source  => 'http://pgp.mit.edu:12345/key'
       )}.to_not raise_error
@@ -174,5 +181,5 @@
     it 'allows 5-digit ports when using key servers' do
       expect { Puppet::Type.type(:apt_key).new(
-        :id      => '4BD6EC30',
+        :id      => 'EF8D349F',
         :server  => 'http://pgp.mit.edu:12345'
       )}.to_not raise_error
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/15update-stamp.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/15update-stamp.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/15update-stamp.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/15update-stamp.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/15update-stamp.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,1 +1,0 @@
-APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/_conf_header.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/_conf_header.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/_conf_header.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+// This file is managed by Puppet. DO NOT EDIT.
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/_conf_header.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/_conf_header.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,1 +1,0 @@
-// This file is managed by Puppet. DO NOT EDIT.
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/_header.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/_header.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/_header.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+# This file is managed by Puppet. DO NOT EDIT.
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/_header.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/_header.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,1 +1,0 @@
-# This file is managed by Puppet. DO NOT EDIT.
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/conf.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/conf.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,1 +1,0 @@
-<%= @content -%>
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/pin.pref.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/pin.pref.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/pin.pref.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,26 @@
+<%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%>
+<%-
+$pin =
+if $pin_release.length > 0 {
+  $options = [
+    if $release         { "a=${release}" },
+    if $codename        { "n=${codename}" },
+    if $release_version { "v=${release_version}"},
+    if $component       { "c=${component}" },
+    if $originator      { "o=${originator}" },
+    if $label           { "l=${label}" },
+    ].filter |$x| { $x != undef }
+   "release ${options.join(', ')}" }
+
+elsif $version and "${version}".length > 0 {
+   "version ${version}" }
+elsif $origin and $origin.length > 0 {
+   "origin ${origin}" }
+else {
+  "release a=${name}" #Default value
+}
+-%>
+Explanation: <%= $explanation %>
+Package: <%= $packages_string %>
+Pin: <%= $pin %>
+Pin-Priority: <%= $priority %>
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/pin.pref.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/pin.pref.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,21 +1,0 @@
-<%-
-@pin = "release a=#{@name}" # default value
-if @pin_release.length > 0
-  options = []
-  options.push("a=#{@release}") if @release.length > 0
-  options.push("n=#{@codename}") if @codename.length > 0
-  options.push("v=#{@release_version}") if @release_version.length > 0
-  options.push("c=#{@component}") if @component.length > 0
-  options.push("o=#{@originator}") if @originator.length > 0
-  options.push("l=#{@label}") if @label.length > 0
-  @pin = "release #{options.join(', ')}"
-elsif @version.length > 0
-  @pin = "version #{@version}"
-elsif @origin.length > 0
-  @pin = "origin #{@origin}"
-end
--%>
-Explanation: <%= @_explanation %>
-Package: <%= @packages_string %>
-Pin: <%= @pin %>
-Pin-Priority: <%= @priority %>
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/proxy.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/proxy.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/proxy.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,5 @@
+<%- | Hash $proxies | -%>
+Acquire::http::proxy "http://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
+<%- if $proxies['https'] { %>
+Acquire::https::proxy "https://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
+<%- } -%>
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/proxy.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/proxy.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,4 +1,0 @@
-Acquire::http::proxy "http://<%= @_proxy['host'] %>:<%= @_proxy['port'] %>/";
-<%- if @_proxy['https'] %>
-Acquire::https::proxy "https://<%= @_proxy['host'] %>:<%= @_proxy['port'] %>/";
-<%- end -%>
Index: src/puppetcode/environments/gnuboat/modules/apt/templates/source.list.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/source.list.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/apt/templates/source.list.epp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,10 @@
+<%- | String $comment, Hash $includes, $opt_architecture, Boolean $allow_unsigned, $location, $release, String $repos | -%>
+# <%= $comment %>
+<%- if $includes['deb'] { -%>
+deb <%- if ($opt_architecture or $allow_unsigned) {-%>
+ [<%- if ($opt_architecture) {%>arch=<%= $opt_architecture %><% } %><%if ($opt_architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %>
+<%- } -%>
+<%- if $includes['src'] { -%>
+deb-src <%- if $opt_architecture or $allow_unsigned { -%>
+ [<%- if ($opt_architecture) {%>arch=<%= $opt_architecture %><% } %><%if ($opt_architecture and $allow_unsigned) {%> <% }%><% if ($allow_unsigned) {%>trusted=yes<% } %>] <%- } %> <%= $location %> <%= $release %> <%= $repos %>
+<%- } -%>
Index: c/puppetcode/environments/gnuboat/modules/apt/templates/source.list.erb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/apt/templates/source.list.erb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,9 +1,0 @@
-# <%= @comment %>
-<%- if @_include['deb'] then -%>
-deb <%- if @architecture or @_allow_unsigned -%>
-[<%- if @architecture %>arch=<%= @architecture %><% end %><%if @architecture and @_allow_unsigned %> <% end%><% if @_allow_unsigned %>trusted=yes<% end %>] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
-<%- end -%>
-<%- if @_include['src'] then -%>
-deb-src <%- if @architecture or @_allow_unsigned -%>
-[<%- if @architecture %>arch=<%= @architecture %><% end %><%if @architecture and @_allow_unsigned %> <% end%><% if @_allow_unsigned %>trusted=yes<% end %>] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
-<%- end -%>
Index: src/puppetcode/environments/gnuboat/modules/stdlib/CHANGELOG.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/CHANGELOG.md	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/CHANGELOG.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,2 +1,146 @@
+## Supported Release 4.17.1
+### Summary
+
+Small release to address a bug (PUP-7650). Also pushes the Puppet version compatibility to 4.7.0.
+
+#### Bugfixes
+- (MODULES-5095) Workaround for PUP-7650
+- (FM-6197) Formatting fixes for file_line resource
+
+
+## Supported Release 4.17.0
+### Summary
+This release adds support for internationalization. It also contains Japanese translations for the README, summary and description of the metadata.json and major cleanups in the README. Additional folders have been introduced called locales and readmes where translation files can be found. A number of features and bug fixes are also included in this release. It also adds a new function `glob()` for expanding file lists. Also works around an issue that appeared in puppet 4.6.0 involving types being declared multiple times.
+
+#### Features
+- Addition of POT file / folder structure for i18n.
+- Addition of Internationalized READMEs.
+- `glob()` function
+
+### Fixed
+- Occasional duplicate type definitions when using `defined_with_params()`
+- `file_line` encoding issue on ruby 1.8 (unsupported)
+- Huge readme refresh
+
+## Supported Release 4.16.0
+### Summary
+
+This release sees a massive update to all unit tests to test UTF8 characters. There are also multiple cleanups in preparation for internationalization. Alongside this, improvements to ipv6 support, a new length function compatible with Puppet 4, and an update to path types. Also contains multiple bug fixes around functionality and tests.
+
+#### Features
+- Addition of coverage in all unit tests for functions, data and resource types for UTF8 for i18n.
+- All strings within the readme and functions that are split over two lines have been combined in preparation for i18n parser/decorator.
+- Improvement on the ipv6 support for type - Improves regex to catch some valid (but lesser known) ipv6 strings, mostly those which are a mix of ipv6 strings and embedded ipv6 numbers.
+- Adds a new parameter `encoding` to allow non UTF-8 files to specify a file encoding. This prevents receiving the error message "invalid byte sequence in UTF-8" when special characters that are not UTF-8 encoded appear in the input stream, such as the copyright symbol.
+- Addition of the new length function. Returns the length of a given string, array or hash. To eventually replace the deprecated size() function as can handle the new type functionality introduced in Puppet 4.
+- Permit double slash in absolute/Unix path types.
+
+#### Bugfixes
+- Fix unsupported data type error with rspec-puppet master.
+- Now allows test module metadata.json to be read by Puppet.
+- Fix acceptance test failure "Hiera is not a class".
+- Removal of unsupported platforms and future parser setting in acceptance tests.
+- Regex for tuple checking has been loosened.
+- Ensure_packages function - Now only tries to apply the resource if not defined.
+- (MODULES-4528) Use versioncmp to check Puppet version for 4.10.x compat.
+- Adds comments to warn for UTF8 incompatibility of the functions that may not be compatible with UTF8 with Ruby < 2.4.0.
+
+## Supported Release 4.15.0
+### Summary
+
+This release introduces multiple new functions, a new fact and the addition of Ubuntu Xenial support. Also includes a bugfix and documentation update.
+
+#### Features
+- Addition of puppet_server fact to return agents server.
+- Addition of a pry function.
+- Addition of tests for ensure_resources.
+- Addition of FQDN UUID generation function.
+- Addition of Ubuntu Xenial to OS Support.
+
+####Bugfixes
+- Ensure_packages now works with Ruby < 2.0.
+- Updated the documentation of str2bool function.
+
+## Supported Release 4.14.0
+### Summary
+
+Adds several new features and updates, especially around refining the deprecation and validate_legacy functions. Also includes a Gemfile update around an issue with parallel_tests dependancy for different versions of Ruby.
+
+#### Features
+- Deprecation function now uses puppet stacktrace if available.
+- join_key_to_values function now handles array values. If values are arrays, multiple keys are added for each element.
+- Updated Gemfile to deal with parallel_tests Ruby dependancy (MODULES-3983).
+- Updated/Fixed ipv4 regex validator (MODULES-3980).
+- Deprecation clarification added to README.
+
+#### Bugfixes
+- README typo fixes.
+- Use .dup to duplicate classes for modification (MODULES-3829).
+- Fixes spec failures that were caused by a change in the tested error message in validate_legacy_spec.
+- Broken link to validate_legacy docs fixed.
+- Updates deprecation tests to include future parser.
+
+## Supported Release 4.13.1
+### Summary
+
+This bugfix release addresses the `undefined method 'optional_repeated_param'` error messages seen by users of puppet 3.7.
+
+It also improves the user experience around function deprecations by emitting one warning per function(-name) instead of only one deprecation overall. This allows users to identify all deprecated functions used in one agent run, with less back-and-forth.
+
+#### Bugfixes
+
+* Emit deprecations warnings for each function, instead of once per process. (MODULES-3961)
+* Use a universally available API for the v4 deprecation stubs of `is_*` and `validate_*`. (MODULES-3962)
+* Make `getvar()` compatible to ruby 1.8.7. (MODULES-3969)
+* Add v4 deprecation stubs for the `is_` counterparts of the deprecated functions to emit the deprecations warnings in all cases.
+
+
+## Supported Release 4.13.0
+### Summary
+
+This version of stdlib deprecates a whole host of functions, and provides stepping stones to move to Puppet 4 type validations. Be sure to check out the new `deprecation()` and `validate_legacy()` functions to migrate off the deprecated v3-style data validations.
+
+Many thanks to all community contributors: bob, Dmitry Ilyin, Dominic Cleal, Joris, Joseph Yaworski, Loic Antoine-Gombeaud, Maksym Melnychok, Michiel Brandenburg, Nate Potter, Romain Tartière, Stephen Benjamin, and Steve Moore, as well as anyone contributing in the code review process and by submitting issues.
+
+Special thanks to [Voxpupuli's](https://voxpupuli.org/) Igor Galić for donating the puppet-tea types to kickstart this part of stdlib.
+
+
+#### Deprecations
+* `validate_absolute_path`, `validate_array`, `validate_bool`, `validate_hash`, `validate_integer`, `validate_ip_address`, `validate_ipv4_address`, `validate_ipv6_address`, `validate_numeric`, `validate_re`, `validate_slength`, `validate_string`, and their `is_` counter parts are now deprecated on Puppet 4. See the `validate_legacy()` description in the README for help on migrating away from those functions.
+* The `dig` function is provided by core puppet since 4.5.0 with slightly different calling convention. The stdlib version can still be accessed as `dig44` for now.
+
+
+#### Features
+* Add Puppet 4 data types for Unix, and Windows paths, and URLs.
+* Add `deprecation` function to warn users of functionality that will be removed soon.
+* Add `validate_legacy` function to help with migrating to Puppet 4 data types.
+
+* Add `any2bool` function, a combination of of `string2bool` and `num2bool`.
+* Add `delete_regex` function to delete array elements matching a regular expression.
+* Add `puppet_environmentpath` fact to expose the `environmentpath` setting.
+* Add `regexpescape` function to safely insert arbitrary strings into regular expressions.
+* Add `shell_escape`, `shell_join`, and `shell_split` functions for safer working with shell scripts..
+
+* The `delete` function now also accepts regular expressions as search term.
+* The `loadyaml` function now accepts a default value, which is returned when there is an error loading the file.
+
+#### Bugfixes
+* Fix `file_line.match_for_absence` implementation and description to actually work. (MODULES-3590)
+* Fix `getparam` so that it can now also return `false`. (MODULES-3933)
+* Fix the fixture setup for testing and adjust `load_module_metadata` and `loadjson` tests.
+* Fix `defined_with_params` to handle `undef` correctly on all puppet versions. (PUP-6422, MODULES-3543)
+* Fix `file_line.path` validation to use puppet's built in `absolute_path?` matcher.
+
+#### Minor Improvements
+* README changes: improved descriptions of `deep_merge`, `delete`, `ensure_packages`, `file_line.after`, `range`, and `validate_numeric`.
+* The `getvar` function now returns nil in all situations where the variable is not found.
+* Update the `dig44` function with better `undef`, `nil`, and `false` handling.
+* Better wording on `str2bool` argument validation error message.
+
+
+### Known issues
+* The `validate_legacy` function relies on internal APIs from Puppet 4.4.0 (PE 2016.1) onwards, and doesn't work on earlier versions.
+* Puppet 4.5.0 (PE 2016.2) has a number of improvements around data types - especially error handling - that make working with them much nicer.
+
 ## Supported Release 4.12.0
 ###Summary
Index: src/puppetcode/environments/gnuboat/modules/stdlib/CONTRIBUTING.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/CONTRIBUTING.md	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/CONTRIBUTING.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -44,5 +44,5 @@
       - Make sure you have a [GitHub account](https://github.com/join)
 
-      - [Create a ticket](https://tickets.puppetlabs.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppetlabs.com/browse/) you are patching for.
+      - [Create a ticket](https://tickets.puppet.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppet.com/browse/) you are patching for.
 
     * Preferred method:
@@ -209,12 +209,9 @@
 ====================
 
-* [Getting additional help](http://puppetlabs.com/community/get-help)
-
-* [Writing tests](http://projects.puppetlabs.com/projects/puppet/wiki/Development_Writing_Tests)
-
-* [Patchwork](https://patchwork.puppetlabs.com)
+* [Getting additional help](http://puppet.com/community/get-help)
+
+* [Writing tests](https://docs.puppet.com/guides/module_guides/bgtm.html#step-three-module-testing)
 
 * [General GitHub documentation](http://help.github.com/)
 
 * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
-
Index: src/puppetcode/environments/gnuboat/modules/stdlib/Gemfile
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/Gemfile	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/Gemfile	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,37 +3,73 @@
 source ENV['GEM_SOURCE'] || "https://rubygems.org"
 
-def location_for(place, version = nil)
-  if place =~ /^(git[:@][^#]*)#(.*)/
-    [version, { :git => $1, :branch => $2, :require => false}].compact
-  elsif place =~ /^file:\/\/(.*)/
-    ['>= 0', { :path => File.expand_path($1), :require => false}]
+# Determines what type of gem is requested based on place_or_version.
+def gem_type(place_or_version)
+  if place_or_version =~ /^git:/
+    :git
+  elsif place_or_version =~ /^file:/
+    :file
   else
-    [place, version, { :require => false}].compact
+    :gem
   end
 end
 
-group :development, :unit_tests do
-  gem 'json',                      :require => false
-  gem 'metadata-json-lint',        :require => false
-  gem 'puppet_facts',              :require => false
-  gem 'puppet-blacksmith',         :require => false
-  gem 'puppetlabs_spec_helper',    :require => false
-  gem 'rspec-puppet', '>= 2.3.2',  :require => false
-  gem 'simplecov',                 :require => false
-end
-group :system_tests do
-  gem 'beaker-rspec',                  *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4')
-  gem 'beaker',                        *location_for(ENV['BEAKER_VERSION'])
-  gem 'serverspec',                    :require => false
-  gem 'beaker-puppet_install_helper',  :require => false
-  gem 'master_manipulator',            :require => false
-  gem 'beaker-hostgenerator',          *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
+# Find a location or specific version for a gem. place_or_version can be a
+# version, which is most often used. It can also be git, which is specified as
+# `git://somewhere.git#branch`. You can also use a file source location, which
+# is specified as `file://some/location/on/disk`.
+def location_for(place_or_version, fake_version = nil)
+  if place_or_version =~ /^(git[:@][^#]*)#(.*)/
+    [fake_version, { :git => $1, :branch => $2, :require => false }].compact
+  elsif place_or_version =~ /^file:\/\/(.*)/
+    ['>= 0', { :path => File.expand_path($1), :require => false }]
+  else
+    [place_or_version, { :require => false }]
+  end
 end
 
-gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'])
+# Used for gem conditionals
+supports_windows = false
+ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
+minor_version = "#{ruby_version_segments[0]}.#{ruby_version_segments[1]}"
+
+group :development do
+  gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby"
+  gem "puppet-module-win-default-r#{minor_version}",   :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "puppet-module-posix-dev-r#{minor_version}",     :require => false, :platforms => "ruby"
+  gem "puppet-module-win-dev-r#{minor_version}",       :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "json_pure", '<= 2.0.1',                         :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
+  gem "fast_gettext", '1.1.0',                         :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
+  gem "fast_gettext",                                  :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
+end
+
+group :system_tests do
+  gem "puppet-module-posix-system-r#{minor_version}",                            :require => false, :platforms => "ruby"
+  gem "puppet-module-win-system-r#{minor_version}",                              :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
+  gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3')                  
+  gem "beaker-pe",                                                               :require => false
+  gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION'])                
+  gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
+  gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')        
+end
+
 gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
 
+# Only explicitly specify Facter/Hiera if a version has been specified.
+# Otherwise it can lead to strange bundler behavior. If you are seeing weird
+# gem resolution behavior, try setting `DEBUG_RESOLVER` environment variable
+# to `1` and then run bundle install.
+gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) if ENV['FACTER_GEM_VERSION']
+gem 'hiera', *location_for(ENV['HIERA_GEM_VERSION']) if ENV['HIERA_GEM_VERSION']
 
+
+# Evaluate Gemfile.local if it exists
 if File.exists? "#{__FILE__}.local"
   eval(File.read("#{__FILE__}.local"), binding)
 end
+
+# Evaluate ~/.gemfile if it exists
+if File.exists?(File.join(Dir.home, '.gemfile'))
+  eval(File.read(File.join(Dir.home, '.gemfile')), binding)
+end
+
+# vim:ft=ruby
Index: src/puppetcode/environments/gnuboat/modules/stdlib/MAINTAINERS.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/MAINTAINERS.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/MAINTAINERS.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+## Maintenance
+
+Maintainers:
+  - Puppet Forge Modules Team `forge-modules |at| puppet |dot| com`
+
+Tickets: https://tickets.puppet.com/browse/MODULES. Make sure to set component to `stdlib`.
Index: c/puppetcode/environments/gnuboat/modules/stdlib/README.markdown
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/README.markdown	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,1400 +1,0 @@
-#stdlib
-
-####Table of Contents
-
-1. [Overview](#overview)
-2. [Module Description - What the module does and why it is useful](#module-description)
-3. [Setup - The basics of getting started with stdlib](#setup)
-4. [Usage - Configuration options and additional functionality](#usage)
-5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
-5. [Limitations - OS compatibility, etc.](#limitations)
-6. [Development - Guide for contributing to the module](#development)
-
-##Overview
-
-Adds a standard library of resources for Puppet modules.
-
-##Module Description
-
-This module provides a standard library of resources for the development of Puppet modules. Puppet modules make heavy use of this standard library. The stdlib module adds the following resources to Puppet:
-
- * Stages
- * Facts
- * Functions
- * Defined resource types
- * Types
- * Providers
-
-> *Note:* As of version 3.7, Puppet Enterprise no longer includes the stdlib module. If you're running Puppet Enterprise, you should install the most recent release of stdlib for compatibility with Puppet modules.
-
-##Setup
-
-Installing the stdlib module adds the functions, facts, and resources of this standard library to Puppet.
-
-##Usage
-
-After you've installed stdlib, all of its functions, facts, and resources are available for module use or development.
-
-If you want to use a standardized set of run stages for Puppet, `include stdlib` in your manifest.
-
-* `stdlib`: Most of stdlib's features are automatically loaded by Puppet. To use standardized run stages in Puppet, declare this class in your manifest with `include stdlib`.
-
-  When declared, stdlib declares all other classes in the module. The only other class currently included in the module is `stdlib::stages`.
-
-The `stdlib::stages` class declares various run stages for deploying infrastructure, language runtimes, and application layers. The high level stages are (in order):
-
-  * setup
-  * main
-  * runtime
-  * setup_infra
-  * deploy_infra
-  * setup_app
-  * deploy_app
-  * deploy
-
-  Sample usage:
-
-  ~~~
-  node default {
-    include stdlib
-    class { java: stage => 'runtime' }
-  }
-  ~~~
-
-## Reference
-
-### Classes
-
-#### Public Classes
-
-  The stdlib class has no parameters.
-
-#### Private Classes
-
-* `stdlib::stages`: Manages a standard set of run stages for Puppet. It is managed by the stdlib class and should not be declared independently.
-
-### Types
-
-#### `file_line`
-
-Ensures that a given line is contained within a file. The implementation matches the full line, including whitespace at the beginning and end. If the line is not contained in the given file, Puppet appends the line to the end of the file to ensure the desired state.  Multiple resources can be declared to manage multiple lines in the same file.
-
-Example:
-
-    file_line { 'sudo_rule':
-      path => '/etc/sudoers',
-      line => '%sudo ALL=(ALL) ALL',
-    }
-
-    file_line { 'sudo_rule_nopw':
-      path => '/etc/sudoers',
-      line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',
-    }
-
-In this example, Puppet ensures that both of the specified lines are contained in the file `/etc/sudoers`.
-
-Match Example:
-
-    file_line { 'bashrc_proxy':
-      ensure => present,
-      path   => '/etc/bashrc',
-      line   => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
-      match  => '^export\ HTTP_PROXY\=',
-    }
-
-In this code example, `match` looks for a line beginning with export followed by HTTP_PROXY and replaces it with the value in line.
-
-Match Example With `ensure => absent`:
-
-    file_line { 'bashrc_proxy':
-      ensure            => absent,
-      path              => '/etc/bashrc',
-      line              => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
-      match             => '^export\ HTTP_PROXY\=',
-      match_for_absence => true,
-    }
-
-In this code example, `match` looks for a line beginning with export
-followed by HTTP_PROXY and delete it.  If multiple lines match, an
-error will be raised unless the `multiple => true` parameter is set.
-
-**Autorequires:** If Puppet is managing the file that contains the line being managed, the `file_line` resource autorequires that file.
-
-##### Parameters
-
-All parameters are optional, unless otherwise noted.
-
-* `after`: Specifies the line after which Puppet adds any new lines. (Existing lines are added in place.) Valid options: String. Default: Undefined.
-* `ensure`: Ensures whether the resource is present. Valid options: 'present', 'absent'. Default: 'present'.
-* `line`: **Required.** Sets the line to be added to the file located by the `path` parameter. Valid options: String. Default: Undefined.
-* `match`: Specifies a regular expression to run against existing lines in the file; if a match is found, it is replaced rather than adding a new line. A regex comparison is performed against the line value, and if it does not match, an exception is raised. Valid options: String containing a regex. Default: Undefined.
-* `match_for_absence`: An optional value to determine if match should be applied when `ensure => absent`. If set to true and match is set, the line that matches match will be deleted. If set to false (the default), match is ignored when `ensure => absent` and the value of `line` is used instead. Default: false.
-* `multiple`: Determines if `match` and/or `after` can change multiple lines. If set to false, an exception will be raised if more than one line matches. Valid options: 'true', 'false'. Default: Undefined.
-* `name`: Sets the name to use as the identity of the resource. This is necessary if you want the resource namevar to differ from the supplied `title` of the resource. Valid options: String. Default: Undefined.
-* `path`: **Required.** Defines the file in which Puppet will ensure the line specified by `line`. Must be an absolute path to the file.
-* `replace`: Defines whether the resource will overwrite an existing line that matches the `match` parameter. If set to false and a line is found matching the `match` param, the line will not be placed in the file. Valid options: true, false, yes, no. Default: true
-
-### Functions
-
-#### `abs`
-
-Returns the absolute value of a number; for example, '-34.56' becomes '34.56'. Takes a single integer and float value as an argument. *Type*: rvalue.
-
-#### `any2array`
-
-Converts any object to an array containing that object. Empty argument lists are converted to an empty array. Arrays are left untouched. Hashes are converted to arrays of alternating keys and values. *Type*: rvalue.
-
-#### `base64`
-
-Converts a string to and from base64 encoding. Requires an `action` ('encode', 'decode') and either a plain or base64-encoded `string`, and an optional `method` ('default', 'strict', 'urlsafe')
-
-For backward compatibility, `method` will be set as `default` if not specified.
-
-*Examples:*
-~~~
-base64('encode', 'hello')
-base64('encode', 'hello', 'default')
-# return: "aGVsbG8=\n"
-
-base64('encode', 'hello', 'strict')
-# return: "aGVsbG8="
-
-base64('decode', 'aGVsbG8=')
-base64('decode', 'aGVsbG8=\n')
-base64('decode', 'aGVsbG8=', 'default')
-base64('decode', 'aGVsbG8=\n', 'default')
-base64('decode', 'aGVsbG8=', 'strict')
-# return: "hello"
-
-base64('encode', 'https://puppetlabs.com', 'urlsafe')
-# return: "aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ=="
-
-base64('decode', 'aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ==', 'urlsafe')
-# return: "https://puppetlabs.com"
-~~~
-
-*Type*: rvalue.
-
-#### `basename`
-
-Returns the `basename` of a path (optionally stripping an extension). For example:
-  * ('/path/to/a/file.ext') returns 'file.ext'
-  * ('relative/path/file.ext') returns 'file.ext'
-  * ('/path/to/a/file.ext', '.ext') returns 'file'
-
-*Type*: rvalue.
-
-#### `bool2num`
-
-Converts a boolean to a number. Converts values:
-  * 'false', 'f', '0', 'n', and 'no' to 0.
-  * 'true', 't', '1', 'y', and 'yes' to 1.
-  Requires a single boolean or string as an input. *Type*: rvalue.
-
-#### `bool2str`
-
-Converts a boolean to a string using optionally supplied arguments. The optional second and third arguments represent what true and false are converted to respectively. If only one argument is given, it is converted from a boolean to a string containing 'true' or 'false'.
-
-*Examples:*
-~~~
-bool2str(true)                    => 'true'
-bool2str(true, 'yes', 'no')       => 'yes'
-bool2str(false, 't', 'f')         => 'f'
-~~~
-
-Requires a single boolean as input. *Type*: rvalue.
-
-#### `capitalize`
-
-Capitalizes the first character of a string or array of strings and lowercases the remaining characters of each string. Requires either a single string or an array as an input. *Type*: rvalue.
-
-#### `ceiling`
-
-Returns the smallest integer greater than or equal to the argument. Takes a single numeric value as an argument. *Type*: rvalue.
-
-#### `chomp`
-
-Removes the record separator from the end of a string or an array of strings; for example, 'hello\n' becomes 'hello'. Requires a single string or array as an input. *Type*: rvalue.
-
-#### `chop`
-
-Returns a new string with the last character removed. If the string ends with '\r\n', both characters are removed. Applying `chop` to an empty string returns an empty string. If you want to merely remove record separators, then you should use the `chomp` function. Requires a string or an array of strings as input. *Type*: rvalue.
-
-#### `clamp`
-
-Keeps value within the range [Min, X, Max] by sort based on integer value (order of params doesn't matter). Takes strings, arrays or numerics. Strings are converted and compared numerically. Arrays of values are flattened into a list for further handling. For example:
-  * `clamp('24', [575, 187])` returns 187.
-  * `clamp(16, 88, 661)` returns 88.
-  * `clamp([4, 3, '99'])` returns 4.
-  *Type*: rvalue.
-
-#### `concat`
-
-Appends the contents of multiple arrays onto the first array given. For example:
-  * `concat(['1','2','3'],'4')` returns ['1','2','3','4'].
-  * `concat(['1','2','3'],'4',['5','6','7'])` returns ['1','2','3','4','5','6','7'].
-  *Type*: rvalue.
-
-#### `convert_base`
-
-Converts a given integer or base 10 string representing an integer to a specified base, as a string. For example:
-  * `convert_base(5, 2)` results in: '101'
-  * `convert_base('254', '16')` results in: 'fe'
-
-#### `count`
-
-If called with only an array, it counts the number of elements that are **not** nil/undef. If called with a second argument, counts the number of elements in an array that matches the second argument. *Type*: rvalue.
-
-#### `defined_with_params`
-
-Takes a resource reference and an optional hash of attributes. Returns 'true' if a resource with the specified attributes has already been added to the catalog. Returns 'false' otherwise.
-
-  ~~~
-  user { 'dan':
-    ensure => present,
-  }
-
-  if ! defined_with_params(User[dan], {'ensure' => 'present' }) {
-    user { 'dan': ensure => present, }
-  }
-  ~~~
-
-*Type*: rvalue.
-
-#### `delete`
-
-Deletes all instances of a given element from an array, substring from a string, or key from a hash. For example, `delete(['a','b','c','b'], 'b')` returns ['a','c']; `delete('abracadabra', 'bra')` returns 'acada'. `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}. *Type*: rvalue.
-
-#### `delete_at`
-
-Deletes a determined indexed value from an array. For example, `delete_at(['a','b','c'], 1)` returns ['a','c']. *Type*: rvalue.
-
-#### `delete_values`
-
-Deletes all instances of a given value from a hash. For example, `delete_values({'a'=>'A','b'=>'B','c'=>'C','B'=>'D'}, 'B')` returns {'a'=>'A','c'=>'C','B'=>'D'} *Type*: rvalue.
-
-#### `delete_undef_values`
-
-Deletes all instances of the undef value from an array or hash. For example, `$hash = delete_undef_values({a=>'A', b=>'', c=>undef, d => false})` returns {a => 'A', b => '', d => false}. *Type*: rvalue.
-
-#### `difference`
-
-Returns the difference between two arrays. The returned array is a copy of the original array, removing any items that also appear in the second array. For example, `difference(["a","b","c"],["b","c","d"])` returns ["a"]. *Type*: rvalue.
-
-#### `dig`
-
-*Type*: rvalue.
-
-Retrieves a value within multiple layers of hashes and arrays via an array of keys containing a path. The function goes through the structure by each path component and tries to return the value at the end of the path.
-
-In addition to the required path argument, the function accepts the default argument. It is returned if the path is not correct, if no value was found, or if any other error has occurred.
-
-~~~ruby
-$data = {
-  'a' => {
-    'b' => [
-      'b1',
-      'b2',
-      'b3',
-    ]
-  }
-}
-
-$value = dig($data, ['a', 'b', 2])
-# $value = 'b3'
-
-# with all possible options
-$value = dig($data, ['a', 'b', 2], 'not_found')
-# $value = 'b3'
-
-# using the default value
-$value = dig($data, ['a', 'b', 'c', 'd'], 'not_found')
-# $value = 'not_found'
-~~~
-
-1. **$data** The data structure we are working with.
-2. **['a', 'b', 2]** The path array.
-3. **'not_found'** The default value. It will be returned if nothing is found.
-   (optional, defaults to *undef*)
-
-#### `dirname`
-
-Returns the `dirname` of a path. For example, `dirname('/path/to/a/file.ext')` returns '/path/to/a'. *Type*: rvalue.
-
-#### `dos2unix`
-
-Returns the Unix version of the given string. Very useful when using a File resource with a cross-platform template. *Type*: rvalue.
-
-~~~
-file{$config_file:
-  ensure  => file,
-  content => dos2unix(template('my_module/settings.conf.erb')),
-}
-~~~
-
-See also [unix2dos](#unix2dos).
-
-#### `downcase`
-
-Converts the case of a string or of all strings in an array to lowercase. *Type*: rvalue.
-
-#### `empty`
-
-Returns true if the argument is an array or hash that contains no elements, or an empty string. Returns false when the argument is a numerical value. *Type*: rvalue.
-
-#### `enclose_ipv6`
-
-Takes an array of ip addresses and encloses the ipv6 addresses with square brackets. *Type*: rvalue.
-
-#### `ensure_packages`
-
-Takes a list of packages array/hash and only installs them if they don't already exist. It optionally takes a hash as a second parameter to be passed as the third argument to the `ensure_resource()` or `ensure_resources()` function. *Type*: statement.
-
-For Array:
-
-    ensure_packages(['ksh','openssl'], {'ensure' => 'present'})
-
-For Hash:
-
-    ensure_packages({'ksh' => { enure => '20120801-1' } ,  'mypackage' => { source => '/tmp/myrpm-1.0.0.x86_64.rpm', provider => "rpm" }}, {'ensure' => 'present'})
-
-#### `ensure_resource`
-
-Takes a resource type, title, and a hash of attributes that describe the resource(s).
-
-~~~
-user { 'dan':
-  ensure => present,
-}
-~~~
-
-This example only creates the resource if it does not already exist:
-
-  `ensure_resource('user', 'dan', {'ensure' => 'present' })`
-
-If the resource already exists, but does not match the specified parameters, this function attempts to recreate the resource, leading to a duplicate resource definition error.
-
-An array of resources can also be passed in, and each will be created with the type and parameters specified if it doesn't already exist.
-
-  `ensure_resource('user', ['dan','alex'], {'ensure' => 'present'})`
-
-*Type*: statement.
-
-#### `ensure_resources`
-
-Takes a resource type, title (only hash), and a hash of attributes that describe the resource(s).
-
-~~~
-user { 'dan':
-  gid => 'mygroup',
-  ensure => present,
-}
-
-ensure_resources($user)
-~~~
-
-An hash of resources should be passed in and each will be created with the type and parameters specified if it doesn't already exist:
-
-    ensure_resources('user', {'dan' => { gid => 'mygroup', uid => '600' } ,  'alex' => { gid => 'mygroup' }}, {'ensure' => 'present'})
-
-From Hiera Backend:
-
-~~~
-userlist:
-dan:
-  gid: 'mygroup'
-uid: '600'
-alex:
-gid: 'mygroup'
-
-ensure_resources('user', hiera_hash('userlist'), {'ensure' => 'present'})
-~~~
-
-### `flatten`
-
-Flattens deeply nested arrays and returns a single flat array as a result. For example, `flatten(['a', ['b', ['c']]])` returns ['a','b','c']. *Type*: rvalue.
-
-#### `floor`
-
-Takes a single numeric value as an argument, and returns the largest integer less than or equal to the argument. *Type*: rvalue.
-
-#### `fqdn_rand_string`
-
-Generates a random alphanumeric string using an optionally-specified character set (default is alphanumeric), combining the `$fqdn` fact and an optional seed for repeatable randomness.
-
-*Usage:*
-~~~
-fqdn_rand_string(LENGTH, [CHARSET], [SEED])
-~~~
-*Examples:*
-~~~
-fqdn_rand_string(10)
-fqdn_rand_string(10, 'ABCDEF!@#$%^')
-fqdn_rand_string(10, '', 'custom seed')
-~~~
-
-*Type*: rvalue.
-
-#### `fqdn_rotate`
-
-Rotates an array or string a random number of times, combining the `$fqdn` fact and an optional seed for repeatable randomness.
-
-*Usage:*
-
-~~~
-fqdn_rotate(VALUE, [SEED])
-~~~
-
-*Examples:*
-
-~~~
-fqdn_rotate(['a', 'b', 'c', 'd'])
-fqdn_rotate('abcd')
-fqdn_rotate([1, 2, 3], 'custom seed')
-~~~
-
-*Type*: rvalue.
-
-#### `get_module_path`
-
-Returns the absolute path of the specified module for the current environment.
-
-  `$module_path = get_module_path('stdlib')`
-
-*Type*: rvalue.
-
-#### `getparam`
-
-Takes a resource reference and the name of the parameter, and returns the value of the resource's parameter.
-
-For example, the following returns 'param_value':
-
-  ~~~
-  define example_resource($param) {
-  }
-
-  example_resource { "example_resource_instance":
-    param => "param_value"
-  }
-
-  getparam(Example_resource["example_resource_instance"], "param")
-  ~~~
-
-*Type*: rvalue.
-
-#### `getvar`
-
-Looks up a variable in a remote namespace.
-
-For example:
-
-  ~~~
-  $foo = getvar('site::data::foo')
-  # Equivalent to $foo = $site::data::foo
-  ~~~
-
-This is useful if the namespace itself is stored in a string:
-
-  ~~~
-  $datalocation = 'site::data'
-  $bar = getvar("${datalocation}::bar")
-  # Equivalent to $bar = $site::data::bar
-  ~~~
-
-*Type*: rvalue.
-
-#### `grep`
-
-Searches through an array and returns any elements that match the provided regular expression. For example, `grep(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['aaa','aaaddd']. *Type*: rvalue.
-
-#### `has_interface_with`
-
-Returns a boolean based on kind and value:
-  * macaddress
-  * netmask
-  * ipaddress
-  * network
-
-*Examples:*
-
-  ~~~
-  has_interface_with("macaddress", "x:x:x:x:x:x")
-  has_interface_with("ipaddress", "127.0.0.1")    => true
-  ~~~
-
-If no kind is given, then the presence of the interface is checked:
-
-  ~~~
-  has_interface_with("lo")                        => true
-  ~~~
-
-*Type*: rvalue.
-
-#### `has_ip_address`
-
-Returns 'true' if the client has the requested IP address on some interface. This function iterates through the `interfaces` fact and checks the `ipaddress_IFACE` facts, performing a simple string comparison. *Type*: rvalue.
-
-#### `has_ip_network`
-
-Returns 'true' if the client has an IP address within the requested network. This function iterates through the `interfaces` fact and checks the `network_IFACE` facts, performing a simple string comparision. *Type*: rvalue.
-
-#### `has_key`
-
-Determines if a hash has a certain key value.
-
-*Example*:
-
-  ~~~
-  $my_hash = {'key_one' => 'value_one'}
-  if has_key($my_hash, 'key_two') {
-    notice('we will not reach here')
-  }
-  if has_key($my_hash, 'key_one') {
-    notice('this will be printed')
-  }
-  ~~~
-
-*Type*: rvalue.
-
-#### `hash`
-
-Converts an array into a hash. For example, `hash(['a',1,'b',2,'c',3])` returns {'a'=>1,'b'=>2,'c'=>3}. *Type*: rvalue.
-
-#### `intersection`
-
-Returns an array an intersection of two. For example, `intersection(["a","b","c"],["b","c","d"])` returns ["b","c"]. *Type*: rvalue.
-
-#### `is_a`
-
-Boolean check to determine whether a variable is of a given data type. This is equivalent to the `=~` type checks. This function is available only in Puppet 4 or in Puppet 3 with the "future" parser.
-
-  ~~~
-  foo = 3
-  $bar = [1,2,3]
-  $baz = 'A string!'
-
-  if $foo.is_a(Integer) {
-    notify  { 'foo!': }
-  }
-  if $bar.is_a(Array) {
-    notify { 'bar!': }
-  }
-  if $baz.is_a(String) {
-    notify { 'baz!': }
-  }
-  ~~~
-
-See the [the Puppet type system](https://docs.puppetlabs.com/references/latest/type.html#about-resource-types) for more information about types.
-See the [`assert_type()`](https://docs.puppetlabs.com/references/latest/function.html#asserttype) function for flexible ways to assert the type of a value.
-
-#### `is_absolute_path`
-
-Returns 'true' if the given path is absolute. *Type*: rvalue.
-
-#### `is_array`
-
-Returns 'true' if the variable passed to this function is an array. *Type*: rvalue.
-
-#### `is_bool`
-
-Returns 'true' if the variable passed to this function is a boolean. *Type*: rvalue.
-
-#### `is_domain_name`
-
-Returns 'true' if the string passed to this function is a syntactically correct domain name. *Type*: rvalue.
-
-#### `is_float`
-
-Returns 'true' if the variable passed to this function is a float. *Type*: rvalue.
-
-#### `is_function_available`
-
-Accepts a string as an argument and determines whether the Puppet runtime has access to a function by that name. It returns 'true' if the function exists, 'false' if not. *Type*: rvalue.
-
-#### `is_hash`
-
-Returns 'true' if the variable passed to this function is a hash. *Type*: rvalue.
-
-#### `is_integer`
-
-Returns 'true' if the variable returned to this string is an integer. *Type*: rvalue.
-
-#### `is_ip_address`
-
-Returns 'true' if the string passed to this function is a valid IP address. *Type*: rvalue.
-
-#### `is_ipv6_address`
-
-Returns 'true' if the string passed to this function is a valid IPv6 address. *Type*: rvalue.
-
-#### `is_ipv4_address`
-
-Returns 'true' if the string passed to this function is a valid IPv4 address. *Type*: rvalue.
-
-#### `is_mac_address`
-
-Returns 'true' if the string passed to this function is a valid MAC address. *Type*: rvalue.
-
-#### `is_numeric`
-
-Returns 'true' if the variable passed to this function is a number. *Type*: rvalue.
-
-#### `is_string`
-
-Returns 'true' if the variable passed to this function is a string. *Type*: rvalue.
-
-#### `join`
-
-Joins an array into a string using a separator. For example, `join(['a','b','c'], ",")` results in: "a,b,c". *Type*: rvalue.
-
-#### `join_keys_to_values`
-
-Joins each key of a hash to that key's corresponding value with a separator. Keys and values are cast to strings. The return value is an array in which each element is one joined key/value pair. For example, `join_keys_to_values({'a'=>1,'b'=>2}, " is ")` results in ["a is 1","b is 2"]. *Type*: rvalue.
-
-#### `keys`
-
-Returns the keys of a hash as an array. *Type*: rvalue.
-
-#### `loadyaml`
-
-Loads a YAML file containing an array, string, or hash, and returns the data in the corresponding native data type. For example:
-
-  ~~~
-  $myhash = loadyaml('/etc/puppet/data/myhash.yaml')
-  ~~~
-
-*Type*: rvalue.
-
-#### `load_module_metadata`
-
-Loads the metadata.json of a target module. Can be used to determine module version and authorship for dynamic support of modules.
-
-  ~~~
-  $metadata = load_module_metadata('archive')
-  notify { $metadata['author']: }
-  ~~~
-
-If you do not want to fail the catalog compilation when a module's metadata file is absent:
-
-  ~~~
-  $metadata = load_module_metadata('mysql', true)
-  if empty($metadata) {
-    notify { "This module does not have a metadata.json file.": }
-  }
-  ~~~
-
-*Type*: rvalue.
-
-#### `lstrip`
-
-Strips spaces to the left of a string. *Type*: rvalue.
-
-#### `max`
-
-Returns the highest value of all arguments. Requires at least one argument. *Type*: rvalue.
-
-#### `member`
-
-This function determines if a variable is a member of an array. The variable can be either a string, array, or fixnum. For example, `member(['a','b'], 'b')` and `member(['a','b','c'], ['b','c'])` return 'true', while `member(['a','b'], 'c')` and `member(['a','b','c'], ['c','d'])` return 'false'. *Note*: This function does not support nested arrays. If the first argument contains nested arrays, it will not recurse through them.
-
-*Type*: rvalue.
-
-#### `merge`
-
-Merges two or more hashes together and returns the resulting hash.
-
-*Example*:
-
-  ~~~
-  $hash1 = {'one' => 1, 'two' => 2}
-  $hash2 = {'two' => 'dos', 'three' => 'tres'}
-  $merged_hash = merge($hash1, $hash2)
-  # The resulting hash is equivalent to:
-  # $merged_hash =  {'one' => 1, 'two' => 'dos', 'three' => 'tres'}
-  ~~~
-
-When there is a duplicate key, the key in the rightmost hash "wins." *Type*: rvalue.
-
-#### `min`
-
-Returns the lowest value of all arguments. Requires at least one argument. *Type*: rvalue.
-
-#### `num2bool`
-
-Converts a number or a string representation of a number into a true boolean. Zero or anything non-numeric becomes 'false'. Numbers greater than 0 become 'true'. *Type*: rvalue.
-
-#### `parsejson`
-
-Converts a string of JSON into the correct Puppet structure. *Type*: rvalue. The optional second argument is returned if the data was not correct.
-
-#### `parseyaml`
-
-Converts a string of YAML into the correct Puppet structure. *Type*: rvalue. The optional second argument is returned if the data was not correct.
-
-#### `pick`
-
-From a list of values, returns the first value that is not undefined or an empty string. Takes any number of arguments, and raises an error if all values are undefined or empty.
-
-  ~~~
-  $real_jenkins_version = pick($::jenkins_version, '1.449')
-  ~~~
-
-*Type*: rvalue.
-
-#### `pick_default`
-
-Returns the first value in a list of values. Contrary to the `pick()` function, the `pick_default()` does not fail if all arguments are empty. This allows it to use an empty value as default. *Type*: rvalue.
-
-#### `prefix`
-
-Applies a prefix to all elements in an array, or to the keys in a hash.
-For example:
-* `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc']
-* `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}.
-
-*Type*: rvalue.
-
-#### `assert_private`
-
-Sets the current class or definition as private. Calling the class or definition from outside the current module will fail.
-
-For example, `assert_private()` called in class `foo::bar` outputs the following message if class is called from outside module `foo`:
-
-  ~~~
-  Class foo::bar is private
-  ~~~
-
-  To specify the error message you want to use:
-
-  ~~~
-  assert_private("You're not supposed to do that!")
-  ~~~
-
-*Type*: statement.
-
-#### `pw_hash`
-
-Hashes a password using the crypt function. Provides a hash usable on most POSIX systems.
-
-The first argument to this function is the password to hash. If it is undef or an empty string, this function returns undef.
-
-The second argument to this function is which type of hash to use. It will be converted into the appropriate crypt(3) hash specifier. Valid hash types are:
-
-|Hash type            |Specifier|
-|---------------------|---------|
-|MD5                  |1        |
-|SHA-256              |5        |
-|SHA-512 (recommended)|6        |
-
-The third argument to this function is the salt to use.
-
-*Type*: rvalue.
-
-**Note:** this uses the Puppet master's implementation of crypt(3). If your environment contains several different operating systems, ensure that they are compatible before using this function.
-
-#### `range`
-
-Extrapolates a range as an array when given in the form of '(start, stop)'. For example, `range("0", "9")` returns [0,1,2,3,4,5,6,7,8,9]. Zero-padded strings are converted to integers automatically, so `range("00", "09")` returns [0,1,2,3,4,5,6,7,8,9].
-
-Non-integer strings are accepted; `range("a", "c")` returns ["a","b","c"], and `range("host01", "host10")` returns ["host01", "host02", ..., "host09", "host10"].
-
-Passing a third argument will cause the generated range to step by that interval, e.g. `range("0", "9", "2")` returns ["0","2","4","6","8"].
-
-*Type*: rvalue.
-
-#### `reject`
-
-Searches through an array and rejects all elements that match the provided regular expression. For example, `reject(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['bbb','ccc']. *Type*: rvalue.
-
-#### `reverse`
-
-Reverses the order of a string or array. *Type*: rvalue.
-
-#### `rstrip`
-
-Strips spaces to the right of the string. *Type*: rvalue.
-
-#### `seeded_rand`
-
-Takes an integer max value and a string seed value and returns a repeatable random integer smaller than max. Like `fqdn_rand`, but does not add node specific data to the seed.  *Type*: rvalue.
-
-#### `shuffle`
-
-Randomizes the order of a string or array elements. *Type*: rvalue.
-
-#### `size`
-
-Returns the number of elements in a string, an array or a hash. *Type*: rvalue.
-
-#### `sort`
-
-Sorts strings and arrays lexically. *Type*: rvalue.
-
-#### `squeeze`
-
-Returns a new string where runs of the same character that occur in this set are replaced by a single character. *Type*: rvalue.
-
-#### `str2bool`
-
-Converts certain strings to a boolean. This attempts to convert strings that contain the values '1', 't', 'y', or 'yes' to true. Strings that contain values '0', 'f', 'n', or 'no', or that are an empty string or undefined are converted to false. Any other value causes an error. *Type*: rvalue.
-
-#### `str2saltedsha512`
-
-Converts a string to a salted-SHA512 password hash, used for OS X versions >= 10.7. Given any string, this function returns a hex version of a salted-SHA512 password hash, which can be inserted into your Puppet
-manifests as a valid password attribute. *Type*: rvalue.
-
-#### `strftime`
-
-Returns formatted time. For example, `strftime("%s")` returns the time since Unix epoch, and `strftime("%Y-%m-%d")` returns the date. *Type*: rvalue.
-
-  *Format:*
-
-    * `%a`: The abbreviated weekday name ('Sun')
-    * `%A`: The full weekday name ('Sunday')
-    * `%b`: The abbreviated month name ('Jan')
-    * `%B`: The full month name ('January')
-    * `%c`: The preferred local date and time representation
-    * `%C`: Century (20 in 2009)
-    * `%d`: Day of the month (01..31)
-    * `%D`: Date (%m/%d/%y)
-    * `%e`: Day of the month, blank-padded ( 1..31)
-    * `%F`: Equivalent to %Y-%m-%d (the ISO 8601 date format)
-    * `%h`: Equivalent to %b
-    * `%H`: Hour of the day, 24-hour clock (00..23)
-    * `%I`: Hour of the day, 12-hour clock (01..12)
-    * `%j`: Day of the year (001..366)
-    * `%k`: Hour, 24-hour clock, blank-padded ( 0..23)
-    * `%l`: Hour, 12-hour clock, blank-padded ( 0..12)
-    * `%L`: Millisecond of the second (000..999)
-    * `%m`: Month of the year (01..12)
-    * `%M`: Minute of the hour (00..59)
-    * `%n`: Newline (\n)
-    * `%N`: Fractional seconds digits, default is 9 digits (nanosecond)
-      * `%3N`: Millisecond (3 digits)
-      * `%6N`: Microsecond (6 digits)
-      * `%9N`: Nanosecond (9 digits)
-    * `%p`: Meridian indicator ('AM' or 'PM')
-    * `%P`: Meridian indicator ('am' or 'pm')
-    * `%r`: Time, 12-hour (same as %I:%M:%S %p)
-    * `%R`: Time, 24-hour (%H:%M)
-    * `%s`: Number of seconds since the Unix epoch, 1970-01-01 00:00:00 UTC.
-    * `%S`: Second of the minute (00..60)
-    * `%t`: Tab character (	)
-    * `%T`: Time, 24-hour (%H:%M:%S)
-    * `%u`: Day of the week as a decimal, Monday being 1. (1..7)
-    * `%U`: Week number of the current year, starting with the first Sunday as the first day of the first week (00..53)
-    * `%v`: VMS date (%e-%b-%Y)
-    * `%V`: Week number of year according to ISO 8601 (01..53)
-    * `%W`: Week number of the current year, starting with the first Monday as the first day of the first week (00..53)
-    * `%w`: Day of the week (Sunday is 0, 0..6)
-    * `%x`: Preferred representation for the date alone, no time
-    * `%X`: Preferred representation for the time alone, no date
-    * `%y`: Year without a century (00..99)
-    * `%Y`: Year with century
-    * `%z`: Time zone as hour offset from UTC (e.g. +0900)
-    * `%Z`: Time zone name
-    * `%%`: Literal '%' character
-
-#### `strip`
-
-Removes leading and trailing whitespace from a string or from every string inside an array. For example, `strip("    aaa   ")` results in "aaa". *Type*: rvalue.
-
-#### `suffix`
-
-Applies a suffix to all elements in an array, or to the keys in a hash.
-For example:
-* `suffix(['a','b','c'], 'p')` returns ['ap','bp','cp']
-* `suffix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'ap'=>'b','bp'=>'c','cp'=>'d'}.
-
-*Type*: rvalue.
-
-#### `swapcase`
-
-Swaps the existing case of a string. For example, `swapcase("aBcD")` results in "AbCd". *Type*: rvalue.
-
-#### `time`
-
-Returns the current Unix epoch time as an integer. For example, `time()` returns something like '1311972653'. *Type*: rvalue.
-
-#### `to_bytes`
-
-Converts the argument into bytes, for example "4 kB" becomes "4096". Takes a single string value as an argument. *Type*: rvalue.
-
-#### `try_get_value`
-
-*Type*: rvalue.
-
-DEPRECATED: replaced by `dig()`.
-
-Retrieves a value within multiple layers of hashes and arrays via a string containing a path. The path is a string of hash keys or array indexes starting with zero, separated by the path separator character (default "/"). The function goes through the structure by each path component and tries to return the value at the end of the path.
-
-In addition to the required path argument, the function accepts the default argument. It is returned if the path is not correct, if no value was found, or if any other error has occurred. The last argument can set the path separator character.
-
-~~~ruby
-$data = {
-  'a' => {
-    'b' => [
-      'b1',
-      'b2',
-      'b3',
-    ]
-  }
-}
-
-$value = try_get_value($data, 'a/b/2')
-# $value = 'b3'
-
-# with all possible options
-$value = try_get_value($data, 'a/b/2', 'not_found', '/')
-# $value = 'b3'
-
-# using the default value
-$value = try_get_value($data, 'a/b/c/d', 'not_found')
-# $value = 'not_found'
-
-# using custom separator
-$value = try_get_value($data, 'a|b', [], '|')
-# $value = ['b1','b2','b3']
-~~~
-
-1. **$data** The data structure we are working with.
-2. **'a/b/2'** The path string.
-3. **'not_found'** The default value. It will be returned if nothing is found.
-   (optional, defaults to *undef*)
-4. **'/'** The path separator character.
-   (optional, defaults to *'/'*)
-
-#### `type3x`
-
-Returns a string description of the type when passed a value. Type can be a string, array, hash, float, integer, or boolean. This function will be removed when Puppet 3 support is dropped and the new type system can be used. *Type*: rvalue.
-
-#### `type_of`
-
-Returns the literal type when passed a value. Requires the new parser. Useful for comparison of types with `<=` such as in `if type_of($some_value) <= Array[String] { ... }` (which is equivalent to `if $some_value =~ Array[String] { ... }`) *Type*: rvalue.
-
-#### `union`
-
-Returns a union of two or more arrays, without duplicates. For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"]. *Type*: rvalue.
-
-#### `unique`
-
-Removes duplicates from strings and arrays. For example, `unique("aabbcc")` returns 'abc', and `unique(["a","a","b","b","c","c"])` returns ["a","b","c"]. *Type*: rvalue.
-
-#### `unix2dos`
-
-Returns the DOS version of the given string. Very useful when using a File resource with a cross-platform template. *Type*: rvalue.
-
-~~~
-file{$config_file:
-  ensure  => file,
-  content => unix2dos(template('my_module/settings.conf.erb')),
-}
-~~~
-
-See also [dos2unix](#dos2unix).
-
-#### `upcase`
-
-Converts an object, array or hash of objects that respond to upcase to uppercase. For example, `upcase('abcd')` returns 'ABCD'. *Type*: rvalue.
-
-#### `uriescape`
-
-URLEncodes a string or array of strings. Requires either a single string or an array as an input. *Type*: rvalue.
-
-#### `validate_absolute_path`
-
-Validates that a given string represents an absolute path in the filesystem. Works for Windows and Unix style paths.
-
-The following values pass:
-
-~~~
-$my_path = 'C:/Program Files (x86)/Puppet Labs/Puppet'
-validate_absolute_path($my_path)
-$my_path2 = '/var/lib/puppet'
-validate_absolute_path($my_path2)
-$my_path3 = ['C:/Program Files (x86)/Puppet Labs/Puppet','C:/Program Files/Puppet Labs/Puppet']
-validate_absolute_path($my_path3)
-$my_path4 = ['/var/lib/puppet','/usr/share/puppet']
-validate_absolute_path($my_path4)
-~~~
-
-The following values fail, causing compilation to abort:
-
-~~~
-validate_absolute_path(true)
-validate_absolute_path('../var/lib/puppet')
-validate_absolute_path('var/lib/puppet')
-validate_absolute_path([ 'var/lib/puppet', '/var/foo' ])
-validate_absolute_path([ '/var/lib/puppet', 'var/foo' ])
-$undefined = undef
-validate_absolute_path($undefined)
-~~~
-
-*Type*: statement.
-
-#### `validate_array`
-
-Validates that all passed values are array data structures. Aborts catalog compilation if any value fails this check.
-
-The following values pass:
-
-~~~
-$my_array = [ 'one', 'two' ]
-validate_array($my_array)
-~~~
-
-The following values fail, causing compilation to abort:
-
-~~~
-validate_array(true)
-validate_array('some_string')
-$undefined = undef
-validate_array($undefined)
-~~~
-
-*Type*: statement.
-
-#### `validate_augeas`
-
-Performs validation of a string using an Augeas lens. The first argument of this function should be the string to test, and the second argument should be the name of the Augeas lens to use. If Augeas fails to parse the string with the lens, the compilation aborts with a parse error.
-
-A third optional argument lists paths which should **not** be found in the file. The `$file` variable points to the location of the temporary file being tested in the Augeas tree.
-
-For example, to make sure your $passwdcontent never contains user `foo`:
-
-~~~
-validate_augeas($passwdcontent, 'Passwd.lns', ['$file/foo'])
-~~~
-
-To ensure that no users use the '/bin/barsh' shell:
-
-~~~
-validate_augeas($passwdcontent, 'Passwd.lns', ['$file/*[shell="/bin/barsh"]']
-~~~
-
-You can pass a fourth argument as the error message raised and shown to the user:
-
-~~~
-validate_augeas($sudoerscontent, 'Sudoers.lns', [], 'Failed to validate sudoers content with Augeas')
-~~~
-
-*Type*: statement.
-
-#### `validate_bool`
-
-Validates that all passed values are either true or false. Aborts catalog compilation if any value fails this check.
-
-The following values will pass:
-
-~~~
-$iamtrue = true
-validate_bool(true)
-validate_bool(true, true, false, $iamtrue)
-~~~
-
-The following values will fail, causing compilation to abort:
-
-~~~
-$some_array = [ true ]
-validate_bool("false")
-validate_bool("true")
-validate_bool($some_array)
-~~~
-
-*Type*: statement.
-
-#### `validate_cmd`
-
-Performs validation of a string with an external command. The first argument of this function should be a string to test, and the second argument should be a path to a test command taking a % as a placeholder for the file path (will default to the end of the command if no % placeholder given). If the command is launched against a tempfile containing the passed string, or returns a non-null value, compilation will abort with a parse error.
-
-If a third argument is specified, this will be the error message raised and seen by the user.
-
-~~~
-# Defaults to end of path
-validate_cmd($sudoerscontent, '/usr/sbin/visudo -c -f', 'Visudo failed to validate sudoers content')
-~~~
-~~~
-# % as file location
-validate_cmd($haproxycontent, '/usr/sbin/haproxy -f % -c', 'Haproxy failed to validate config content')
-~~~
-
-*Type*: statement.
-
-#### `validate_hash`
-
-Validates that all passed values are hash data structures. Aborts catalog compilation if any value fails this check.
-
-  The following values will pass:
-
-  ~~~
-  $my_hash = { 'one' => 'two' }
-  validate_hash($my_hash)
-  ~~~
-
-  The following values will fail, causing compilation to abort:
-
-  ~~~
-  validate_hash(true)
-  validate_hash('some_string')
-  $undefined = undef
-  validate_hash($undefined)
-  ~~~
-
-*Type*: statement.
-
-#### `validate_integer`
-
-Validates that the first argument is an integer (or an array of integers). Aborts catalog compilation if any of the checks fail.
-
-  The second argument is optional and passes a maximum. (All elements of) the first argument has to be less or equal to this max.
-
-  The third argument is optional and passes a minimum. (All elements of) the first argument has to be greater or equal to this min.
-  If, and only if, a minimum is given, the second argument may be an empty string or undef, which will be handled to just check
-  if (all elements of) the first argument are greater or equal to the given minimum.
-
-  It will fail if the first argument is not an integer or array of integers, and if arg 2 and arg 3 are not convertable to an integer.
-
-  The following values will pass:
-
-  ~~~
-  validate_integer(1)
-  validate_integer(1, 2)
-  validate_integer(1, 1)
-  validate_integer(1, 2, 0)
-  validate_integer(2, 2, 2)
-  validate_integer(2, '', 0)
-  validate_integer(2, undef, 0)
-  $foo = undef
-  validate_integer(2, $foo, 0)
-  validate_integer([1,2,3,4,5], 6)
-  validate_integer([1,2,3,4,5], 6, 0)
-  ~~~
-
-  * Plus all of the above, but any combination of values passed as strings ('1' or "1").
-  * Plus all of the above, but with (correct) combinations of negative integer values.
-
-  The following values will fail, causing compilation to abort:
-
-  ~~~
-  validate_integer(true)
-  validate_integer(false)
-  validate_integer(7.0)
-  validate_integer({ 1 => 2 })
-  $foo = undef
-  validate_integer($foo)
-  validate_integer($foobaridontexist)
-
-  validate_integer(1, 0)
-  validate_integer(1, true)
-  validate_integer(1, '')
-  validate_integer(1, undef)
-  validate_integer(1, , 0)
-  validate_integer(1, 2, 3)
-  validate_integer(1, 3, 2)
-  validate_integer(1, 3, true)
-  ~~~
-
-  * Plus all of the above, but any combination of values passed as strings ('false' or "false").
-  * Plus all of the above, but with incorrect combinations of negative integer values.
-  * Plus all of the above, but with non-integer items in arrays or maximum / minimum argument.
-
-  *Type*: statement.
-
-#### `validate_ip_address`
-
-Validates that the argument is an IP address, regardless of it is an IPv4 or an IPv6
-address. It also validates IP address with netmask. The argument must be given as a string.
-
-The following values will pass:
-
-  ~~~
-  validate_ip_address('0.0.0.0')
-  validate_ip_address('8.8.8.8')
-  validate_ip_address('127.0.0.1')
-  validate_ip_address('194.232.104.150')
-  validate_ip_address('3ffe:0505:0002::')
-  validate_ip_address('::1/64')
-  validate_ip_address('fe80::a00:27ff:fe94:44d6/64')
-  validate_ip_address('8.8.8.8/32')
-  ~~~
-
-The following values will fail, causing compilation to abort:
-
-  ~~~
-  validate_ip_address(1)
-  validate_ip_address(true)
-  validate_ip_address(0.0.0.256)
-  validate_ip_address('::1', {})
-  validate_ip_address('0.0.0.0.0')
-  validate_ip_address('3.3.3')
-  validate_ip_address('23.43.9.22/64')
-  validate_ip_address('260.2.32.43')
-  ~~~
-
-
-#### `validate_numeric`
-
-Validates that the first argument is a numeric value (or an array of numeric values). Aborts catalog compilation if any of the checks fail.
-
-  The second argument is optional and passes a maximum. (All elements of) the first argument has to be less or equal to this max.
-
-  The third argument is optional and passes a minimum. (All elements of) the first argument has to be greater or equal to this min.
-  If, and only if, a minimum is given, the second argument may be an empty string or undef, which will be handled to just check
-  if (all elements of) the first argument are greater or equal to the given minimum.
-
-  It will fail if the first argument is not a numeric (Integer or Float) or array of numerics, and if arg 2 and arg 3 are not convertable to a numeric.
-
-  For passing and failing usage, see `validate_integer()`. It is all the same for validate_numeric, yet now floating point values are allowed, too.
-
-*Type*: statement.
-
-#### `validate_re`
-
-Performs simple validation of a string against one or more regular expressions. The first argument of this function should be the string to
-test, and the second argument should be a stringified regular expression (without the // delimiters) or an array of regular expressions. If none of the regular expressions match the string passed in, compilation aborts with a parse error.
-
-  You can pass a third argument as the error message raised and shown to the user.
-
-  The following strings validate against the regular expressions:
-
-  ~~~
-  validate_re('one', '^one$')
-  validate_re('one', [ '^one', '^two' ])
-  ~~~
-
-  The following string fails to validate, causing compilation to abort:
-
-  ~~~
-  validate_re('one', [ '^two', '^three' ])
-  ~~~
-
-  To set the error message:
-
-  ~~~
-  validate_re($::puppetversion, '^2.7', 'The $puppetversion fact value does not match 2.7')
-  ~~~
-
-  Note: Compilation terminates if the first argument is not a string. Always use quotes to force stringification:
-
-  ~~~
-  validate_re("${::operatingsystemmajrelease}", '^[57]$')
-  ~~~
-
-*Type*: statement.
-
-#### `validate_slength`
-
-Validates that the first argument is a string (or an array of strings), and is less than or equal to the length of the second argument. It fails if the first argument is not a string or array of strings, or if the second argument is not convertable to a number.  Optionally, a minimum string length can be given as the third argument.
-
-  The following values pass:
-
-  ~~~
-  validate_slength("discombobulate",17)
-  validate_slength(["discombobulate","moo"],17)
-  validate_slength(["discombobulate","moo"],17,3)
-  ~~~
-
-  The following values fail:
-
-  ~~~
-  validate_slength("discombobulate",1)
-  validate_slength(["discombobulate","thermometer"],5)
-  validate_slength(["discombobulate","moo"],17,10)
-  ~~~
-
-*Type*: statement.
-
-#### `validate_string`
-
-Validates that all passed values are string data structures. Aborts catalog compilation if any value fails this check.
-
-The following values pass:
-
-  ~~~
-  $my_string = "one two"
-  validate_string($my_string, 'three')
-  ~~~
-
-  The following values fail, causing compilation to abort:
-
-  ~~~
-  validate_string(true)
-  validate_string([ 'some', 'array' ])
-  ~~~
-
-*Note:* validate_string(undef) will not fail in this version of the functions API (incl. current and future parser).
-
-Instead, use:
-
-  ~~~
-  if $var == undef {
-    fail('...')
-  }
-  ~~~
-
-*Type*: statement.
-
-#### `validate_x509_rsa_key_pair`
-
-Validates a PEM-formatted X.509 certificate and private key using OpenSSL.
-Verifies that the certficate's signature was created from the supplied key.
-
-Fails catalog compilation if any value fails this check.
-
-Takes two arguments, the first argument must be a X.509 certificate and the
-second must be an RSA private key:
-
-  ~~~
-  validate_x509_rsa_key_pair($cert, $key)
-  ~~~
-
-*Type*: statement.
-
-#### `values`
-
-Returns the values of a given hash. For example, given `$hash = {'a'=1, 'b'=2, 'c'=3} values($hash)` returns [1,2,3].
-
-*Type*: rvalue.
-
-#### `values_at`
-
-Finds values inside an array based on location. The first argument is the array you want to analyze, and the second argument can be a combination of:
-
-  * A single numeric index
-  * A range in the form of 'start-stop' (eg. 4-9)
-  * An array combining the above
-
-  For example, `values_at(['a','b','c'], 2)` returns ['c']; `values_at(['a','b','c'], ["0-1"])` returns ['a','b']; and `values_at(['a','b','c','d','e'], [0, "2-3"])` returns ['a','c','d'].
-
-*Type*: rvalue.
-
-#### `zip`
-
-Takes one element from first array given and merges corresponding elements from second array given. This generates a sequence of n-element arrays, where *n* is one more than the count of arguments. For example, `zip(['1','2','3'],['4','5','6'])` results in ["1", "4"], ["2", "5"], ["3", "6"]. *Type*: rvalue.
-
-## Limitations
-
-As of Puppet Enterprise 3.7, the stdlib module is no longer included in PE. PE users should install the most recent release of stdlib for compatibility with Puppet modules.
-
-###Version Compatibility
-
-Versions | Puppet 2.6 | Puppet 2.7 | Puppet 3.x | Puppet 4.x |
-:---------------|:-----:|:---:|:---:|:----:
-**stdlib 2.x**  | **yes** | **yes** | no | no
-**stdlib 3.x**  | no    | **yes**  | **yes** | no
-**stdlib 4.x**  | no    | **yes**  | **yes** | no
-**stdlib 4.6+**  | no    | **yes**  | **yes** | **yes**
-**stdlib 5.x**  | no    | no  | **yes**  | **yes**
-
-**stdlib 5.x**: When released, stdlib 5.x will drop support for Puppet 2.7.x. Please see [this discussion](https://github.com/puppetlabs/puppetlabs-stdlib/pull/176#issuecomment-30251414).
-
-## Development
-
-Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve. We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. For more information, see our [module contribution guide](https://docs.puppetlabs.com/forge/contributing.html).
-
-To report or research a bug with any part of this module, please go to
-[http://tickets.puppetlabs.com/browse/PUP](http://tickets.puppetlabs.com/browse/PUP).
-
-## Contributors
-
-The list of contributors can be found at: [https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors](https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors).
Index: src/puppetcode/environments/gnuboat/modules/stdlib/README.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/README.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/README.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2357 @@
+# stdlib
+
+#### Table of Contents
+
+1. [Module Description - What the module does and why it is useful](#module-description)
+1. [Setup - The basics of getting started with stdlib](#setup)
+1. [Usage - Configuration options and additional functionality](#usage)
+1. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
+    1. [Classes](#classes)
+    1. [Defined Types](#defined-types)
+    1. [Data Types](#data-types)
+    1. [Facts](#facts)
+    1. [Functions](#functions)
+1. [Limitations - OS compatibility, etc.](#limitations)
+1. [Development - Guide for contributing to the module](#development)
+1. [Contributors](#contributors)
+
+
+## Module Description
+
+This module provides a standard library of resources for Puppet modules. Puppet modules make heavy use of this standard library. The stdlib module adds the following resources to Puppet:
+
+ * Stages
+ * Facts
+ * Functions
+ * Defined types
+ * Data types
+ * Providers
+
+> *Note:* As of version 3.7, Puppet Enterprise no longer includes the stdlib module. If you're running Puppet Enterprise, you should install the most recent release of stdlib for compatibility with Puppet modules.
+
+## Setup
+
+[Install](https://docs.puppet.com/puppet/latest/modules_installing.html) the stdlib module to add the functions, facts, and resources of this standard library to Puppet.
+
+If you are authoring a module that depends on stdlib, be sure to [specify dependencies](https://docs.puppet.com/puppet/latest/modules_metadata.html#specifying-dependencies) in your metadata.json.
+
+## Usage
+
+Most of stdlib's features are automatically loaded by Puppet. To use standardized run stages in Puppet, declare this class in your manifest with `include stdlib`.
+
+When declared, stdlib declares all other classes in the module. The only other class currently included in the module is `stdlib::stages`.
+
+The `stdlib::stages` class declares various run stages for deploying infrastructure, language runtimes, and application layers. The high level stages are (in order):
+
+  * setup
+  * main
+  * runtime
+  * setup_infra
+  * deploy_infra
+  * setup_app
+  * deploy_app
+  * deploy
+
+Sample usage:
+
+```puppet
+node default {
+  include stdlib
+  class { java: stage => 'runtime' }
+}
+```
+
+## Reference
+
+* [Public classes](#public-classes)
+* [Private classes](#private-classes)
+* [Defined types](#defined-types)
+* [Data types](#data-types)
+* [Facts](#facts)
+* [Functions](#functions)
+
+### Classes
+
+#### Public classes
+
+The `stdlib` class has no parameters.
+
+#### Private classes
+
+* `stdlib::stages`: Manages a standard set of run stages for Puppet.
+
+### Defined types
+
+#### `file_line`
+
+Ensures that a given line is contained within a file. The implementation matches the full line, including whitespace at the beginning and end. If the line is not contained in the given file, Puppet appends the line to the end of the file to ensure the desired state. Multiple resources can be declared to manage multiple lines in the same file.
+
+Example:
+
+```puppet
+file_line { 'sudo_rule':
+  path => '/etc/sudoers',
+  line => '%sudo ALL=(ALL) ALL',
+}
+
+file_line { 'sudo_rule_nopw':
+  path => '/etc/sudoers',
+  line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',
+}
+```
+
+In the example above, Puppet ensures that both of the specified lines are contained in the file `/etc/sudoers`.
+
+Match Example:
+
+```puppet
+file_line { 'bashrc_proxy':
+  ensure => present,
+  path   => '/etc/bashrc',
+  line   => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
+  match  => '^export\ HTTP_PROXY\=',
+}
+```
+
+In the example above, `match` looks for a line beginning with 'export' followed by 'HTTP_PROXY' and replaces it with the value in line.
+
+Match Example with `ensure => absent`:
+
+```puppet
+file_line { 'bashrc_proxy':
+  ensure            => absent,
+  path              => '/etc/bashrc',
+  line              => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
+  match             => '^export\ HTTP_PROXY\=',
+  match_for_absence => true,
+}
+```
+
+In the example above, `match` looks for a line beginning with 'export' followed by 'HTTP_PROXY' and deletes it. If multiple lines match, an error is raised, unless the `multiple => true` parameter is set.
+
+Encoding example:
+
+```puppet
+file_line { "XScreenSaver":
+  ensure   => present,
+  path     => '/root/XScreenSaver'
+  line     => "*lock: 10:00:00",
+  match    => '^*lock:',
+  encoding => "iso-8859-1",
+}
+```
+
+Files with special characters that are not valid UTF-8 give the error message "Invalid byte sequence in UTF-8". In this case, determine the correct file encoding and specify it with the `encoding` attribute.
+
+**Autorequires:** If Puppet is managing the file that contains the line being managed, the `file_line` resource autorequires that file.
+
+**Parameters**
+
+All parameters are optional, unless otherwise noted.
+
+##### `after`
+
+Specifies the line after which Puppet adds any new lines using a regular expression. (Existing lines are added in place.)
+
+Values: String containing a regex.
+
+Default value: `undef`.
+
+##### `encoding`
+
+Specifies the correct file encoding.
+
+Values: String specifying a valid Ruby character encoding.
+
+Default: 'UTF-8'.
+
+##### `ensure`: Specifies whether the resource is present.
+
+Values: 'present', 'absent'.
+
+Default value: 'present'.
+
+##### `line`
+
+**Required.**
+
+Sets the line to be added to the file located by the `path` parameter.
+
+Values: String.
+  
+##### `match`
+
+Specifies a regular expression to compare against existing lines in the file; if a match is found, it is replaced rather than adding a new line. A regex comparison is performed against the line value, and if it does not match, an exception is raised.
+
+Values: String containing a regex.
+
+Default value: `undef`.
+
+
+##### `match_for_absence`
+
+Specifies whether a match should be applied when `ensure => absent`. If set to `true` and match is set, the line that matches is deleted. If set to `false` (the default), match is ignored when `ensure => absent` and the value of `line` is used instead. Ignored when `ensure => present`.
+
+Boolean.
+
+Default value: `false`.
+
+##### `multiple`
+
+Specifies whether `match` and `after` can change multiple lines. If set to `false`, an exception is raised if more than one line matches.
+
+Values: `true`, `false`.
+
+Default value: `false`.
+
+
+##### `name`
+
+Specifies the name to use as the identity of the resource. If you want the resource namevar to differ from the supplied `title` of the resource, specify it with `name`. 
+
+Values: String.
+
+Default value: The value of the title.
+
+##### `path`
+
+**Required.**
+
+Specifies the file in which Puppet ensures the line specified by `line`. 
+
+Value: String specifying an absolute path to the file.
+
+##### `replace`
+
+Specifies whether the resource overwrites an existing line that matches the `match` parameter. If set to `false` and a line is found matching the `match` parameter, the line is not placed in the file.
+
+Boolean.
+
+Default value: `true`.
+
+### Data types
+
+#### `Stdlib::Absolutepath`
+
+A strict absolute path type. Uses a variant of Unixpath and Windowspath types.
+
+Acceptable input examples:
+
+```shell
+/var/log
+```
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:.
+```
+
+```shell
+C:\\WINDOWS\\System32
+```
+
+Unacceptable input example:
+
+```shell
+../relative_path
+```
+
+#### `Stdlib::Httpsurl`
+
+Matches HTTPS URLs.
+
+Acceptable input example:
+
+```shell
+https://hello.com
+```
+
+Unacceptable input example:
+
+```shell
+httds://notquiteright.org`
+```
+
+#### `Stdlib::Httpurl`
+
+Matches both HTTPS and HTTP URLs.
+
+Acceptable input example:
+
+```shell
+https://hello.com
+
+http://hello.com
+```
+
+Unacceptable input example:
+
+```shell
+httds://notquiteright.org
+```
+
+#### `Stdlib::Unixpath`
+
+Matches paths on Unix operating systems.
+
+Acceptable input example:
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:
+
+/var/tmp
+```
+
+Unacceptable input example:
+
+```shell
+C:/whatever
+```
+
+#### `Stdlib::Windowspath`
+
+Matches paths on Windows operating systems.
+
+Acceptable input example: 
+
+```shell
+C:\\WINDOWS\\System32
+
+C:\\
+
+\\\\host\\windows
+```
+
+Unacceptable input example:
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:.
+```
+
+### Facts
+
+#### `package_provider`
+
+Returns the default provider Puppet uses to manage packages on this system.
+
+#### `is_pe`
+
+Returns whether Puppet Enterprise is installed. Does not report anything on platforms newer than PE 3.x.
+
+#### `pe_version`
+
+Returns the version of Puppet Enterprise installed. Does not report anything on platforms newer than PE 3.x.
+
+#### `pe_major_version`
+
+Returns the major version Puppet Enterprise that is installed. Does not report anything on platforms newer than PE 3.x.
+
+#### `pe_minor_version`
+
+Returns the minor version of Puppet Enterprise that is installed. Does not report anything on platforms newer than PE 3.x.
+
+#### `pe_patch_version`
+
+Returns the patch version of Puppet Enterprise that is installed.
+
+#### `puppet_vardir`
+
+Returns the value of the Puppet vardir setting for the node running Puppet or Puppet agent.
+
+#### `puppet_environmentpath`
+
+Returns the value of the Puppet environment path settings for the node running Puppet or Puppet agent.
+
+#### `puppet_server`
+
+Returns the Puppet agent's `server` value, which is the hostname of the Puppet master with which the agent should communicate.
+
+#### `root_home`
+
+Determines the root home directory.
+
+Determines the root home directory, which depends on your operating system. Generally this is '/root'.
+
+#### `service_provider`
+
+Returns the default provider Puppet uses to manage services on this system
+
+### Functions
+
+#### `abs`
+
+Returns the absolute value of a number. For example, '-34.56' becomes '34.56'.
+
+Argument: A single argument of either an integer or float value.
+
+*Type*: rvalue.
+
+#### `any2array`
+
+Converts any object to an array containing that object. Converts empty argument lists are to empty arrays. Hashes are converted to arrays of alternating keys and values. Arrays are not touched.
+
+*Type*: rvalue.
+
+#### `any2bool`
+
+Converts any object to a Boolean:
+
+* Strings such as 'Y', 'y', '1', 'T', 't', 'TRUE', 'yes', 'true' return `true`.
+* Strings such as '0', 'F', 'f', 'N', 'n', 'FALSE', 'no', 'false' return `false`.
+* Booleans return their original value.
+* A number (or a string representation of a number) greater than 0 returns `true`, otherwise `false`.
+* An undef value returns `false`.
+* Anything else returns `true`.
+
+*Type*: rvalue.
+
+#### `assert_private`
+
+Sets the current class or definition as private. Calling the class or defined type from outside the current module fails.
+
+For example, `assert_private()` called in class `foo::bar` outputs the following message if class is called from outside module `foo`: `Class foo::bar is private.`
+
+To specify the error message you want to use:
+
+```puppet
+assert_private("You're not supposed to do that!")
+```
+
+*Type*: statement.
+
+#### `base64`
+
+Converts a string to and from base64 encoding. Requires an `action` ('encode', 'decode') and either a plain or base64-encoded `string`, and an optional `method` ('default', 'strict', 'urlsafe').
+
+For backward compatibility, `method` is set as `default` if not specified.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+**Examples:**
+
+```puppet
+base64('encode', 'hello')
+base64('encode', 'hello', 'default')
+# return: "aGVsbG8=\n"
+
+base64('encode', 'hello', 'strict')
+# return: "aGVsbG8="
+
+base64('decode', 'aGVsbG8=')
+base64('decode', 'aGVsbG8=\n')
+base64('decode', 'aGVsbG8=', 'default')
+base64('decode', 'aGVsbG8=\n', 'default')
+base64('decode', 'aGVsbG8=', 'strict')
+# return: "hello"
+
+base64('encode', 'https://puppetlabs.com', 'urlsafe')
+# return: "aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ=="
+
+base64('decode', 'aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ==', 'urlsafe')
+# return: "https://puppetlabs.com"
+```
+
+*Type*: rvalue.
+
+#### `basename`
+
+Returns the `basename` of a path. An optional argument strips the extension. For example:
+
+  * ('/path/to/a/file.ext') returns 'file.ext'
+  * ('relative/path/file.ext') returns 'file.ext'
+  * ('/path/to/a/file.ext', '.ext') returns 'file'
+
+*Type*: rvalue.
+
+#### `bool2num`
+
+Converts a Boolean to a number. Converts values:
+
+* `false`, 'f', '0', 'n', and 'no' to 0.
+* `true`, 't', '1', 'y', and 'yes' to 1.
+  
+  Argument: a single Boolean or string as an input.
+  
+  *Type*: rvalue.
+
+#### `bool2str`
+
+Converts a Boolean to a string using optionally supplied arguments. The optional second and third arguments represent what true and false are converted to respectively. If only one argument is given, it is converted from a Boolean to a string containing `true` or `false`.
+
+*Examples:*
+
+```puppet
+bool2str(true)                    => `true`
+bool2str(true, 'yes', 'no')       => 'yes'
+bool2str(false, 't', 'f')         => 'f'
+```
+
+Arguments: Boolean.
+
+*Type*: rvalue.
+
+#### `camelcase`
+
+Converts the case of a string or all strings in an array to CamelCase (mixed case).
+
+Arguments: Either an array or string. Returns the same type of argument as it received, but in CamelCase form.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+ *Type*: rvalue.
+
+#### `capitalize`
+
+Capitalizes the first character of a string or array of strings and lowercases the remaining characters of each string.
+
+Arguments: either a single string or an array as an input. *Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `ceiling`
+
+Returns the smallest integer greater than or equal to the argument.
+
+Arguments: A single numeric value.
+
+*Type*: rvalue.
+
+#### `chomp`
+
+Removes the record separator from the end of a string or an array of strings; for example, 'hello\n' becomes 'hello'.
+
+Arguments: a single string or array.
+
+*Type*: rvalue.
+
+#### `chop`
+
+Returns a new string with the last character removed. If the string ends with '\r\n', both characters are removed. Applying `chop` to an empty string returns an empty string. To only remove record separators, use the `chomp` function.
+
+Arguments: A string or an array of strings as input.
+
+*Type*: rvalue.
+
+#### `clamp`
+
+Keeps value within the range [Min, X, Max] by sort based on integer value (parameter order doesn't matter). Strings are converted and compared numerically. Arrays of values are flattened into a list for further handling. For example:
+
+  * `clamp('24', [575, 187])` returns 187.
+  * `clamp(16, 88, 661)` returns 88.
+  * `clamp([4, 3, '99'])` returns 4.
+  
+Arguments: strings, arrays, or numerics. 
+
+*Type*: rvalue.
+
+#### `concat`
+
+Appends the contents of multiple arrays onto the first array given. For example:
+
+  * `concat(['1','2','3'],'4')` returns ['1','2','3','4'].
+  * `concat(['1','2','3'],'4',['5','6','7'])` returns ['1','2','3','4','5','6','7'].
+
+*Type*: rvalue.
+
+#### `convert_base`
+
+Converts a given integer or base 10 string representing an integer to a specified base, as a string. For example:
+
+  * `convert_base(5, 2)` results in: '101'
+  * `convert_base('254', '16')` results in: 'fe'
+
+#### `count`
+
+If called with only an array, counts the number of elements that are **not** nil or `undef`. If called with a second argument, counts the number of elements in an array that matches the second argument.
+
+*Type*: rvalue.
+
+#### `deep_merge`
+
+Recursively merges two or more hashes together and returns the resulting hash.
+
+```puppet
+$hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
+$hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
+$merged_hash = deep_merge($hash1, $hash2)
+```
+
+The resulting hash is equivalent to:
+
+```puppet
+$merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
+```
+
+If there is a duplicate key that is a hash, they are recursively merged. If there is a duplicate key that is not a hash, the key in the rightmost hash takes precedence.
+
+*Type*: rvalue.
+
+#### `defined_with_params`
+
+Takes a resource reference and an optional hash of attributes. Returns `true` if a resource with the specified attributes has already been added to the catalog. Returns `false` otherwise.
+
+```puppet
+user { 'dan':
+  ensure => present,
+}
+
+if ! defined_with_params(User[dan], {'ensure' => 'present' }) {
+  user { 'dan': ensure => present, }
+}
+```
+
+*Type*: rvalue.
+
+#### `delete`
+
+Deletes all instances of a given element from an array, substring from a string, or key from a hash.
+
+For example:
+
+* `delete(['a','b','c','b'], 'b')` returns ['a','c'].
+* `delete('abracadabra', 'bra')` returns 'acada'.
+* `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}.
+* `delete(['ab', 'b'], 'b')` returns ['ab'].
+
+*Type*: rvalue.
+
+#### `delete_at`
+
+Deletes a determined indexed value from an array.
+
+For example: `delete_at(['a','b','c'], 1)` returns ['a','c'].
+
+*Type*: rvalue.
+
+#### `delete_regex`
+
+Deletes all instances of a given element from an array or hash that match a provided regular expression. A string is treated as a one-item array.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+
+For example
+
+* `delete_regex(['a','b','c','b'], 'b')` returns ['a','c'].
+* `delete_regex({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}.
+* `delete_regex(['abf', 'ab', 'ac'], '^ab.*')` returns ['ac'].
+* `delete_regex(['ab', 'b'], 'b')` returns ['ab'].
+
+*Type*: rvalue.
+
+#### `delete_values`
+
+Deletes all instances of a given value from a hash.
+
+For example:
+
+* `delete_values({'a'=>'A','b'=>'B','c'=>'C','B'=>'D'}, 'B')` returns {'a'=>'A','c'=>'C','B'=>'D'}
+
+*Type*: rvalue.
+
+#### `delete_undef_values`
+
+Deletes all instances of the `undef` value from an array or hash.
+
+For example:
+
+* `$hash = delete_undef_values({a=>'A', b=>'', c=>`undef`, d => false})` returns {a => 'A', b => '', d => false}.
+
+*Type*: rvalue.
+
+#### `deprecation`
+
+Prints deprecation warnings and logs a warning once for a given key:
+
+```puppet
+deprecation(key, message)
+```
+
+Arguments:
+
+* A string specifying the key: To keep the number of messages low during the lifetime of a Puppet process, only one message per key is logged.
+* A string specifying the message: the text to be logged.
+
+*Type*: Statement.
+
+**Settings that affect `deprecation`**
+
+Other settings in Puppet affect the stdlib `deprecation` function:
+
+* [`disable_warnings`](https://docs.puppet.com/puppet/latest/reference/configuration.html#disablewarnings)
+* [`max_deprecations`](https://docs.puppet.com/puppet/latest/reference/configuration.html#maxdeprecations)
+* [`strict`](https://docs.puppet.com/puppet/latest/reference/configuration.html#strict):
+
+    * `error`: Fails immediately with the deprecation message
+    * `off`: Output emits no messages.
+    * `warning`: Logs all warnings. This is the default setting.
+
+* The environment variable `STDLIB_LOG_DEPRECATIONS`
+
+  Specifies whether or not to log deprecation warnings. This is especially useful for automated tests to avoid flooding your logs before you are ready to migrate.
+
+  This variable is Boolean, with the following effects:
+  
+  * `true`: Functions log a warning.
+  * `false`: No warnings are logged.
+  * No value set: Puppet 4 emits warnings, but Puppet 3 does not.
+
+#### `difference`
+
+Returns the difference between two arrays. The returned array is a copy of the original array, removing any items that also appear in the second array.
+
+For example:
+
+* `difference(["a","b","c"],["b","c","d"])` returns ["a"].
+
+*Type*: rvalue.
+
+#### `dig`
+
+> DEPRECATED: This function has been replaced with a built-in [`dig`](https://docs.puppet.com/puppet/latest/function.html#dig) function as of Puppet 4.5.0. Use [`dig44()`](#dig44) for backwards compatibility or use the new version.
+
+Retrieves a value within multiple layers of hashes and arrays via an array of keys containing a path. The function goes through the structure by each path component and tries to return the value at the end of the path.
+
+In addition to the required path argument, the function accepts the default argument. It is returned if the path is not correct, if no value was found, or if any other error has occurred.
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = dig($data, ['a', 'b', 2])
+# $value = 'b3'
+
+# with all possible options
+$value = dig($data, ['a', 'b', 2], 'not_found')
+# $value = 'b3'
+
+# using the default value
+$value = dig($data, ['a', 'b', 'c', 'd'], 'not_found')
+# $value = 'not_found'
+```
+
+1. **$data** The data structure we are working with.
+2. **['a', 'b', 2]** The path array.
+3. **'not_found'** The default value. It is returned if nothing is found.
+
+Default value: `undef`.
+
+*Type*: rvalue.
+
+#### `dig44`
+
+Retrieves a value within multiple layers of hashes and arrays via an array of keys containing a path. The function goes through the structure by each path component and tries to return the value at the end of the path.
+
+In addition to the required path argument, the function accepts the default argument. It is returned if the path is incorrect, if no value was found, or if any other error has occurred.
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = dig44($data, ['a', 'b', 2])
+# $value = 'b3'
+
+# with all possible options
+$value = dig44($data, ['a', 'b', 2], 'not_found')
+# $value = 'b3'
+
+# using the default value
+$value = dig44($data, ['a', 'b', 'c', 'd'], 'not_found')
+# $value = 'not_found'
+```
+
+*Type*: rvalue.
+
+1. **$data** The data structure we are working with.
+2. **['a', 'b', 2]** The path array.
+3. **'not_found'** The default value. It will be returned if nothing is found.
+   (optional, defaults to `undef`)
+
+#### `dirname`
+
+Returns the `dirname` of a path. For example, `dirname('/path/to/a/file.ext')` returns '/path/to/a'.
+
+*Type*: rvalue.
+
+#### `dos2unix`
+
+Returns the Unix version of the given string. Very useful when using a File resource with a cross-platform template.
+
+```puppet
+file { $config_file:
+  ensure  => file,
+  content => dos2unix(template('my_module/settings.conf.erb')),
+}
+```
+
+See also [unix2dos](#unix2dos).
+
+*Type*: rvalue.
+
+#### `downcase`
+
+Converts the case of a string or of all strings in an array to lowercase.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+*Type*: rvalue.
+
+#### `empty`
+
+Returns `true` if the argument is an array or hash that contains no elements, or an empty string. Returns `false` when the argument is a numerical value.
+
+*Type*: rvalue.
+
+#### `enclose_ipv6`
+
+Takes an array of IP addresses and encloses the ipv6 addresses with square brackets.
+
+*Type*: rvalue.
+
+#### `ensure_packages`
+
+Takes a list of packages in an array or hash and installs them only if they don't already exist. Optionally takes a hash as a second parameter to be passed as the third argument to the `ensure_resource()` or `ensure_resources()` function.
+
+*Type*: statement.
+
+For an array:
+
+```puppet
+ensure_packages(['ksh','openssl'], {'ensure' => 'present'})
+```
+
+For a hash:
+
+```puppet
+ensure_packages({'ksh' => { ensure => '20120801-1' } ,  'mypackage' => { source => '/tmp/myrpm-1.0.0.x86_64.rpm', provider => "rpm" }}, {'ensure' => 'present'})
+```
+
+#### `ensure_resource`
+
+Takes a resource type, title, and a hash of attributes that describe the resource(s).
+
+```
+user { 'dan':
+  ensure => present,
+}
+```
+
+This example only creates the resource if it does not already exist:
+
+  `ensure_resource('user', 'dan', {'ensure' => 'present' })`
+
+If the resource already exists, but does not match the specified parameters, this function attempts to recreate the resource, leading to a duplicate resource definition error.
+
+An array of resources can also be passed in, and each will be created with the type and parameters specified if it doesn't already exist.
+
+`ensure_resource('user', ['dan','alex'], {'ensure' => 'present'})`
+
+*Type*: statement.
+
+#### `ensure_resources`
+
+Creates resource declarations from a hash, but doesn't conflict with resources that are already declared.
+
+Specify a resource type and title and a hash of attributes that describe the resource(s).
+
+```puppet
+user { 'dan':
+  gid => 'mygroup',
+  ensure => present,
+}
+
+ensure_resources($user)
+```
+
+Pass in a hash of resources. Any listed resources that don't already exist will be created with the type and parameters specified:
+
+    ensure_resources('user', {'dan' => { gid => 'mygroup', uid => '600' } ,  'alex' => { gid => 'mygroup' }}, {'ensure' => 'present'})
+
+From Hiera backend:
+
+```yaml
+userlist:
+  dan:
+    gid: 'mygroup'
+    uid: '600'
+  alex:
+    gid: 'mygroup'
+```
+
+```puppet
+ensure_resources('user', hiera_hash('userlist'), {'ensure' => 'present'})
+```
+
+#### `flatten`
+
+Flattens deeply nested arrays and returns a single flat array as a result.
+
+For example, `flatten(['a', ['b', ['c']]])` returns ['a','b','c'].
+
+*Type*: rvalue.
+
+#### `floor`
+
+Returns the largest integer less than or equal to the argument.
+
+Arguments: A single numeric value.
+
+*Type*: rvalue.
+
+#### `fqdn_rand_string`
+
+Generates a random alphanumeric string, combining the `$fqdn` fact and an optional seed for repeatable randomness. Optionally, you can specify a character set for the function (defaults to alphanumeric).
+
+*Usage:*
+
+```puppet
+fqdn_rand_string(LENGTH, [CHARSET], [SEED])
+```
+
+*Examples:*
+
+```puppet
+fqdn_rand_string(10)
+fqdn_rand_string(10, 'ABCDEF!@#$%^')
+fqdn_rand_string(10, '', 'custom seed')
+```
+
+Arguments:
+
+* An integer, specifying the length of the resulting string.
+* Optionally, a string specifying the character set.
+* Optionally, a string specifying the seed for repeatable randomness.
+
+*Type*: rvalue.
+
+#### `fqdn_rotate`
+
+Rotates an array or string a random number of times, combining the `$fqdn` fact and an optional seed for repeatable randomness.
+
+*Usage:*
+
+```puppet
+fqdn_rotate(VALUE, [SEED])
+```
+
+*Examples:*
+
+```puppet
+fqdn_rotate(['a', 'b', 'c', 'd'])
+fqdn_rotate('abcd')
+fqdn_rotate([1, 2, 3], 'custom seed')
+```
+
+*Type*: rvalue.
+
+#### `fqdn_uuid`
+
+Returns a [RFC 4122](https://tools.ietf.org/html/rfc4122) valid version 5 UUID based on an FQDN string under the DNS namespace:
+
+  * fqdn_uuid('puppetlabs.com') returns '9c70320f-6815-5fc5-ab0f-debe68bf764c'
+  * fqdn_uuid('google.com') returns '64ee70a4-8cc1-5d25-abf2-dea6c79a09c8'
+
+*Type*: rvalue.
+
+#### `get_module_path`
+
+Returns the absolute path of the specified module for the current environment.
+
+```puppet
+$module_path = get_module_path('stdlib')
+```
+
+*Type*: rvalue.
+
+#### `getparam`
+
+Returns the value of a resource's parameter.
+
+Arguments: A resource reference and the name of the parameter.
+
+For example, the following returns 'param_value':
+
+```puppet
+define example_resource($param) {
+}
+
+example_resource { "example_resource_instance":
+  param => "param_value"
+}
+
+getparam(Example_resource["example_resource_instance"], "param")
+```
+
+*Type*: rvalue.
+
+#### `getvar`
+
+Looks up a variable in a remote namespace.
+
+For example:
+
+```puppet
+$foo = getvar('site::data::foo')
+# Equivalent to $foo = $site::data::foo
+```
+
+This is useful if the namespace itself is stored in a string:
+
+```puppet
+$datalocation = 'site::data'
+$bar = getvar("${datalocation}::bar")
+# Equivalent to $bar = $site::data::bar
+```
+
+*Type*: rvalue.
+
+#### `glob`
+
+Returns an array of strings of paths matching path patterns.
+
+Arguments: A string or an array of strings specifying path patterns.
+
+```puppet
+$confs = glob(['/etc/**/*.conf', '/opt/**/*.conf'])
+```
+
+*Type*: rvalue.
+
+#### `grep`
+
+Searches through an array and returns any elements that match the provided regular expression.
+
+For example, `grep(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['aaa','aaaddd'].
+
+*Type*: rvalue.
+
+#### `has_interface_with`
+
+Returns a Boolean based on kind and value:
+
+  * macaddress
+  * netmask
+  * ipaddress
+  * network
+
+*Examples:*
+
+```puppet
+has_interface_with("macaddress", "x:x:x:x:x:x")
+has_interface_with("ipaddress", "127.0.0.1")    => true
+```
+
+If no kind is given, then the presence of the interface is checked:
+
+```puppet
+has_interface_with("lo")                        => true
+```
+
+*Type*: rvalue.
+
+#### `has_ip_address`
+
+Returns `true` if the client has the requested IP address on some interface. This function iterates through the `interfaces` fact and checks the `ipaddress_IFACE` facts, performing a simple string comparison.
+
+Arguments: A string specifying an IP address.
+
+*Type*: rvalue.
+
+#### `has_ip_network`
+
+Returns `true` if the client has an IP address within the requested network. This function iterates through the `interfaces` fact and checks the `network_IFACE` facts, performing a simple string comparision.
+
+Arguments: A string specifying an IP address.
+
+*Type*: rvalue.
+
+#### `has_key`
+
+Determines if a hash has a certain key value.
+
+*Example*:
+
+```
+$my_hash = {'key_one' => 'value_one'}
+if has_key($my_hash, 'key_two') {
+  notice('we will not reach here')
+}
+if has_key($my_hash, 'key_one') {
+  notice('this will be printed')
+}
+```
+
+*Type*: rvalue.
+
+#### `hash`
+
+Converts an array into a hash.
+
+For example, `hash(['a',1,'b',2,'c',3])` returns {'a'=>1,'b'=>2,'c'=>3}.
+
+*Type*: rvalue.
+
+#### `intersection`
+
+Returns an array an intersection of two.
+
+For example, `intersection(["a","b","c"],["b","c","d"])` returns ["b","c"].
+
+*Type*: rvalue.
+
+#### `is_a`
+
+Boolean check to determine whether a variable is of a given data type. This is equivalent to the `=~` type checks. This function is available only in Puppet 4, or in Puppet 3 with the "future" parser.
+
+```
+foo = 3
+$bar = [1,2,3]
+$baz = 'A string!'
+
+if $foo.is_a(Integer) {
+  notify  { 'foo!': }
+}
+if $bar.is_a(Array) {
+  notify { 'bar!': }
+}
+if $baz.is_a(String) {
+  notify { 'baz!': }
+}
+```
+
+* See the [the Puppet type system](https://docs.puppetlabs.com/latest/type.html#about-resource-types) for more information about types.
+* See the [`assert_type()`](https://docs.puppetlabs.com/latest/function.html#asserttype) function for flexible ways to assert the type of a value.
+
+#### `is_absolute_path`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the given path is absolute.
+
+*Type*: rvalue.
+
+#### `is_array`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is an array.
+
+*Type*: rvalue.
+
+#### `is_bool`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is a Boolean.
+
+*Type*: rvalue.
+
+#### `is_domain_name`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the string passed to this function is a syntactically correct domain name.
+
+*Type*: rvalue.
+
+#### `is_float`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is a float.
+
+*Type*: rvalue.
+
+#### `is_function_available`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Accepts a string as an argument and determines whether the Puppet runtime has access to a function by that name. It returns `true` if the function exists, `false` if not.
+
+*Type*: rvalue.
+
+#### `is_hash`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is a hash.
+
+*Type*: rvalue.
+
+#### `is_integer`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable returned to this string is an integer.
+
+*Type*: rvalue.
+
+#### `is_ip_address`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the string passed to this function is a valid IP address.
+
+*Type*: rvalue.
+
+#### `is_ipv6_address`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the string passed to this function is a valid IPv6 address.
+
+*Type*: rvalue.
+
+#### `is_ipv4_address`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the string passed to this function is a valid IPv4 address.
+
+*Type*: rvalue.
+
+#### `is_mac_address`
+
+Returns `true` if the string passed to this function is a valid MAC address.
+
+*Type*: rvalue.
+
+#### `is_numeric`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is a number.
+
+*Type*: rvalue.
+
+#### `is_string`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Returns `true` if the variable passed to this function is a string.
+
+*Type*: rvalue.
+
+#### `join`
+
+Joins an array into a string using a separator. For example, `join(['a','b','c'], ",")` results in: "a,b,c".
+
+*Type*: rvalue.
+
+#### `join_keys_to_values`
+
+Joins each key of a hash to that key's corresponding value with a separator, returning the result as strings. 
+
+If a value is an array, the key is prefixed to each element. The return value is a flattened array.
+
+For example, `join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")` results in ["a is 1","b is 2","b is 3"].
+
+*Type*: rvalue.
+
+#### `keys`
+
+Returns the keys of a hash as an array.
+
+*Type*: rvalue.
+
+#### `length`
+
+Returns the length of a given string, array or hash. Replaces the deprecated `size()` function.
+
+*Type*: rvalue.
+
+#### `loadyaml`
+
+Loads a YAML file containing an array, string, or hash, and returns the data in the corresponding native data type.
+
+For example:
+
+```puppet
+$myhash = loadyaml('/etc/puppet/data/myhash.yaml')
+```
+
+The second parameter is returned if the file was not found or could not be parsed.
+
+For example:
+
+```puppet
+$myhash = loadyaml('no-file.yaml', {'default'=>'value'})
+```
+
+*Type*: rvalue.
+
+#### `loadjson`
+
+Loads a JSON file containing an array, string, or hash, and returns the data in the corresponding native data type.
+
+For example:
+
+```puppet
+$myhash = loadjson('/etc/puppet/data/myhash.json')
+```
+
+The second parameter is returned if the file was not found or could not be parsed.
+
+For example:
+
+```puppet
+  $myhash = loadjson('no-file.json', {'default'=>'value'})
+  ```
+
+*Type*: rvalue.
+
+#### `load_module_metadata`
+
+Loads the metadata.json of a target module. Can be used to determine module version and authorship for dynamic support of modules.
+
+```puppet
+$metadata = load_module_metadata('archive')
+notify { $metadata['author']: }
+```
+
+When a module's metadata file is absent, the catalog compilation fails. To avoid this failure:
+
+```
+$metadata = load_module_metadata('mysql', true)
+if empty($metadata) {
+  notify { "This module does not have a metadata.json file.": }
+}
+```
+
+*Type*: rvalue.
+
+#### `lstrip`
+
+Strips spaces to the left of a string.
+
+*Type*: rvalue.
+
+#### `max`
+
+Returns the highest value of all arguments. Requires at least one argument.
+
+Arguments: A numeric or a string representing a number.
+
+*Type*: rvalue.
+
+#### `member`
+
+This function determines if a variable is a member of an array. The variable can be a string, an array, or a fixnum.
+
+For example, `member(['a','b'], 'b')` and `member(['a','b','c'], ['b','c'])` return `true`, while `member(['a','b'], 'c')` and `member(['a','b','c'], ['c','d'])` return `false`.
+
+*Note*: This function does not support nested arrays. If the first argument contains nested arrays, it will not recurse through them.
+
+*Type*: rvalue.
+
+#### `merge`
+
+Merges two or more hashes together and returns the resulting hash.
+
+*Example*:
+
+```puppet
+$hash1 = {'one' => 1, 'two' => 2}
+$hash2 = {'two' => 'dos', 'three' => 'tres'}
+$merged_hash = merge($hash1, $hash2)
+# The resulting hash is equivalent to:
+# $merged_hash =  {'one' => 1, 'two' => 'dos', 'three' => 'tres'}
+```
+
+When there is a duplicate key, the key in the rightmost hash takes precedence.
+
+*Type*: rvalue.
+
+#### `min`
+
+Returns the lowest value of all arguments. Requires at least one argument.
+
+Arguments: A numeric or a string representing a number.
+
+*Type*: rvalue.
+
+#### `num2bool`
+
+Converts a number or a string representation of a number into a true Boolean. Zero or anything non-numeric becomes `false`. Numbers greater than 0 become `true`.
+
+*Type*: rvalue.
+
+#### `parsejson`
+
+Converts a string of JSON into the correct Puppet structure (as a hash, array, string, integer, or a combination of such).
+
+Arguments:
+* The JSON string to convert, as a first argument.
+* Optionally, the result to return if conversion fails, as a second error.
+
+*Type*: rvalue.
+
+#### `parseyaml`
+
+Converts a string of YAML into the correct Puppet structure.
+
+Arguments:
+* The YAML string to convert, as a first argument.
+* Optionally, the result to return if conversion fails, as a second error.
+
+*Type*: rvalue. 
+
+#### `pick`
+
+From a list of values, returns the first value that is not undefined or an empty string. Takes any number of arguments, and raises an error if all values are undefined or empty.
+
+```puppet
+$real_jenkins_version = pick($::jenkins_version, '1.449')
+```
+
+*Type*: rvalue.
+
+#### `pick_default`
+
+Returns the first value in a list of values. Unlike the `pick()` function, `pick_default()` does not fail if all arguments are empty. This allows it to use an empty value as default.
+
+*Type*: rvalue.
+
+#### `prefix`
+
+Applies a prefix to all elements in an array, or to the keys in a hash.
+
+For example:
+
+* `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc'].
+* `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}.
+
+*Type*: rvalue.
+
+#### `pry`
+
+Invokes a pry debugging session in the current scope object. Useful for debugging manifest code at specific points during a compilation. Should be used only when running `puppet apply` or running a Puppet master in the foreground. Requires the `pry` gem to be installed in Puppet's rubygems.
+
+*Examples:*
+
+```puppet
+pry()
+```
+
+In a pry session, useful commands include:
+
+* Run `catalog` to see the contents currently compiling catalog.
+* Run `cd catalog` and `ls` to see catalog methods and instance variables.
+* Run `@resource_table` to see the current catalog resource table.
+
+#### `pw_hash`
+
+Hashes a password using the crypt function. Provides a hash usable on most POSIX systems.
+
+The first argument to this function is the password to hash. If it is `undef` or an empty string, this function returns `undef`.
+
+The second argument to this function is which type of hash to use. It will be converted into the appropriate crypt(3) hash specifier. Valid hash types are:
+
+|Hash type            |Specifier|
+|---------------------|---------|
+|MD5                  |1        |
+|SHA-256              |5        |
+|SHA-512 (recommended)|6        |
+
+The third argument to this function is the salt to use.
+
+This function uses the Puppet master's implementation of crypt(3). If your environment contains several different operating systems, ensure that they are compatible before using this function.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `range`
+
+Extrapolates a range as an array when given in the form of '(start, stop)'. For example, `range("0", "9")` returns [0,1,2,3,4,5,6,7,8,9]. Zero-padded strings are converted to integers automatically, so `range("00", "09")` returns [0,1,2,3,4,5,6,7,8,9].
+
+Non-integer strings are accepted:
+
+* `range("a", "c")` returns ["a","b","c"].
+* `range("host01", "host10")` returns ["host01", "host02", ..., "host09", "host10"].
+
+You must explicitly include trailing zeros, or the underlying Ruby function fails.
+
+Passing a third argument causes the generated range to step by that interval. For example:
+
+* `range("0", "9", "2")` returns ["0","2","4","6","8"].
+
+*Type*: rvalue.
+
+#### `regexpescape`
+
+Regexp escape a string or array of strings. Requires either a single string or an array as an input.
+
+*Type*: rvalue.
+
+#### `reject`
+
+Searches through an array and rejects all elements that match the provided regular expression.
+
+For example, `reject(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['bbb','ccc'].
+
+*Type*: rvalue.
+
+#### `reverse`
+
+Reverses the order of a string or array.
+
+*Type*: rvalue.
+
+#### `rstrip`
+
+Strips spaces to the right of the string.
+
+*Type*: rvalue.
+
+#### `seeded_rand`
+
+Takes an integer max value and a string seed value and returns a repeatable random integer smaller than max. Similar to `fqdn_rand`, but does not add node specific data to the seed.
+
+*Type*: rvalue.
+
+#### `shell_escape`
+
+Escapes a string so that it can be safely used in a Bourne shell command line. Note that the resulting string should be used unquoted and is not intended for use in either double or single quotes. This function behaves the same as Ruby's `Shellwords.shellescape()` function; see the [Ruby documentation](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape).
+
+For example:
+
+```puppet
+shell_escape('foo b"ar') => 'foo\ b\"ar'
+```
+
+*Type*: rvalue.
+
+#### `shell_join`
+
+Builds a command line string from a given array of strings. Each array item is escaped for Bourne shell. All items are then joined together, with a single space in between. This function behaves the same as Ruby's `Shellwords.shelljoin()` function; see the [Ruby documentation](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shelljoin).
+
+For example:
+
+```puppet
+shell_join(['foo bar', 'ba"z']) => 'foo\ bar ba\"z'
+```
+
+*Type*: rvalue.
+
+#### `shell_split`
+
+Splits a string into an array of tokens. This function behaves the same as Ruby's `Shellwords.shellsplit()` function; see the [ruby documentation](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellsplit).
+
+*Example:*
+
+```puppet
+shell_split('foo\ bar ba\"z') => ['foo bar', 'ba"z']
+```
+
+*Type*: rvalue.
+
+#### `shuffle`
+
+Randomizes the order of a string or array elements.
+
+*Type*: rvalue.
+
+#### `size`
+
+Returns the number of elements in a string, an array or a hash. This function will be deprecated in a future release. For Puppet 4, use the `length` function.
+
+*Type*: rvalue.
+
+#### `sort`
+
+Sorts strings and arrays lexically.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `squeeze`
+
+Replaces consecutive repeats (such as 'aaaa') in a string with a single character. Returns a new string.
+
+*Type*: rvalue.
+
+#### `str2bool`
+
+Converts certain strings to a Boolean. This attempts to convert strings that contain the values '1', 'true', 't', 'y', or 'yes' to `true`. Strings that contain values '0', 'false', 'f', 'n', or 'no', or that are an empty string or undefined are converted to `false`. Any other value causes an error. These checks are case insensitive.
+
+*Type*: rvalue.
+
+#### `str2saltedsha512`
+
+Converts a string to a salted-SHA512 password hash, used for OS X versions 10.7 or greater. Returns a hex version of a salted-SHA512 password hash, which can be inserted into Puppet manifests as a valid password attribute.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `strftime`
+
+Returns formatted time.
+
+For example, `strftime("%s")` returns the time since Unix epoch, and `strftime("%Y-%m-%d")` returns the date.
+
+Arguments: A string specifying the time in `strftime` format. See the Ruby [strftime](https://ruby-doc.org/core-2.1.9/Time.html#method-i-strftime) documentation for details.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+*Format:*
+
+* `%a`: The abbreviated weekday name ('Sun')
+* `%A`: The full weekday name ('Sunday')
+* `%b`: The abbreviated month name ('Jan')
+* `%B`: The full month name ('January')
+* `%c`: The preferred local date and time representation
+* `%C`: Century (20 in 2009)
+* `%d`: Day of the month (01..31)
+* `%D`: Date (%m/%d/%y)
+* `%e`: Day of the month, blank-padded ( 1..31)
+* `%F`: Equivalent to %Y-%m-%d (the ISO 8601 date format)
+* `%h`: Equivalent to %b
+* `%H`: Hour of the day, 24-hour clock (00..23)
+* `%I`: Hour of the day, 12-hour clock (01..12)
+* `%j`: Day of the year (001..366)
+* `%k`: Hour, 24-hour clock, blank-padded ( 0..23)
+* `%l`: Hour, 12-hour clock, blank-padded ( 0..12)
+* `%L`: Millisecond of the second (000..999)
+* `%m`: Month of the year (01..12)
+* `%M`: Minute of the hour (00..59)
+* `%n`: Newline (\n)
+* `%N`: Fractional seconds digits, default is 9 digits (nanosecond)
+  * `%3N`: Millisecond (3 digits)
+  * `%6N`: Microsecond (6 digits)
+  * `%9N`: Nanosecond (9 digits)
+* `%p`: Meridian indicator ('AM' or 'PM')
+* `%P`: Meridian indicator ('am' or 'pm')
+* `%r`: Time, 12-hour (same as %I:%M:%S %p)
+* `%R`: Time, 24-hour (%H:%M)
+* `%s`: Number of seconds since the Unix epoch, 1970-01-01 00:00:00 UTC.
+* `%S`: Second of the minute (00..60)
+* `%t`: Tab character (	)
+* `%T`: Time, 24-hour (%H:%M:%S)
+* `%u`: Day of the week as a decimal, Monday being 1. (1..7)
+* `%U`: Week number of the current year, starting with the first Sunday as the first day of the first week (00..53)
+* `%v`: VMS date (%e-%b-%Y)
+* `%V`: Week number of year according to ISO 8601 (01..53)
+* `%W`: Week number of the current year, starting with the first Monday as the first day of the first week (00..53)
+* `%w`: Day of the week (Sunday is 0, 0..6)
+* `%x`: Preferred representation for the date alone, no time
+* `%X`: Preferred representation for the time alone, no date
+* `%y`: Year without a century (00..99)
+* `%Y`: Year with century
+* `%z`: Time zone as hour offset from UTC (e.g. +0900)
+* `%Z`: Time zone name
+* `%%`: Literal '%' character
+
+#### `strip`
+
+Removes leading and trailing whitespace from a string or from every string inside an array. For example, `strip("    aaa   ")` results in "aaa".
+
+*Type*: rvalue.
+
+#### `suffix`
+
+Applies a suffix to all elements in an array or to all keys in a hash.
+
+For example:
+
+* `suffix(['a','b','c'], 'p')` returns ['ap','bp','cp'].
+* `suffix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'ap'=>'b','bp'=>'c','cp'=>'d'}.
+
+*Type*: rvalue.
+
+#### `swapcase`
+
+Swaps the existing case of a string. For example, `swapcase("aBcD")` results in "AbCd".
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `time`
+
+Returns the current Unix epoch time as an integer.
+
+For example, `time()` returns something like '1311972653'.
+
+*Type*: rvalue.
+
+#### `to_bytes`
+
+Converts the argument into bytes.
+
+For example, "4 kB" becomes "4096". 
+
+Arguments: A single string.
+
+*Type*: rvalue.
+
+#### `try_get_value`
+
+**DEPRECATED:** replaced by `dig()`.
+
+Retrieves a value within multiple layers of hashes and arrays.
+
+Arguments: 
+
+* A string containing a path, as the first argument. Provide this argument as a string of hash keys or array indexes starting with zero and separated by the path separator character (default "/"). This function goes through the structure by each path component and tries to return the value at the end of the path.
+
+* A default argument as a second argument. This argument is returned if the path is not correct, if no value was found, or if any other error has occurred.
+* The path separator character as a last argument.
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = try_get_value($data, 'a/b/2')
+# $value = 'b3'
+
+# with all possible options
+$value = try_get_value($data, 'a/b/2', 'not_found', '/')
+# $value = 'b3'
+
+# using the default value
+$value = try_get_value($data, 'a/b/c/d', 'not_found')
+# $value = 'not_found'
+
+# using custom separator
+$value = try_get_value($data, 'a|b', [], '|')
+# $value = ['b1','b2','b3']
+```
+
+1. **$data** The data structure we are working with.
+2. **'a/b/2'** The path string.
+3. **'not_found'** The default value. It will be returned if nothing is found.
+   (optional, defaults to *`undef`*)
+4. **'/'** The path separator character.
+   (optional, defaults to *'/'*)
+
+*Type*: rvalue.
+
+#### `type3x`
+
+**Deprecated**. This function will be removed in a future release.
+
+Returns a string description of the type of a given value. The type can be a string, array, hash, float, integer, or Boolean. For Puppet 4, use the new type system instead.
+
+Arguments:
+
+* string
+* array
+* hash
+* float
+* integer
+* Boolean
+
+*Type*: rvalue.
+
+#### `type_of`
+
+This function is provided for backwards compatibility, but the built-in [type() function](https://docs.puppet.com/puppet/latest/reference/function.html#type) provided by Puppet is preferred.
+
+Returns the literal type of a given value. Requires Puppet 4. Useful for comparison of types with `<=` such as in `if type_of($some_value) <= Array[String] { ... }` (which is equivalent to `if $some_value =~ Array[String] { ... }`).
+
+*Type*: rvalue.
+
+#### `union`
+
+Returns a union of two or more arrays, without duplicates.
+
+For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"].
+
+*Type*: rvalue.
+
+#### `unique`
+
+Removes duplicates from strings and arrays.
+
+For example, `unique("aabbcc")` returns 'abc', and `unique(["a","a","b","b","c","c"])` returns ["a","b","c"].
+
+*Type*: rvalue.
+
+#### `unix2dos`
+
+Returns the DOS version of a given string. Useful when using a File resource with a cross-platform template.
+
+*Type*: rvalue.
+
+```puppet
+file { $config_file:
+  ensure  => file,
+  content => unix2dos(template('my_module/settings.conf.erb')),
+}
+```
+
+See also [dos2unix](#dos2unix).
+
+#### `upcase`
+
+Converts an object, array, or hash of objects to uppercase. Objects to be converted must respond to upcase.
+
+For example, `upcase('abcd')` returns 'ABCD'.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `uriescape`
+
+URLEncodes a string or array of strings. 
+
+Arguments: Either a single string or an array of strings.
+
+*Type*: rvalue.
+
+*Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
+
+#### `validate_absolute_path`
+
+Validates that a given string represents an absolute path in the filesystem. Works for Windows and Unix style paths.
+
+The following values pass:
+
+```puppet
+$my_path = 'C:/Program Files (x86)/Puppet Labs/Puppet'
+validate_absolute_path($my_path)
+$my_path2 = '/var/lib/puppet'
+validate_absolute_path($my_path2)
+$my_path3 = ['C:/Program Files (x86)/Puppet Labs/Puppet','C:/Program Files/Puppet Labs/Puppet']
+validate_absolute_path($my_path3)
+$my_path4 = ['/var/lib/puppet','/usr/share/puppet']
+validate_absolute_path($my_path4)
+```
+
+The following values fail, causing compilation to terminate:
+
+```puppet
+validate_absolute_path(true)
+validate_absolute_path('../var/lib/puppet')
+validate_absolute_path('var/lib/puppet')
+validate_absolute_path([ 'var/lib/puppet', '/var/foo' ])
+validate_absolute_path([ '/var/lib/puppet', 'var/foo' ])
+$undefined = `undef`
+validate_absolute_path($undefined)
+```
+
+*Type*: statement.
+
+#### `validate_array`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that all passed values are array data structures. Terminates catalog compilation if any value fails this check.
+
+The following values pass:
+
+```puppet
+$my_array = [ 'one', 'two' ]
+validate_array($my_array)
+```
+
+The following values fail, causing compilation to terminate:
+
+```puppet
+validate_array(true)
+validate_array('some_string')
+$undefined = `undef`
+validate_array($undefined)
+```
+
+*Type*: statement.
+
+#### `validate_augeas`
+
+Validates a string using an Augeas lens.
+
+Arguments:
+
+* The string to test, as the first argument.
+* The name of the Augeas lens to use, as the second argument.
+* Optionally, a list of paths which should **not** be found in the file, as a third argument.
+* Optionally, an error message to raise and show to the user, as a fourth argument.
+
+If Augeas fails to parse the string with the lens, the compilation terminates with a parse error.
+
+The `$file` variable points to the location of the temporary file being tested in the Augeas tree.
+
+For example, to make sure your $passwdcontent never contains user `foo`, include the third argument:
+
+```puppet
+validate_augeas($passwdcontent, 'Passwd.lns', ['$file/foo'])
+```
+
+To raise and display an error message, include the fourth argument:
+
+```puppet
+validate_augeas($sudoerscontent, 'Sudoers.lns', [], 'Failed to validate sudoers content with Augeas')
+```
+
+*Type*: statement.
+
+#### `validate_bool`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that all passed values are either `true` or `false`. 
+Terminates catalog compilation if any value fails this check.
+
+The following values pass:
+
+```puppet
+$iamtrue = true
+validate_bool(true)
+validate_bool(true, true, false, $iamtrue)
+```
+
+The following values fail, causing compilation to terminate:
+
+```puppet
+$some_array = [ true ]
+validate_bool("false")
+validate_bool("true")
+validate_bool($some_array)
+```
+
+*Type*: statement.
+
+#### `validate_cmd`
+
+Validates a string with an external command.
+
+Arguments:
+* The string to test, as the first argument.
+* The path to a test command, as the second argument. This argument takes a % as a placeholder for the file path (if no % placeholder is given, defaults to the end of the command). If the command is launched against a tempfile containing the passed string, or returns a non-null value, compilation will terminate with a parse error.
+* Optionally, an error message to raise and show to the user, as a third argument.
+
+```puppet
+# Defaults to end of path
+validate_cmd($sudoerscontent, '/usr/sbin/visudo -c -f', 'Visudo failed to validate sudoers content')
+```
+
+```puppet
+# % as file location
+validate_cmd($haproxycontent, '/usr/sbin/haproxy -f % -c', 'Haproxy failed to validate config content')
+```
+
+*Type*: statement.
+
+#### `validate_hash`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that all passed values are hash data structures. Terminates catalog compilation if any value fails this check.
+
+The following values will pass:
+
+```puppet
+$my_hash = { 'one' => 'two' }
+validate_hash($my_hash)
+```
+
+The following values will fail, causing compilation to terminate:
+
+```puppet
+validate_hash(true)
+validate_hash('some_string')
+$undefined = `undef`
+validate_hash($undefined)
+```
+
+*Type*: statement.
+
+#### `validate_integer`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates an integer or an array of integers. Terminates catalog compilation if any of the checks fail.
+
+Arguments:
+
+* An integer or an array of integers, as the first argument.
+* Optionally, a maximum, as the second argument. (All elements of) the first argument must be equal to or less than this maximum.
+* Optionally, a minimum, as the third argument. (All elements of) the first argument must be equal to or greater than than this maximum. 
+
+This function fails if the first argument is not an integer or array of integers, or if the second or third arguments are not convertable to an integer. However, if (and only if) a minimum is given, the second argument may be an empty string or `undef`, which serves as a placeholder to ensure the minimum check.
+
+The following values pass:
+
+```puppet
+validate_integer(1)
+validate_integer(1, 2)
+validate_integer(1, 1)
+validate_integer(1, 2, 0)
+validate_integer(2, 2, 2)
+validate_integer(2, '', 0)
+validate_integer(2, `undef`, 0)
+$foo = `undef`
+validate_integer(2, $foo, 0)
+validate_integer([1,2,3,4,5], 6)
+validate_integer([1,2,3,4,5], 6, 0)
+```
+
+* Plus all of the above, but any combination of values passed as strings ('1' or "1").
+* Plus all of the above, but with (correct) combinations of negative integer values.
+
+The following values fail, causing compilation to terminate:
+
+```puppet
+validate_integer(true)
+validate_integer(false)
+validate_integer(7.0)
+validate_integer({ 1 => 2 })
+$foo = `undef`
+validate_integer($foo)
+validate_integer($foobaridontexist)
+
+validate_integer(1, 0)
+validate_integer(1, true)
+validate_integer(1, '')
+validate_integer(1, `undef`)
+validate_integer(1, , 0)
+validate_integer(1, 2, 3)
+validate_integer(1, 3, 2)
+validate_integer(1, 3, true)
+```
+
+* Plus all of the above, but any combination of values passed as strings (`false` or "false").
+* Plus all of the above, but with incorrect combinations of negative integer values.
+* Plus all of the above, but with non-integer items in arrays or maximum / minimum argument.
+
+*Type*: statement.
+
+#### `validate_ip_address`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that the argument is an IP address, regardless of whether it is an IPv4 or an IPv6 address. It also validates IP address with netmask. 
+
+Arguments: A string specifying an IP address.
+
+The following values will pass:
+
+```puppet
+validate_ip_address('0.0.0.0')
+validate_ip_address('8.8.8.8')
+validate_ip_address('127.0.0.1')
+validate_ip_address('194.232.104.150')
+validate_ip_address('3ffe:0505:0002::')
+validate_ip_address('::1/64')
+validate_ip_address('fe80::a00:27ff:fe94:44d6/64')
+validate_ip_address('8.8.8.8/32')
+```
+
+The following values will fail, causing compilation to terminate:
+
+```puppet
+validate_ip_address(1)
+validate_ip_address(true)
+validate_ip_address(0.0.0.256)
+validate_ip_address('::1', {})
+validate_ip_address('0.0.0.0.0')
+validate_ip_address('3.3.3')
+validate_ip_address('23.43.9.22/64')
+validate_ip_address('260.2.32.43')
+```
+
+
+#### `validate_legacy`
+
+Validates a value against both a specified type and a deprecated validation function. Silently passes if both pass, errors if only one validation passes, and fails if both validations return false.
+
+Arguments:
+
+* The type to check the value against,
+* The full name of the previous validation function,
+* The value to be checked,
+* An unspecified number of arguments needed for the previous validation function.
+
+Example:
+
+```puppet
+validate_legacy("Optional[String]", "validate_re", "Value to be validated", ["."])
+```
+
+This function supports updating modules from Puppet 3-style argument validation (using the stdlib `validate_*` functions) to Puppet 4 data types, without breaking functionality for those depending on Puppet 3-style validation.
+
+> Note: This function is compatible only with Puppet 4.4.0 (PE 2016.1) and later.
+
+##### For module users
+
+If you are running Puppet 4, the `validate_legacy` function can help you find and resolve deprecated Puppet 3 `validate_*` functions. These functions are deprecated as of stdlib version 4.13 and will be removed in a future version of stdlib.
+
+Puppet 4 allows improved defined type checking using [data types](https://docs.puppet.com/puppet/latest/reference/lang_data.html). Data types avoid some of the problems with Puppet 3's `validate_*` functions, which were sometimes inconsistent. For example, [validate_numeric](#validate_numeric) unintentionally allowed not only numbers, but also arrays of numbers or strings that looked like numbers.
+
+If you run Puppet 4 and use modules with deprecated `validate_*` functions, you might encounter deprecation messages. The `validate_legacy` function makes these differences visible and makes it easier to move to the clearer Puppet 4 syntax.
+
+The deprecation messages you get can vary, depending on the modules and data that you use. These deprecation messages appear by default only in Puppet 4:
+
+* `Notice: Accepting previously invalid value for target type '<type>'`: This message is informational only. You're using values that are allowed by the new type, but would have been invalid by the old validation function.
+* `Warning: This method is deprecated, please use the stdlib validate_legacy function`: The module has not yet upgraded to `validate_legacy`. Use the [deprecation](#deprecation) options to silence warnings for now, or submit a fix with the module's developer. See the information [for module developers](#for-module-developers) below for how to fix the issue.
+* `Warning: validate_legacy(<function>) expected <type> value, got <actual type>_`: Your code passes a value that was accepted by the Puppet 3-style validation, but will not be accepted by the next version of the module. Most often, you can fix this by removing quotes from numbers or booleans.
+* `Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, validate_legacy(<function>) expected <type> value, got <actual type>`: Your code passes a value that is not acceptable to either the new or the old style validation.
+
+##### For module developers
+
+The `validate_legacy` function helps you move from Puppet 3 style validation to Puppet 4 validation without breaking functionality your module's users depend on.
+
+Moving to Puppet 4 type validation allows much better defined type checking using [data types](https://docs.puppet.com/puppet/latest/reference/lang_data.html). Many of Puppet 3's `validate_*` functions have surprising holes in their validation. For example, [validate_numeric](#validate_numeric) allows not only numbers, but also arrays of numbers or strings that look like numbers, without giving you any control over the specifics. 
+
+For each parameter of your classes and defined types, choose a new Puppet 4 data type to use. In most cases, the new data type allows a different set of values than the original `validate_*` function. The situation then looks like this:
+
+|              | `validate_` pass | `validate_` fail |
+| ------------ | ---------------- | ---------------- |
+| matches type | pass             | pass, notice     |
+| fails type   | pass, deprecated | fail             |
+
+The code after the validation still has to handle all possible values for now, but users of your code can change their manifests to pass only values that match the new type.
+
+For each `validate_*` function in stdlib, there is a matching `Stdlib::Compat::*` type that allows the appropriate set of values. See the documentation in the `types/` directory in the stdlib source code for caveats.
+
+For example, given a class that should accept only numbers, like this:
+
+```puppet
+class example($value) {
+  validate_numeric($value)
+```
+
+the resulting validation code looks like this:
+
+```puppet
+class example(
+  Variant[Stdlib::Compat::Numeric, Numeric] $value
+) {
+  validate_legacy(Numeric, 'validate_numeric', $value)
+```
+
+Here, the type of `$value` is defined as `Variant[Stdlib::Compat::Numeric, Numeric]`, which allows any `Numeric` (the new type), as well as all values previously accepted by `validate_numeric` (through `Stdlib::Compat::Numeric`).
+
+The call to `validate_legacy` takes care of triggering the correct log or fail message for you. It requires the new type, the previous validation function name, and all arguments to that function.
+
+If your module still supported Puppet 3, this is a breaking change. Update your `metadata.json` requirements section to indicate that your module no longer supports Puppet 3, and bump the major version of your module. With this change, all existing tests for your module should still pass. Create additional tests for the new possible values.
+
+As a breaking change, this is also a good time to call [`deprecation`](#deprecation) for any parameters you want to get rid of, or to add additional constraints on your parameters.
+
+After releasing this version, you can release another breaking change release where you remove all compat types and all calls to `validate_legacy`. At that time, you can also go through your code and remove any leftovers dealing with the previously possible values.
+
+Always note such changes in your CHANGELOG and README.
+
+#### `validate_numeric`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates a numeric value, or an array or string of numeric values. Terminates catalog compilation if any of the checks fail.
+
+Arguments:
+
+* A numeric value, or an array or string of numeric values.
+* Optionally, a maximum value. (All elements of) the first argument has to be less or equal to this max.
+* Optionally, a minimum value. (All elements of) the first argument has to be greater or equal to this min.
+
+This function fails if the first argument is not a numeric (Integer or Float) or an array or string of numerics, or if the second and third arguments are not convertable to a numeric. If, and only if, a minimum is given, the second argument can be an empty string or `undef`, which serves as a placeholder to ensure the minimum check.
+
+For passing and failing usage, see [`validate_integer`](#validate-integer). The same values pass and fail, except that `validate_numeric` also allows floating point values.
+
+*Type*: statement.
+
+#### `validate_re`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Performs simple validation of a string against one or more regular expressions.
+
+Arguments:
+
+* The string to test, as the first argument. If this argument is not a string, compilation terminates. Use quotes to force stringification.
+* A stringified regular expression (without the // delimiters) or an array of regular expressions, as the second argument.
+* Optionally, the error message raised and shown to the user, as a third argument.
+
+If none of the regular expressions in the second argument match the string passed in the first argument, compilation terminates with a parse error.
+
+The following strings validate against the regular expressions:
+
+```puppet
+validate_re('one', '^one$')
+validate_re('one', [ '^one', '^two' ])
+```
+
+The following string fails to validate, causing compilation to terminate:
+
+```puppet
+validate_re('one', [ '^two', '^three' ])
+```
+
+To set the error message:
+
+```puppet
+validate_re($::puppetversion, '^2.7', 'The $puppetversion fact value does not match 2.7')
+```
+
+To force stringification, use quotes:
+
+  ```
+  validate_re("${::operatingsystemmajrelease}", '^[57]$')
+  ```
+
+*Type*: statement.
+
+#### `validate_slength`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that a string (or an array of strings) is less than or equal to a specified length
+
+Arguments:
+
+* A string or an array of strings, as a first argument.
+* A numeric value for maximum length, as a second argument.
+* Optionally, a numeric value for minimum length, as a third argument.
+
+  The following values pass:
+
+```puppet
+validate_slength("discombobulate",17)
+validate_slength(["discombobulate","moo"],17)
+validate_slength(["discombobulate","moo"],17,3)
+```
+
+The following values fail:
+
+```puppet
+validate_slength("discombobulate",1)
+validate_slength(["discombobulate","thermometer"],5)
+validate_slength(["discombobulate","moo"],17,10)
+```
+
+*Type*: statement.
+
+#### `validate_string`
+
+**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
+
+Validates that all passed values are string data structures. Aborts catalog compilation if any value fails this check.
+
+The following values pass:
+
+```puppet
+$my_string = "one two"
+validate_string($my_string, 'three')
+```
+
+The following values fail, causing compilation to terminate:
+
+```puppet
+validate_string(true)
+validate_string([ 'some', 'array' ])
+```
+
+*Note:* validate_string(`undef`) will not fail in this version of the functions API.
+
+Instead, use:
+
+  ```
+  if $var == `undef` {
+    fail('...')
+  }
+  ```
+
+*Type*: statement.
+
+#### `validate_x509_rsa_key_pair`
+
+Validates a PEM-formatted X.509 certificate and private key using OpenSSL.
+Verifies that the certificate's signature was created from the supplied key.
+
+Fails catalog compilation if any value fails this check.
+
+Arguments:
+
+* An X.509 certificate as the first argument.
+* An RSA private key, as the second argument.
+
+```puppet
+validate_x509_rsa_key_pair($cert, $key)
+```
+
+*Type*: statement.
+
+#### `values`
+
+Returns the values of a given hash.
+
+For example, given `$hash = {'a'=1, 'b'=2, 'c'=3} values($hash)` returns [1,2,3].
+
+*Type*: rvalue.
+
+#### `values_at`
+
+Finds values inside an array based on location.
+
+Arguments:
+
+* The array you want to analyze, as the first argument.
+* Any combination of the following values, as the second argument:
+  * A single numeric index
+  * A range in the form of 'start-stop' (eg. 4-9)
+  * An array combining the above
+
+For example:
+
+* `values_at(['a','b','c'], 2)` returns ['c'].
+* `values_at(['a','b','c'], ["0-1"])` returns ['a','b'].
+* `values_at(['a','b','c','d','e'], [0, "2-3"])` returns ['a','c','d'].
+
+*Type*: rvalue.
+
+#### `zip`
+
+Takes one element from first array given and merges corresponding elements from second array given. This generates a sequence of n-element arrays, where *n* is one more than the count of arguments. For example, `zip(['1','2','3'],['4','5','6'])` results in ["1", "4"], ["2", "5"], ["3", "6"]. *Type*: rvalue.
+
+## Limitations
+
+As of Puppet Enterprise 3.7, the stdlib module is no longer included in PE. PE users should install the most recent release of stdlib for compatibility with Puppet modules.
+
+### Version Compatibility
+
+Versions | Puppet 2.6 | Puppet 2.7 | Puppet 3.x | Puppet 4.x |
+:---------------|:-----:|:---:|:---:|:----:
+**stdlib 2.x**  | **yes** | **yes** | no | no
+**stdlib 3.x**  | no    | **yes**  | **yes** | no
+**stdlib 4.x**  | no    | **yes**  | **yes** | no
+**stdlib 4.6+**  | no    | **yes**  | **yes** | **yes**
+**stdlib 5.x**  | no    | no  | **yes**  | **yes**
+
+**stdlib 5.x**: When released, stdlib 5.x will drop support for Puppet 2.7.x. Please see [this discussion](https://github.com/puppetlabs/puppetlabs-stdlib/pull/176#issuecomment-30251414).
+
+## Development
+
+Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve. We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. For more information, see our [module contribution guide](https://docs.puppetlabs.com/forge/contributing.html).
+
+To report or research a bug with any part of this module, please go to
+[http://tickets.puppetlabs.com/browse/MODULES](http://tickets.puppetlabs.com/browse/MODULES).
+
+## Contributors
+
+The list of contributors can be found at: [https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors](https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors).
Index: src/puppetcode/environments/gnuboat/modules/stdlib/Rakefile
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/Rakefile	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/Rakefile	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,13 +1,8 @@
-require 'puppet_blacksmith/rake_tasks'
+require 'puppetlabs_spec_helper/rake_tasks'
 require 'puppet-lint/tasks/puppet-lint'
-require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
 
 PuppetLint.configuration.fail_on_warnings = true
 PuppetLint.configuration.send('relative')
-PuppetLint.configuration.send('disable_80chars')
-PuppetLint.configuration.send('disable_class_inherits_from_params_class')
-PuppetLint.configuration.send('disable_documentation')
-PuppetLint.configuration.send('disable_single_quote_string_with_variables')
-PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
 
 desc 'Generate pooler nodesets'
Index: src/puppetcode/environments/gnuboat/modules/stdlib/appveyor.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/appveyor.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/appveyor.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,40 @@
+version: 1.1.x.{build}
+skip_commits:
+  message: /^\(?doc\)?.*/
+clone_depth: 10
+init:
+- SET
+- 'mkdir C:\ProgramData\PuppetLabs\code && exit 0'
+- 'mkdir C:\ProgramData\PuppetLabs\facter && exit 0'
+- 'mkdir C:\ProgramData\PuppetLabs\hiera && exit 0'
+- 'mkdir C:\ProgramData\PuppetLabs\puppet\var && exit 0'
+environment:
+  matrix:
+  - PUPPET_GEM_VERSION: ~> 4.0
+    RUBY_VER: 21
+  - PUPPET_GEM_VERSION: ~> 4.0
+    RUBY_VER: 21-x64
+  - PUPPET_GEM_VERSION: ~> 4.0
+    RUBY_VER: 23
+  - PUPPET_GEM_VERSION: ~> 4.0
+    RUBY_VER: 23-x64
+  - PUPPET_GEM_VERSION: 4.2.3
+    RUBY_VER: 21-x64
+matrix:
+  fast_finish: true
+install:
+- SET PATH=C:\Ruby%RUBY_VER%\bin;%PATH%
+- bundle install --jobs 4 --retry 2 --without system_tests
+- type Gemfile.lock
+build: off
+test_script:
+- bundle exec puppet -V
+- ruby -v
+- bundle exec rake spec SPEC_OPTS='--format documentation'
+notifications:
+- provider: Email
+  to:
+  - nobody@nowhere.com
+  on_build_success: false
+  on_build_failure: false
+  on_build_status_changed: false
Index: src/puppetcode/environments/gnuboat/modules/stdlib/checksums.json
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/checksums.json	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/checksums.json	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,14 +1,16 @@
 {
-  "CHANGELOG.md": "62822f2fe9d7362a4b99156d01c846c4",
-  "CONTRIBUTING.md": "ad65d271f183b5adb9fdd58207939f5f",
-  "Gemfile": "a5493d10f1c1fec87972b13a9fe1afcf",
+  "CHANGELOG.md": "b6fa51fd30594614b963fb98a6a0fffb",
+  "CONTRIBUTING.md": "77d0440d7cd4206497f99065c60bed46",
+  "Gemfile": "bedf635025b279d7c7732adcc8ae9a29",
   "LICENSE": "3b83ef96387f14655fc854ddc3c6bd57",
+  "MAINTAINERS.md": "b40ec4f2c16145af6f723c2c34bb2ff9",
   "NOTICE": "b2e552587e5969886fdd60481e8b0351",
-  "README.markdown": "9ff8d7869c0139409311df63f3bb0361",
+  "README.md": "ac4c03f7f00304de7ed5a9eb9c6b84b7",
   "README_DEVELOPER.markdown": "220a8b28521b5c5d2ea87c4ddb511165",
   "README_SPECS.markdown": "82bb4c6abbb711f40778b162ec0070c1",
   "RELEASE_PROCESS.markdown": "94b92bc99ac4106ba1a74d5c04e520f9",
-  "Rakefile": "ab91824042ec3fd085a41cab7e0e90d4",
-  "examples/file_line.pp": "48f7f162127beffea8f8e3e58db2355a",
+  "Rakefile": "3851f083966b9bbd6d46e50dba5aa52a",
+  "appveyor.yml": "7e0ff52cc2abe3fa4f2d8d978bf18ad7",
+  "examples/file_line.pp": "d8126b139dd1dce21ff26910d1c5a245",
   "examples/has_interface_with.pp": "d69d520cf3ff4d0b495480afaca359ef",
   "examples/has_ip_address.pp": "32f42575e49aa66f0f2398a70ae2a9f4",
@@ -18,266 +20,333 @@
   "lib/facter/package_provider.rb": "539766a71dfb2f65e94a7c91bf413fcf",
   "lib/facter/pe_version.rb": "60d47406026c8201e51394227ddf780d",
-  "lib/facter/puppet_vardir.rb": "c7ddc97e8a84ded3dd93baa5b9b3283d",
+  "lib/facter/puppet_settings.rb": "9438c0839ae28dc52fffb8348ae5124f",
   "lib/facter/root_home.rb": "35702ae0c7410ec4d2101113e2f697fa",
   "lib/facter/service_provider.rb": "66cc42526eae631e306b397391f1f01c",
   "lib/facter/util/puppet_settings.rb": "9f1d2593d0ae56bfca89d4b9266aeee1",
+  "lib/puppet/functions/deprecation.rb": "59b803eaa15b5a559040497bffc172ae",
   "lib/puppet/functions/is_a.rb": "9dad7f8c9b75348cd97aca986ac0b29a",
-  "lib/puppet/functions/type_of.rb": "71e19f89e167c45ec691ea6c7d319625",
-  "lib/puppet/parser/functions/abs.rb": "32161bd0435fdfc2aec2fc559d2b454b",
+  "lib/puppet/functions/is_absolute_path.rb": "96b217f26d06dbac87a2c6a8cfd2d8c8",
+  "lib/puppet/functions/is_array.rb": "9292a646010d167417a1936b0b0c17b9",
+  "lib/puppet/functions/is_bool.rb": "73957f9efd75ed8a7ab867f9de6da117",
+  "lib/puppet/functions/is_float.rb": "af3bd6bb56878bac8cc4fe4f7564e4f9",
+  "lib/puppet/functions/is_ip_address.rb": "ee231c66c3e039778bf46702d89815a6",
+  "lib/puppet/functions/is_ipv4_address.rb": "900d33249906c4daa02aa79cac896548",
+  "lib/puppet/functions/is_ipv6_address.rb": "568fba9af6a83c8b536fafcda82eb448",
+  "lib/puppet/functions/is_numeric.rb": "33051800b886cc3b2119826b77c9821a",
+  "lib/puppet/functions/is_string.rb": "230e9eabc5c9e1d8d5fb7b3c6c12b300",
+  "lib/puppet/functions/length.rb": "03cf801867a919f801d290424fd2bb8d",
+  "lib/puppet/functions/type_of.rb": "bec00841aae556993c926ab298bc81cd",
+  "lib/puppet/functions/validate_absolute_path.rb": "54a610baa115c7505f1b35976b632a8e",
+  "lib/puppet/functions/validate_array.rb": "9052b0026da174636c276a2512cf5acc",
+  "lib/puppet/functions/validate_bool.rb": "fe979e402a5a3a19d013ce84b39ef06a",
+  "lib/puppet/functions/validate_hash.rb": "92ea8fc21bbbf6cc41f6bb9cfcaefce7",
+  "lib/puppet/functions/validate_integer.rb": "b0982b68a599262da2c6f2e032bc7713",
+  "lib/puppet/functions/validate_ip_address.rb": "65a12af9a2c2a9c70d820d04d19ec891",
+  "lib/puppet/functions/validate_ipv4_address.rb": "4a5039b99ac97cc0447faa343b9f7416",
+  "lib/puppet/functions/validate_ipv6_address.rb": "fbdf685432416505fed27d5647c26f9c",
+  "lib/puppet/functions/validate_legacy.rb": "d9f115f30c511cef536a821b94826094",
+  "lib/puppet/functions/validate_numeric.rb": "41b2cc7335395f617c2bfbeac8f579da",
+  "lib/puppet/functions/validate_re.rb": "42092f592ebf89b8a504b10c900230d8",
+  "lib/puppet/functions/validate_slength.rb": "3ae6fcc3f60032c923d06ab3e457b84e",
+  "lib/puppet/functions/validate_string.rb": "cc967a9d0ea156b2208d1760d7f6e1b2",
+  "lib/puppet/parser/functions/abs.rb": "a8e46ecf4fb378d314916599651cebe5",
   "lib/puppet/parser/functions/any2array.rb": "a81e71d6b67a551d38770ba9a1948a75",
-  "lib/puppet/parser/functions/assert_private.rb": "1365284f9e474ecec24cfe43ee8e7cf4",
-  "lib/puppet/parser/functions/base64.rb": "ac8d0565df2931470447effa502c9ad3",
+  "lib/puppet/parser/functions/any2bool.rb": "8bbb74cb81ebdb164e1965415364080b",
+  "lib/puppet/parser/functions/assert_private.rb": "cb9cd79ed4e3d647a48467dfb6237d5c",
+  "lib/puppet/parser/functions/base64.rb": "0d121a32fbfe25b06a4e91b0259af91d",
   "lib/puppet/parser/functions/basename.rb": "c61952b3f68fd86408c84fca2c3febb1",
-  "lib/puppet/parser/functions/bool2num.rb": "f953f5fc094c2ae3908a72d8840ba291",
-  "lib/puppet/parser/functions/bool2str.rb": "6334ac6d24a8aa49a2243fb425f47311",
-  "lib/puppet/parser/functions/camelcase.rb": "71c67b71eac4b7f46a0dd22cb915d2e6",
-  "lib/puppet/parser/functions/capitalize.rb": "da131748a9d32da9eb0b6438e39377eb",
-  "lib/puppet/parser/functions/ceiling.rb": "dfa9b1c75ce89344026b3b5aed2d190f",
-  "lib/puppet/parser/functions/chomp.rb": "2b7dc42f9967edd34cfa0ba9a97229ca",
-  "lib/puppet/parser/functions/chop.rb": "0ec76f54afd94201f35785dfeb2092b5",
-  "lib/puppet/parser/functions/clamp.rb": "d19b8dfc573ed2eff7e3536ae1e5d596",
-  "lib/puppet/parser/functions/concat.rb": "a1b0233e58f1f8095a74fe9300c74a9b",
+  "lib/puppet/parser/functions/bool2num.rb": "01b070b02611fda7e1491de0a8cd89fc",
+  "lib/puppet/parser/functions/bool2str.rb": "c00885242abf381ba482644ded70b688",
+  "lib/puppet/parser/functions/camelcase.rb": "bd5da699dfe1ec27ffe91b06187c5900",
+  "lib/puppet/parser/functions/capitalize.rb": "c94c50b0f147a22861c3b93c724e4343",
+  "lib/puppet/parser/functions/ceiling.rb": "7de4a96c8bb645fd5ce5c38438667228",
+  "lib/puppet/parser/functions/chomp.rb": "35a16c85bc59dc285baae631da1ae771",
+  "lib/puppet/parser/functions/chop.rb": "3beb80906fa3c759945a2664fe510b20",
+  "lib/puppet/parser/functions/clamp.rb": "6920e6c11b575fc65dadb21220c01a7a",
+  "lib/puppet/parser/functions/concat.rb": "d10e5428917895d4bb90c638b148b7fa",
   "lib/puppet/parser/functions/convert_base.rb": "c3b3e59a49318af98dcb88aed7156629",
-  "lib/puppet/parser/functions/count.rb": "9eb74eccd93e2b3c87fd5ea14e329eba",
+  "lib/puppet/parser/functions/count.rb": "325bbd89a29e6ed0f31e0462d0a0d301",
   "lib/puppet/parser/functions/deep_merge.rb": "d83696855578fb81b64b9e92b9c7cc7c",
-  "lib/puppet/parser/functions/defined_with_params.rb": "ffab4433d03f32b551f2ea024a2948fc",
-  "lib/puppet/parser/functions/delete.rb": "cec92c5de6d748c8dc93ca7d25ac1c68",
-  "lib/puppet/parser/functions/delete_at.rb": "6bc24b79390d463d8be95396c963381a",
-  "lib/puppet/parser/functions/delete_undef_values.rb": "b32d4a3925753b2eb2c318cbd7f14404",
-  "lib/puppet/parser/functions/delete_values.rb": "39b147f7d369bb5f809044b6341954a2",
-  "lib/puppet/parser/functions/difference.rb": "e31b95fbaf974cf853a510177368bfb9",
-  "lib/puppet/parser/functions/dig.rb": "54a993e69c2673d999876cb3349984b7",
+  "lib/puppet/parser/functions/defined_with_params.rb": "2d964410afbee415446c94d9692a2112",
+  "lib/puppet/parser/functions/delete.rb": "7af1540fee4285d93b6b28fb490db70a",
+  "lib/puppet/parser/functions/delete_at.rb": "a2cba60ac86a676d4ed1ff846a917014",
+  "lib/puppet/parser/functions/delete_regex.rb": "91cd012ef5a636ffe541814ed232b909",
+  "lib/puppet/parser/functions/delete_undef_values.rb": "52beef9ee37f84ed2278a69ec4383125",
+  "lib/puppet/parser/functions/delete_values.rb": "b410f5618b4a6158a921acb7b2dc628d",
+  "lib/puppet/parser/functions/deprecation.rb": "4323210434d36e37977251f906a232b8",
+  "lib/puppet/parser/functions/difference.rb": "467e44aeaebd0ee0a51c8b89e3769f1f",
+  "lib/puppet/parser/functions/dig.rb": "1a2a8918f646c13dcb9876a22f9295ab",
+  "lib/puppet/parser/functions/dig44.rb": "3078b97ee941c261944857373d400ed6",
   "lib/puppet/parser/functions/dirname.rb": "8a5579f9a9a13fd737ba65eccf8e6d5a",
   "lib/puppet/parser/functions/dos2unix.rb": "be8359a5106a7832be4180e8207dd586",
-  "lib/puppet/parser/functions/downcase.rb": "73121616d73339cf8dd10e0de61a6c50",
-  "lib/puppet/parser/functions/empty.rb": "b4ad0c3c00cbc56f745fbc05af1efa00",
-  "lib/puppet/parser/functions/enclose_ipv6.rb": "581bc163291824909d1700909db96512",
-  "lib/puppet/parser/functions/ensure_packages.rb": "81a8edbd7b6f85fc90e458568184c356",
+  "lib/puppet/parser/functions/downcase.rb": "02376505a00accd0ce6b148f869c9c86",
+  "lib/puppet/parser/functions/empty.rb": "6d7d2dde2971f6a40fa913f0af1c610c",
+  "lib/puppet/parser/functions/enclose_ipv6.rb": "ec39936a9a51dc5cb8ada6eeb829b239",
+  "lib/puppet/parser/functions/ensure_packages.rb": "362fac217452d0eee783be7c7ab3a569",
   "lib/puppet/parser/functions/ensure_resource.rb": "de703fe63392b939fc2b4392975263de",
-  "lib/puppet/parser/functions/ensure_resources.rb": "e9543e167972dd6a9a88aa5e02a9b4a5",
-  "lib/puppet/parser/functions/flatten.rb": "25777b76f9719162a8bab640e5595b7a",
-  "lib/puppet/parser/functions/floor.rb": "42cad4c689231a51526c55a6f0985d1f",
+  "lib/puppet/parser/functions/ensure_resources.rb": "c92d8b69d6354eda24aa3a13d88177b2",
+  "lib/puppet/parser/functions/flatten.rb": "6a27f5b922a24fec6e823f6f51c98090",
+  "lib/puppet/parser/functions/floor.rb": "07ba3b1662a14c60fe908b51231355ee",
   "lib/puppet/parser/functions/fqdn_rand_string.rb": "9ac5f18e563094aee62ef7586267025d",
-  "lib/puppet/parser/functions/fqdn_rotate.rb": "770d510a2e50d19b2dd42b6edef3fb1f",
+  "lib/puppet/parser/functions/fqdn_rotate.rb": "2483d17df4e6cb25d92b4e8520f30957",
+  "lib/puppet/parser/functions/fqdn_uuid.rb": "d357e8837ba2ed8196e926f3697be521",
   "lib/puppet/parser/functions/get_module_path.rb": "d4bf50da25c0b98d26b75354fa1bcc45",
-  "lib/puppet/parser/functions/getparam.rb": "4dd7a0e35f4a3780dcfc9b19b4e0006e",
-  "lib/puppet/parser/functions/getvar.rb": "344f1ce85dcb7512d37e8702ccbabb66",
-  "lib/puppet/parser/functions/grep.rb": "5682995af458b05f3b53dd794c4bf896",
-  "lib/puppet/parser/functions/has_interface_with.rb": "e135f09dbecc038c3aa9ae03127617ef",
-  "lib/puppet/parser/functions/has_ip_address.rb": "ee207f47906455a5aa49c4fb219dd325",
-  "lib/puppet/parser/functions/has_ip_network.rb": "b4d726c8b2a0afac81ced8a3a28aa731",
+  "lib/puppet/parser/functions/getparam.rb": "440a9c381b9ad589504e2e9919e83c06",
+  "lib/puppet/parser/functions/getvar.rb": "0c8c5cef7e158e232a8cf6e42c10d0ff",
+  "lib/puppet/parser/functions/glob.rb": "c4106d2aff24f4b5a32b54bf4cd452a2",
+  "lib/puppet/parser/functions/grep.rb": "c2f2dbdf79d16584579c3a7bc7b5902f",
+  "lib/puppet/parser/functions/has_interface_with.rb": "db65f5aac94e8fe105c7ca0cd1f66403",
+  "lib/puppet/parser/functions/has_ip_address.rb": "6ce9e6cdfb499b6ce86bf531848a18be",
+  "lib/puppet/parser/functions/has_ip_network.rb": "3cc7b923fd3cde5062ed9d0eaaa8155f",
   "lib/puppet/parser/functions/has_key.rb": "7cd9728c38f0b0065f832dabd62b0e7e",
-  "lib/puppet/parser/functions/hash.rb": "784f8d2d114eb4c9414ebd8a6868f82f",
-  "lib/puppet/parser/functions/intersection.rb": "c8f4f8b861c9c297c87b08bdbfb94caa",
-  "lib/puppet/parser/functions/is_absolute_path.rb": "94ea1869c438d23f7f659c87ced8080a",
-  "lib/puppet/parser/functions/is_array.rb": "875ca4356cb0d7a10606fb146b4a3d11",
-  "lib/puppet/parser/functions/is_bool.rb": "e693b7c4b5366cff1380b6e0c7dd7b11",
-  "lib/puppet/parser/functions/is_domain_name.rb": "6ca1f2708add756a6803b29d593d5830",
-  "lib/puppet/parser/functions/is_email_address.rb": "82573a431edf5a0bf9847393af27566a",
-  "lib/puppet/parser/functions/is_float.rb": "10e0d3ecf75fac15e415aee79acf70dc",
-  "lib/puppet/parser/functions/is_function_available.rb": "628428bbcd9313ce09783d9484330e09",
-  "lib/puppet/parser/functions/is_hash.rb": "8c7d9a05084dab0389d1b779c8a05b1a",
-  "lib/puppet/parser/functions/is_integer.rb": "c665be82686aa4729959bb42c66a7510",
-  "lib/puppet/parser/functions/is_ip_address.rb": "a714a736c1560e8739aaacd9030cca00",
-  "lib/puppet/parser/functions/is_ipv4_address.rb": "3df98fc55d9d59e0706ff83f607bb2a8",
-  "lib/puppet/parser/functions/is_ipv6_address.rb": "16e88af742f8ac93f1e8bb562eebc593",
-  "lib/puppet/parser/functions/is_mac_address.rb": "6dd3c96437d49e68630869b0b464e7f2",
-  "lib/puppet/parser/functions/is_numeric.rb": "93ddc9d4c0834a5e5e0562d7b3cdce91",
-  "lib/puppet/parser/functions/is_string.rb": "2bd9a652bbb2668323eee6c57729ff64",
-  "lib/puppet/parser/functions/join.rb": "a285a05c015ae278608f6454aef211ea",
-  "lib/puppet/parser/functions/join_keys_to_values.rb": "f29da49531228f6ca5b3aa0df00a14c2",
-  "lib/puppet/parser/functions/keys.rb": "eb6ac815ea14fbf423580ed903ef7bad",
+  "lib/puppet/parser/functions/hash.rb": "c1ebb21cc5b984153a87c252a9854db2",
+  "lib/puppet/parser/functions/intersection.rb": "87469eb81ab00bbacfd744165beeaeec",
+  "lib/puppet/parser/functions/is_absolute_path.rb": "1ce9a6d1cd0a79087d73cb879ed04542",
+  "lib/puppet/parser/functions/is_array.rb": "bbce6768b688bc0f36978ecb0f60f7f4",
+  "lib/puppet/parser/functions/is_bool.rb": "b8800ff7a11b4e8c03616041e218225f",
+  "lib/puppet/parser/functions/is_domain_name.rb": "5c6106c070945a605c5adbd1852f0691",
+  "lib/puppet/parser/functions/is_email_address.rb": "1eb786779743e93a7bb9fe8087b38b8d",
+  "lib/puppet/parser/functions/is_float.rb": "6257620b98c5099293be7aa4088b88ce",
+  "lib/puppet/parser/functions/is_function_available.rb": "f13934d6b41561ef54d88cf0da86231b",
+  "lib/puppet/parser/functions/is_hash.rb": "6f1ccf659c41cb5dab4db9fa89f0b364",
+  "lib/puppet/parser/functions/is_integer.rb": "a4ae475a5a799c0cc46519e86aed2973",
+  "lib/puppet/parser/functions/is_ip_address.rb": "2eabe60c213df2e642a03ebfd4852497",
+  "lib/puppet/parser/functions/is_ipv4_address.rb": "ab854b47367921f657410fbe79054f0b",
+  "lib/puppet/parser/functions/is_ipv6_address.rb": "2a2be7adbdd5ca23c3e21f00d7d8bac7",
+  "lib/puppet/parser/functions/is_mac_address.rb": "1af27510d3b9b936384192a4e1dfbf8c",
+  "lib/puppet/parser/functions/is_numeric.rb": "bfd99f39e2506953ad00178db6fa07ea",
+  "lib/puppet/parser/functions/is_string.rb": "c1405dd293e9e3c738b83c4ef5aab1ef",
+  "lib/puppet/parser/functions/join.rb": "2ed4f56d296a4535da142e01b11a126d",
+  "lib/puppet/parser/functions/join_keys_to_values.rb": "71ad24ac1809739713c461141aedd082",
+  "lib/puppet/parser/functions/keys.rb": "c10485a3d6c53b6d57a891b9852898de",
   "lib/puppet/parser/functions/load_module_metadata.rb": "805c5476a6e7083d133e167129885924",
-  "lib/puppet/parser/functions/loadyaml.rb": "6da5dc9256c9e7a6549bb15c72cb9f9d",
-  "lib/puppet/parser/functions/lstrip.rb": "20a9b1fa077c16f34e0ef5448b895698",
-  "lib/puppet/parser/functions/max.rb": "f652fd0b46ef7d2fbdb42b141f8fdd1d",
-  "lib/puppet/parser/functions/member.rb": "2b5d7fb8f87f1c7d195933c57ca32e91",
+  "lib/puppet/parser/functions/loadjson.rb": "ffecf61ba2ec8011915d37009b1a273e",
+  "lib/puppet/parser/functions/loadyaml.rb": "668265f14327cba1d1400f2078b7b26b",
+  "lib/puppet/parser/functions/lstrip.rb": "e9cbd5c2233233940e7344478362fb9f",
+  "lib/puppet/parser/functions/max.rb": "529eb6ac3d88c03caa788167594bd487",
+  "lib/puppet/parser/functions/member.rb": "03d618926bbb9efd117950e6078c3878",
   "lib/puppet/parser/functions/merge.rb": "f3dcc5c83440cdda2036cce69b61a14b",
-  "lib/puppet/parser/functions/min.rb": "0d2a1b7e735ab251c5469e735fa3f4c6",
-  "lib/puppet/parser/functions/num2bool.rb": "605c12fa518c87ed2c66ae153e0686ce",
+  "lib/puppet/parser/functions/min.rb": "8d829c8a55c9330ab02f962926221d4f",
+  "lib/puppet/parser/functions/num2bool.rb": "ddb603cf74f92e16a00f1447a4403429",
   "lib/puppet/parser/functions/parsejson.rb": "15165fd3807d9f3d657697fa854d643d",
   "lib/puppet/parser/functions/parseyaml.rb": "db54578d9d798ced75952217cf11b737",
   "lib/puppet/parser/functions/pick.rb": "bf01f13bbfe2318e7f6a302ac7c4433f",
   "lib/puppet/parser/functions/pick_default.rb": "ad3ea60262de408767786d37a54d45dc",
-  "lib/puppet/parser/functions/prefix.rb": "e377fd64bd63dde6c9660aa75aca4942",
+  "lib/puppet/parser/functions/prefix.rb": "ece9341c5b232a25c58545718a54e92f",
   "lib/puppet/parser/functions/private.rb": "1500a21d5cf19961c5b1d476df892d92",
-  "lib/puppet/parser/functions/pw_hash.rb": "d82221f667050026cd6d155432a31802",
-  "lib/puppet/parser/functions/range.rb": "76f693d1dd50ffee409e58ff6d9a58bb",
+  "lib/puppet/parser/functions/pry.rb": "79a48e45196e4bbf0a3e658781513cf4",
+  "lib/puppet/parser/functions/pw_hash.rb": "3d540eb4c483cc9c111794ac2d24a4a7",
+  "lib/puppet/parser/functions/range.rb": "ab19430b6b9737cf56263eb65d80cba1",
+  "lib/puppet/parser/functions/regexpescape.rb": "6378fdd413237a37c322859877147a50",
   "lib/puppet/parser/functions/reject.rb": "689f6a7c961a55fe9dcd240921f4c7f9",
-  "lib/puppet/parser/functions/reverse.rb": "b234b54b8cd62b2d67ccd70489ffdccf",
-  "lib/puppet/parser/functions/rstrip.rb": "b4e4ada41f7c1d2fcad073ce6344980f",
+  "lib/puppet/parser/functions/reverse.rb": "209e7ef512963251571c515e2d0aee10",
+  "lib/puppet/parser/functions/rstrip.rb": "f3226709247741825f07d9ec20bd3887",
   "lib/puppet/parser/functions/seeded_rand.rb": "2ad22e7613d894ae779c0c5b0e65dade",
-  "lib/puppet/parser/functions/shuffle.rb": "d50f72b0aeb921e64d2482f62488e2f3",
-  "lib/puppet/parser/functions/size.rb": "ab3b5b8cf2369d76969a7cb2564e018f",
-  "lib/puppet/parser/functions/sort.rb": "504b033b438461ca4f9764feeb017833",
-  "lib/puppet/parser/functions/squeeze.rb": "541f85b4203b55c9931d3d6ecd5c75f8",
-  "lib/puppet/parser/functions/str2bool.rb": "e380cfbc3395404ac8232ff960b22bca",
-  "lib/puppet/parser/functions/str2saltedsha512.rb": "49afad7b386be38ce53deaefef326e85",
-  "lib/puppet/parser/functions/strftime.rb": "e02e01a598ca5d7d6eee0ba22440304a",
-  "lib/puppet/parser/functions/strip.rb": "85d70ab95492e3e4ca5f0b5ec3f284a9",
-  "lib/puppet/parser/functions/suffix.rb": "082519722ed6f237dd3a9a7e316ab2e4",
-  "lib/puppet/parser/functions/swapcase.rb": "b17a9f3cb0271451d309e4b4f52dd651",
-  "lib/puppet/parser/functions/time.rb": "8cb0b8320c60b4a21725634154a9f1db",
-  "lib/puppet/parser/functions/to_bytes.rb": "65437027687b6172173b3a211a799e37",
+  "lib/puppet/parser/functions/shell_escape.rb": "13662933244e1af42ddca71ced4ac9e5",
+  "lib/puppet/parser/functions/shell_join.rb": "b99a23d5e62e2e1b98accde5c22e45c9",
+  "lib/puppet/parser/functions/shell_split.rb": "5317d71f3a7e293624b57aaca23f57d5",
+  "lib/puppet/parser/functions/shuffle.rb": "6c0555524ebc9ed5dd8295b836fb7163",
+  "lib/puppet/parser/functions/size.rb": "c171d46b87e377ebcc710ad5a5925a2b",
+  "lib/puppet/parser/functions/sort.rb": "0b7d1411decc4a92450828809fad0779",
+  "lib/puppet/parser/functions/squeeze.rb": "403ea46228a8e45e89c91168ed301fb6",
+  "lib/puppet/parser/functions/str2bool.rb": "ff82f179970a9429614bd37fa7a1ae2a",
+  "lib/puppet/parser/functions/str2saltedsha512.rb": "457ab12e4329494ae6276cfa4f20eb23",
+  "lib/puppet/parser/functions/strftime.rb": "8f15e2e3732b6d1d357a1fa1826800d4",
+  "lib/puppet/parser/functions/strip.rb": "da0ce253cb63a4863f15f9d145217db5",
+  "lib/puppet/parser/functions/suffix.rb": "1ce493098f17ea47e9435f994adbc6cd",
+  "lib/puppet/parser/functions/swapcase.rb": "48cad9bf415b5d79584c8e17ab7a06cc",
+  "lib/puppet/parser/functions/time.rb": "cd96d1f039f8875af083091e3637190b",
+  "lib/puppet/parser/functions/to_bytes.rb": "45248fd0bba8cfb24eac830fc0add17a",
   "lib/puppet/parser/functions/try_get_value.rb": "09cd079ec5f0e5e2ac862c9ebe0f54fe",
   "lib/puppet/parser/functions/type.rb": "4709f7ab8a8aad62d77a3c5d91a3aa08",
-  "lib/puppet/parser/functions/type3x.rb": "f9bf4de8341afb0c677c26b40ec8a2b2",
-  "lib/puppet/parser/functions/union.rb": "3cf57ea53f2522f586264feb67293cd6",
-  "lib/puppet/parser/functions/unique.rb": "c1bb4a8aeebd09ba3e4c8bc3702cfd60",
+  "lib/puppet/parser/functions/type3x.rb": "5d0391205bd1cfe8de985a44e8c3e8a9",
+  "lib/puppet/parser/functions/union.rb": "c02fca3fe102875ba020072b7edee532",
+  "lib/puppet/parser/functions/unique.rb": "0f79a96896149f7034cd85e31eed1e54",
   "lib/puppet/parser/functions/unix2dos.rb": "b1f5087fcaca69d9395094204cce887a",
-  "lib/puppet/parser/functions/upcase.rb": "8decededec9eb33e58f961eb86f0888f",
-  "lib/puppet/parser/functions/uriescape.rb": "d912ba09ba3f58c70988e662e05ffbe8",
-  "lib/puppet/parser/functions/validate_absolute_path.rb": "51c81d562fcc6c2df49ce5cfefd721ff",
-  "lib/puppet/parser/functions/validate_array.rb": "72b29289b8af1cfc3662ef9be78911b8",
+  "lib/puppet/parser/functions/upcase.rb": "e875fc4f03adec1ff3b42d22f177441e",
+  "lib/puppet/parser/functions/uriescape.rb": "ba78def2cd0e60bdc4412df6c7b891ec",
+  "lib/puppet/parser/functions/validate_absolute_path.rb": "c4b12e101055380386a235cd2c92ad10",
+  "lib/puppet/parser/functions/validate_array.rb": "bee8327014714d4cd8dbb5c46611f594",
   "lib/puppet/parser/functions/validate_augeas.rb": "61e828e7759ba3e1e563e1fdd68aa80f",
-  "lib/puppet/parser/functions/validate_bool.rb": "a712634a000024398b3c6cd4ecc46463",
+  "lib/puppet/parser/functions/validate_bool.rb": "971700229c4b581f67f6fadc9019eb2c",
   "lib/puppet/parser/functions/validate_cmd.rb": "7df12370db442eddddcf4dd7a5364b5e",
-  "lib/puppet/parser/functions/validate_email_address.rb": "e74fe9695ae0219d95f1595978267e48",
-  "lib/puppet/parser/functions/validate_hash.rb": "e9cfaca68751524efe16ecf2f958a9a0",
-  "lib/puppet/parser/functions/validate_integer.rb": "438c7fdd25f7f6a208ac48c9b75a390f",
-  "lib/puppet/parser/functions/validate_ip_address.rb": "8d1f23b4fb623e9ce2a6bfa59c6c1266",
-  "lib/puppet/parser/functions/validate_ipv4_address.rb": "ea5a7e87f51fc5a961cdc7369b3c9d00",
-  "lib/puppet/parser/functions/validate_ipv6_address.rb": "4699238e4cad60e7e1428905523eaeb7",
-  "lib/puppet/parser/functions/validate_numeric.rb": "60b0c6d5b8b170ea77498a8580bd3158",
-  "lib/puppet/parser/functions/validate_re.rb": "53613813ba02914f2692f0edd7e12fab",
-  "lib/puppet/parser/functions/validate_slength.rb": "5f0db124caae4866f474a60c589ba632",
-  "lib/puppet/parser/functions/validate_string.rb": "cf6a20877a27b1073d63fdd522af50bb",
+  "lib/puppet/parser/functions/validate_email_address.rb": "a72656cbfeda622cdd5cfdafdf464095",
+  "lib/puppet/parser/functions/validate_hash.rb": "c2ae6299148ea200f8dfcf9204875182",
+  "lib/puppet/parser/functions/validate_integer.rb": "65aa35f7450794aaadb6ad2c2e114df7",
+  "lib/puppet/parser/functions/validate_ip_address.rb": "b23c3d5ce6839e32d0186411147a6a44",
+  "lib/puppet/parser/functions/validate_ipv4_address.rb": "593e8f832469cb6a48c5f16ee66c3b2d",
+  "lib/puppet/parser/functions/validate_ipv6_address.rb": "48d3733012818993eae662839183d139",
+  "lib/puppet/parser/functions/validate_numeric.rb": "0e36d370262b8bdef2f88f0a3cb5b30e",
+  "lib/puppet/parser/functions/validate_re.rb": "d5963c404e3ac1670553f306221c2655",
+  "lib/puppet/parser/functions/validate_slength.rb": "6cbcfe15378ca4a780bac786223aacac",
+  "lib/puppet/parser/functions/validate_string.rb": "8afa7b0dcfe17bfbbb5704ad54664cc2",
   "lib/puppet/parser/functions/validate_x509_rsa_key_pair.rb": "f17427dfc42128dc1df0ab04f37942e5",
-  "lib/puppet/parser/functions/values.rb": "066a6e4170e5034edb9a80463dff2bb5",
-  "lib/puppet/parser/functions/values_at.rb": "325a899e0201e8df5bd483fec6f12d76",
-  "lib/puppet/parser/functions/zip.rb": "a89d5e802bc1e63e52020c2ddbaaca2c",
-  "lib/puppet/provider/file_line/ruby.rb": "0b7ed2917e70902b5c40362370edcbb0",
+  "lib/puppet/parser/functions/values.rb": "c35978761496406cc3dafdccaa014236",
+  "lib/puppet/parser/functions/values_at.rb": "f7e6ad2a1126acd4fb5f7fcf9bfc2e2b",
+  "lib/puppet/parser/functions/zip.rb": "133f3d4c54640844e656e2e6e790318e",
+  "lib/puppet/provider/file_line/ruby.rb": "97dee0cadfaf112550e8424e143acc55",
   "lib/puppet/type/anchor.rb": "bbd36bb49c3b554f8602d8d3df366c0c",
-  "lib/puppet/type/file_line.rb": "21214f23b82b909dba6d7a57dd6464b6",
+  "lib/puppet/type/file_line.rb": "d65885f7f0afe49ee199d6bf873a5daf",
+  "locales/config.yaml": "574ee65e2a2a9d2f67edbc58735f50d4",
+  "locales/ja/puppetlabs-stdlib.po": "805e5d893d2025ad57da8ec0614a6753",
+  "locales/puppetlabs-stdlib.pot": "23c892ac0683aef4b09aabe0037750ae",
   "manifests/init.pp": "9560a09f657d7eebbfdb920cefcc1d4f",
   "manifests/stages.pp": "72eb4fa624474faf23b39e57cf1590bd",
-  "metadata.json": "cab692227f5bbcc300d1512b4c8600dd",
-  "spec/acceptance/abs_spec.rb": "538db8d037db814b455a6d741e91bb8d",
-  "spec/acceptance/anchor_spec.rb": "3a366ecab2fda6c20acd70eeb57c5080",
-  "spec/acceptance/any2array_spec.rb": "de86ead0205acbb3eca3a8a4792bdac8",
-  "spec/acceptance/base64_spec.rb": "1684d5dd176dd5bbd4c3c6b1e64fbcea",
-  "spec/acceptance/bool2num_spec.rb": "bf53ceac40d0a67551c618b11809f3f8",
+  "metadata.json": "72d1000d449f8b37a4da8167a51edc05",
+  "readmes/README_ja_JP.md": "173d377936c83b2cd622bb471d154a02",
+  "spec/acceptance/abs_spec.rb": "5b60756b2b4da28314025f51989592d7",
+  "spec/acceptance/anchor_spec.rb": "0fdbe266d8b7c3dc172e338b978109ba",
+  "spec/acceptance/any2array_spec.rb": "444cfd34154539d896e5ef1488386372",
+  "spec/acceptance/base64_spec.rb": "6a1dd4144ba354f9bed14eb70f7d2cba",
+  "spec/acceptance/bool2num_spec.rb": "edc9cb8b89b95410326475d27ce74bd5",
   "spec/acceptance/build_csv.rb": "f28ef587de764ade1513091c4906412c",
-  "spec/acceptance/capitalize_spec.rb": "e77ea2c37144a75a67969c0d0839adfd",
-  "spec/acceptance/ceiling_spec.rb": "b2718dc74a39399e342ef96fe0d00fdc",
-  "spec/acceptance/chomp_spec.rb": "fb0862a6b7eeb3c290e280788e705061",
-  "spec/acceptance/chop_spec.rb": "4e7ab2d3a441b88b667a0d8ea5b174c1",
-  "spec/acceptance/clamp_spec.rb": "7513fd2a6701206b4673f40728eae835",
-  "spec/acceptance/concat_spec.rb": "73ce39ffec7184d8ed5f0b5656ed9557",
-  "spec/acceptance/count_spec.rb": "d82cfcad2461b16872455d6347a8b114",
-  "spec/acceptance/deep_merge_spec.rb": "c335a947f1666e185e0210e661f1c78a",
-  "spec/acceptance/defined_with_params_spec.rb": "f27c54ade9872c63c69316f62b03c119",
-  "spec/acceptance/delete_at_spec.rb": "9c028b703ee0286565c9877757678f3f",
-  "spec/acceptance/delete_spec.rb": "31e6dfcb9cc7c16b20d47c00e6a85a1d",
-  "spec/acceptance/delete_undef_values_spec.rb": "6e6a66aee0c383c843b5f92ef8c8410c",
-  "spec/acceptance/delete_values_spec.rb": "22c9b4914d4cbc0153aa3862cb4fb50e",
-  "spec/acceptance/difference_spec.rb": "289f4f1788feaacb304ffd54971c7e7e",
-  "spec/acceptance/dirname_spec.rb": "84db53878c4400a6c684c924cff05cfc",
-  "spec/acceptance/downcase_spec.rb": "0f094849b94a94df491ee01186473104",
-  "spec/acceptance/empty_spec.rb": "e5094267eb1eae007addc5e76b6d43d1",
+  "spec/acceptance/capitalize_spec.rb": "4bb6471ec3a8a07260da8e249fae6ccd",
+  "spec/acceptance/ceiling_spec.rb": "46489eef94aa21bb1560383bb17d7d02",
+  "spec/acceptance/chomp_spec.rb": "8372fe8a875b1a599a89df1191f43bc0",
+  "spec/acceptance/chop_spec.rb": "d73d1c7c6a44df65677362bd2899bbc1",
+  "spec/acceptance/clamp_spec.rb": "8afaae07bf89e0af35474da489fd590f",
+  "spec/acceptance/concat_spec.rb": "bad5f40e0a501b436ec4264cd278290b",
+  "spec/acceptance/count_spec.rb": "f8abd435b077edd06ad76a96a2e610c0",
+  "spec/acceptance/deep_merge_spec.rb": "5f16342cb8c1b52d6a08717a2ef87117",
+  "spec/acceptance/defined_with_params_spec.rb": "8b47a7255b9d662009217f3cfd17ca03",
+  "spec/acceptance/delete_at_spec.rb": "b0c853ffe5fc121e051233d62f6e72b3",
+  "spec/acceptance/delete_spec.rb": "6ccb838a13037a56d1413aecb4fdac00",
+  "spec/acceptance/delete_undef_values_spec.rb": "7d849a978d3ecdaaf5e922acc6038ad8",
+  "spec/acceptance/delete_values_spec.rb": "b9f3dbffbb89fec32c6a5b2bd3b20901",
+  "spec/acceptance/deprecation_spec.rb": "cadc56a94cbc2f13965d698f581f582d",
+  "spec/acceptance/difference_spec.rb": "2f4e8ddd760f2d4dc9a4fb7b653e982f",
+  "spec/acceptance/dirname_spec.rb": "76e6b66474f070d8a89f3fe5bd187e85",
+  "spec/acceptance/downcase_spec.rb": "53f0f5b1867e0fd87ba59833c18b5ca2",
+  "spec/acceptance/empty_spec.rb": "be8a610f87790a321dbd4cc0542e2885",
   "spec/acceptance/ensure_resource_spec.rb": "c0193d79f1db1985d313bedb93a4c7ae",
-  "spec/acceptance/flatten_spec.rb": "83fb08cc168a105c1d5d0df66b1d9e84",
-  "spec/acceptance/floor_spec.rb": "d7267b2914b1da6406224abb7489ca86",
-  "spec/acceptance/fqdn_rand_string_spec.rb": "45982bd0062e3ffe2dbdd5ef0359d869",
-  "spec/acceptance/fqdn_rotate_spec.rb": "b00226e2ae28acf4ffea8a96b6e64f01",
-  "spec/acceptance/get_module_path_spec.rb": "2658cdcd1abd4b7d20f53c4aced3c72a",
-  "spec/acceptance/getparam_spec.rb": "4d32dc5a0ee34d045242c36d77a3b482",
-  "spec/acceptance/getvar_spec.rb": "ba2f081a88be97c0e7004a6296294f23",
-  "spec/acceptance/grep_spec.rb": "98818b8b0557b80d6ff519f70ea7617c",
-  "spec/acceptance/has_interface_with_spec.rb": "30e27096050c43b7efdb5e6c0d54f53b",
-  "spec/acceptance/has_ip_address_spec.rb": "2812117ec4b88556039e8488d53c0cb0",
-  "spec/acceptance/has_ip_network_spec.rb": "ca75b43ff1256ead9052f2db7620db99",
-  "spec/acceptance/has_key_spec.rb": "6509a26a0886f7d591eaa926b2f92407",
-  "spec/acceptance/hash_spec.rb": "1c626457ba056bdd3936e28aa5bf503e",
-  "spec/acceptance/intersection_spec.rb": "40f586af7f95408a5d4a2882a4aa98f1",
-  "spec/acceptance/is_a_spec.rb": "03e612e76d9004ec625d9e30bb17af04",
-  "spec/acceptance/is_array_spec.rb": "c2ff70ce59b90b50a5aed67abaa5399d",
-  "spec/acceptance/is_bool_spec.rb": "c001fdecff6b0a3c9dc78774987a0b15",
-  "spec/acceptance/is_domain_name_spec.rb": "63e84285c26d8717fd5d4dda01e3f432",
-  "spec/acceptance/is_float_spec.rb": "2f0164b4d732166aa46055a2cf7b4ea9",
-  "spec/acceptance/is_function_available_spec.rb": "7745eba89f8719c9ca7ebf04d5b005f7",
-  "spec/acceptance/is_hash_spec.rb": "cff723cd8fddac45033af5dc8406d4e4",
-  "spec/acceptance/is_integer_spec.rb": "c09201d17d3914bba197872897fa3413",
-  "spec/acceptance/is_ip_address_spec.rb": "aa14cf9abf404c3fe1e761ea957871fe",
-  "spec/acceptance/is_ipv4_address_spec.rb": "b787114912487987801bc68d7cb15142",
-  "spec/acceptance/is_ipv6_address_spec.rb": "c99785448a72f9a2cfa7cd52a392b5e7",
-  "spec/acceptance/is_mac_address_spec.rb": "30ff4c6a63be58daa3568305617ca2a7",
-  "spec/acceptance/is_numeric_spec.rb": "fb9829c7a1a8d4a58836df6ff4c3386d",
-  "spec/acceptance/is_string_spec.rb": "df3022de123b72f0022728eb2d8ce857",
-  "spec/acceptance/join_keys_to_values_spec.rb": "8aa128bbaeea65aab8d92badee3ca2b5",
-  "spec/acceptance/join_spec.rb": "c6378ed481265152bba9871fc5501ee6",
-  "spec/acceptance/keys_spec.rb": "20486e3ebee53e50dc9de3b78b9d6ae6",
-  "spec/acceptance/loadyaml_spec.rb": "bd440cb6779026bd07d83f1aceb2781b",
-  "spec/acceptance/lstrip_spec.rb": "e29ab4039b65660ec2bd76a298adcae0",
-  "spec/acceptance/max_spec.rb": "209cda4b83d677743afb1a8870330618",
-  "spec/acceptance/member_spec.rb": "d6088a4fa6321791a3067d9b9cf8914a",
-  "spec/acceptance/merge_spec.rb": "5f168188fa0d6b31ba5b3dac49fb609c",
-  "spec/acceptance/min_spec.rb": "152a7db28434a0d0378561d4f64cddcc",
-  "spec/acceptance/nodesets/centos-59-x64.yml": "57eb3e471b9042a8ea40978c467f8151",
-  "spec/acceptance/nodesets/centos-6-vcloud.yml": "bdf9ce9d3b0f0b4995666ae9d64d878d",
-  "spec/acceptance/nodesets/centos-64-x64-pe.yml": "ec075d95760df3d4702abea1ce0a829b",
-  "spec/acceptance/nodesets/centos-64-x64.yml": "092dd2c588a9f87fa1fb12997c0723ef",
-  "spec/acceptance/nodesets/centos-65-x64.yml": "3e5c36e6aa5a690229e720f4048bb8af",
-  "spec/acceptance/nodesets/default.yml": "3e5c36e6aa5a690229e720f4048bb8af",
-  "spec/acceptance/nodesets/fedora-18-x64.yml": "80e41b1ee16ea489f53164bfdae58855",
-  "spec/acceptance/nodesets/sles-11-x64.yml": "44e4c6c15c018333bfa9840a5e702f66",
-  "spec/acceptance/nodesets/ubuntu-server-10044-x64.yml": "75e86400b7889888dc0781c0ae1a1297",
-  "spec/acceptance/nodesets/ubuntu-server-12042-x64.yml": "d30d73e34cd50b043c7d14e305955269",
-  "spec/acceptance/nodesets/ubuntu-server-1404-x64.yml": "5f0aed10098ac5b78e4217bb27c7aaf0",
-  "spec/acceptance/nodesets/windows-2003-i386.yml": "b518fc01fab99ee6a9afccec5bc0c1c4",
-  "spec/acceptance/nodesets/windows-2003-x86_64.yml": "5c783eaa8ea4734edc836e89e923dfa1",
-  "spec/acceptance/nodesets/windows-2008-x86_64.yml": "3082234eafcfaf7a9579d9ebdb8bc409",
-  "spec/acceptance/nodesets/windows-2008r2-x86_64.yml": "dfeff32a4cc3fffa872c8281d990a840",
-  "spec/acceptance/nodesets/windows-2012-x86_64.yml": "8bed73362ee1f43d21ea1903a729f955",
-  "spec/acceptance/nodesets/windows-2012r2-x86_64.yml": "3f4f6112d24db02989b8ab79d3a1256f",
-  "spec/acceptance/num2bool_spec.rb": "e4a00b913b08c68a689837e9f9336cb2",
-  "spec/acceptance/parsejson_spec.rb": "5753b9dd66e4fd464c132b39487b922c",
-  "spec/acceptance/parseyaml_spec.rb": "991f6f7b729812535155643c11846bcb",
-  "spec/acceptance/pick_default_spec.rb": "1bc2562380ef6f6cded5ec90a03922be",
-  "spec/acceptance/pick_spec.rb": "272c54c8f9398f499768331bdb4276ee",
-  "spec/acceptance/prefix_spec.rb": "da620568c6771e7d492ec1ff697c531c",
-  "spec/acceptance/pw_hash_spec.rb": "721fe0da04d798a353799fd651bcd0fc",
-  "spec/acceptance/range_spec.rb": "65e5b98ceca257658604d988fbec7d03",
-  "spec/acceptance/reject_spec.rb": "b5185f1a6071c9bdc7aca92e6f899c3e",
-  "spec/acceptance/reverse_spec.rb": "7bdee543e82532e97bbf7a067140031c",
-  "spec/acceptance/rstrip_spec.rb": "28a64ceb7cb5ae8a93d31f49816190ab",
-  "spec/acceptance/shuffle_spec.rb": "8a8652e57d56f2b4946cdf4d20052b7a",
-  "spec/acceptance/size_spec.rb": "ae17d8a55921a0570972200c7c9327e1",
-  "spec/acceptance/sort_spec.rb": "d44b1b8c090f0f00a2f38515fda431ea",
-  "spec/acceptance/squeeze_spec.rb": "adcd65fa4e72203b97f1f14c8835c2cd",
-  "spec/acceptance/str2bool_spec.rb": "55ad165ceef6b9ba32bf20ca3b53b44c",
-  "spec/acceptance/str2saltedsha512_spec.rb": "b684c4214d06ae3d5bae055262a5ccaa",
-  "spec/acceptance/strftime_spec.rb": "0f4eadbd74445b35de4a42c9790fbcc1",
-  "spec/acceptance/strip_spec.rb": "6767da5bc735beb5362aeee6ff692c9e",
-  "spec/acceptance/suffix_spec.rb": "07dfc7eed48b75fcc1b93d0308243eda",
-  "spec/acceptance/swapcase_spec.rb": "5c3c1bc19a09fed6e01881f79b0b4ea5",
-  "spec/acceptance/time_spec.rb": "044b2f634a1fa6ecc735998d68a93b73",
-  "spec/acceptance/to_bytes_spec.rb": "f9df1f234b9409f5eaf56ef24e651c36",
-  "spec/acceptance/try_get_value_spec.rb": "db7c47f372f9d9725987ebe13e6039eb",
-  "spec/acceptance/type_spec.rb": "4297e038a8ff7e6ecb859b8b68c7b3a6",
-  "spec/acceptance/union_spec.rb": "f24e166bc838c9c8cbd75ad3f8f9d15b",
-  "spec/acceptance/unique_spec.rb": "9b00b21cefde3b5391f50eeb9cd2493b",
-  "spec/acceptance/unsupported_spec.rb": "09b9265ecb05252cd5e5a18327c7ae97",
-  "spec/acceptance/upcase_spec.rb": "ffd1d6f9e6ec24131fb78983c53a75f9",
-  "spec/acceptance/uriescape_spec.rb": "13daa387714cbfc63b587aaa8dbf7fcd",
-  "spec/acceptance/validate_absolute_path_spec.rb": "8b9ebfae80329231d84fcab606a3eeaf",
-  "spec/acceptance/validate_array_spec.rb": "382641719e754622ffae562d10e38bf7",
-  "spec/acceptance/validate_augeas_spec.rb": "c26b8ca2184a9dd87033a0c6f0553093",
-  "spec/acceptance/validate_bool_spec.rb": "08bc139459204cf0a35098a5bc30ab95",
-  "spec/acceptance/validate_cmd_spec.rb": "e9260c49d880e4de54f77bf4fd70cff4",
-  "spec/acceptance/validate_hash_spec.rb": "70ceacc18a0dee97b26ab2e50f925706",
-  "spec/acceptance/validate_ipv4_address_spec.rb": "dc901bbd05c3764a93cb49154cea6e4b",
-  "spec/acceptance/validate_ipv6_address_spec.rb": "c0872c56230ac2800cd5723eaa5bc53a",
-  "spec/acceptance/validate_re_spec.rb": "b289909078d6ae0d015419f518566698",
-  "spec/acceptance/validate_slength_spec.rb": "f0a05c1c2b895b096cb7326df4821594",
-  "spec/acceptance/validate_string_spec.rb": "6c9ced99fb1e263e66e25427d24f8f7b",
-  "spec/acceptance/values_at_spec.rb": "669b26c4d47742051472003518c3aa61",
-  "spec/acceptance/values_spec.rb": "9681223bb1bd755c28946ef0bcd6ece9",
-  "spec/acceptance/zip_spec.rb": "86d1b555745ee873da68c71f1e46ed21",
+  "spec/acceptance/flatten_spec.rb": "3ab1f9c9e761e5d758eeee7a2e32f295",
+  "spec/acceptance/floor_spec.rb": "4a20f6fc7142ef9357c8d18a408b5e52",
+  "spec/acceptance/fqdn_rand_string_spec.rb": "7744b45e282013c5fe637dbaf42f85b9",
+  "spec/acceptance/fqdn_rotate_spec.rb": "366816bb1d3102f64025d61e22eec79c",
+  "spec/acceptance/get_module_path_spec.rb": "d5d2258b2345359d1e51a638b97523cb",
+  "spec/acceptance/getparam_spec.rb": "d4037f1f546cf7a3e7dcabe787e637b5",
+  "spec/acceptance/getvar_spec.rb": "8451bced69bfd5599a552ddf49976d98",
+  "spec/acceptance/grep_spec.rb": "5e6650532658915d1004a6e6c0f1229d",
+  "spec/acceptance/has_interface_with_spec.rb": "e028fc7fc1023293ba32c48c9f46752a",
+  "spec/acceptance/has_ip_address_spec.rb": "f3443be46277f6084ca8e531562d8ac7",
+  "spec/acceptance/has_ip_network_spec.rb": "fa7a38450bef7e4408deb6b978d5a42f",
+  "spec/acceptance/has_key_spec.rb": "68e42fb69d15f27916e7943ab727afc6",
+  "spec/acceptance/hash_spec.rb": "1e8ff803d76d8f9e506c8a366a93ad90",
+  "spec/acceptance/intersection_spec.rb": "755c135f67811666b3c5152c5c5349c2",
+  "spec/acceptance/is_a_spec.rb": "4cdd8df78a6285de21d634c032e5a7c9",
+  "spec/acceptance/is_array_spec.rb": "1de1fb0b55759d4012033ae3ce0723c2",
+  "spec/acceptance/is_bool_spec.rb": "9984cd966d81c217f8ff4e252a4a66d1",
+  "spec/acceptance/is_domain_name_spec.rb": "948dc0c7372027e8f2bb9db85b8d66b2",
+  "spec/acceptance/is_float_spec.rb": "731d9b71e7b4ee5055339d08b2b5f707",
+  "spec/acceptance/is_function_available_spec.rb": "413964bfe8e18c34d8809590afcc4118",
+  "spec/acceptance/is_hash_spec.rb": "9095a364cba82a95a1edd0f92d2218c7",
+  "spec/acceptance/is_integer_spec.rb": "bc4e7192073531638be9f8a4d391a827",
+  "spec/acceptance/is_ip_address_spec.rb": "c2ee8738d62b4c9d42b3ef1a1b8573fc",
+  "spec/acceptance/is_ipv4_address_spec.rb": "09f6f3ad6a1c0a9e5dcfaab34a081ffc",
+  "spec/acceptance/is_ipv6_address_spec.rb": "d19a98176b2b7367e740d338df08c2ae",
+  "spec/acceptance/is_mac_address_spec.rb": "b53f033cc4943a19f597895df0b5210a",
+  "spec/acceptance/is_numeric_spec.rb": "95ecae5adde23e6b61cd090704c4572d",
+  "spec/acceptance/is_string_spec.rb": "d9ad89b30aff62aea4fb805c991c6abf",
+  "spec/acceptance/join_keys_to_values_spec.rb": "908f62013e1d797ddc0ba68c0fb7913b",
+  "spec/acceptance/join_spec.rb": "5609c646859140109af4ae1c63cc69d2",
+  "spec/acceptance/keys_spec.rb": "15edb2f0a5630dfadd9bd6c038e5cf95",
+  "spec/acceptance/loadjson_spec.rb": "7bf8eb220ed02b77e9956dade1acfcb3",
+  "spec/acceptance/loadyaml_spec.rb": "3810faad7411bc1d9c9274671bb68a9a",
+  "spec/acceptance/lstrip_spec.rb": "27a6e2c9e2afc5b3e0e98301798a80ad",
+  "spec/acceptance/max_spec.rb": "c39a2006dacdbd24a8acc5dc25f1a9f3",
+  "spec/acceptance/member_spec.rb": "10b9635c1daf636d66aabea6ff796e6a",
+  "spec/acceptance/merge_spec.rb": "a1502ebd4d069c5f818f7fd8da79e02d",
+  "spec/acceptance/min_spec.rb": "a6e73a33255bc202de93fd8fe679c510",
+  "spec/acceptance/nodesets/centos-7-x64.yml": "a713f3abd3657f0ae2878829badd23cd",
+  "spec/acceptance/nodesets/debian-8-x64.yml": "d2d2977900989f30086ad251a14a1f39",
+  "spec/acceptance/nodesets/default.yml": "b42da5a1ea0c964567ba7495574b8808",
+  "spec/acceptance/nodesets/docker/centos-7.yml": "8a3892807bdd62306ae4774f41ba11ae",
+  "spec/acceptance/nodesets/docker/debian-8.yml": "ac8e871d1068c96de5e85a89daaec6df",
+  "spec/acceptance/nodesets/docker/ubuntu-14.04.yml": "dc42ee922a96908d85b8f0f08203ce58",
+  "spec/acceptance/num2bool_spec.rb": "33ab633c5a6aa1e5e9c0cac9ec23c0d5",
+  "spec/acceptance/parsejson_spec.rb": "56353143de570034f59a87244bb9ff7b",
+  "spec/acceptance/parseyaml_spec.rb": "a564b2217350398d8a3f1b212d0c2ada",
+  "spec/acceptance/pick_default_spec.rb": "bc3512e0cc3bc34da5f44ae18573af5d",
+  "spec/acceptance/pick_spec.rb": "661747652e50bb522ad0c627fb8c3c58",
+  "spec/acceptance/prefix_spec.rb": "2b9df68e18e16144caa4440fd6acaa01",
+  "spec/acceptance/pw_hash_spec.rb": "979f0d209f1ef227a31d27a452fc2ed3",
+  "spec/acceptance/range_spec.rb": "f913a26f4bbe8b9432b6cb80a3b6d1ed",
+  "spec/acceptance/reject_spec.rb": "c63eb909288cf2210f72d3afa1e07b32",
+  "spec/acceptance/reverse_spec.rb": "eca705328f8e246a648e3f62434e662a",
+  "spec/acceptance/rstrip_spec.rb": "bad1e42f66d07b5d09ca1133b392bf6a",
+  "spec/acceptance/shuffle_spec.rb": "adc420bc01d83dde117b04baa4a5e2d8",
+  "spec/acceptance/size_spec.rb": "d923ec158f5c2275b9823dd118edd953",
+  "spec/acceptance/sort_spec.rb": "3ac4acd4233fbe624d926604d58acea6",
+  "spec/acceptance/squeeze_spec.rb": "2270c35766a5162cd732f0f761f0dc34",
+  "spec/acceptance/str2bool_spec.rb": "73ca9cbf9079ef52de10f90cb871e80c",
+  "spec/acceptance/str2saltedsha512_spec.rb": "1e89299c3802ba386589a5133a07dccc",
+  "spec/acceptance/strftime_spec.rb": "6cdfc95c02af2419eb14d173a23df678",
+  "spec/acceptance/strip_spec.rb": "711b6b73fce659ab83956c4454500e55",
+  "spec/acceptance/suffix_spec.rb": "c2ca0539e9e7b71f36ff470d3c18b303",
+  "spec/acceptance/swapcase_spec.rb": "30290d4378f19fa8bac4bc3347a36298",
+  "spec/acceptance/time_spec.rb": "74b6d4f21d46ca612a98efed9c48944c",
+  "spec/acceptance/to_bytes_spec.rb": "ff7d57f85cf1e211b0998235636edfd9",
+  "spec/acceptance/try_get_value_spec.rb": "8b62b969ece6f02c65f0cf3d365324b1",
+  "spec/acceptance/type_spec.rb": "909aa4d0c2463b04a3d3ff72cb0d4b42",
+  "spec/acceptance/union_spec.rb": "41b8705ac890ddd915a5f6c8b33620cd",
+  "spec/acceptance/unique_spec.rb": "0108f76cc12ecb0551a37a002a9bda85",
+  "spec/acceptance/upcase_spec.rb": "30721f352edd513a0cc36c94aa0fe760",
+  "spec/acceptance/uriescape_spec.rb": "69857543c97c35b23094cc6da0828055",
+  "spec/acceptance/validate_absolute_path_spec.rb": "b7f57e45a4d4d2a187bf9db99c481f98",
+  "spec/acceptance/validate_array_spec.rb": "ec0db1f08eb8d64fec1025b65b544365",
+  "spec/acceptance/validate_augeas_spec.rb": "744354dd9726be3624db10935ae2b13f",
+  "spec/acceptance/validate_bool_spec.rb": "950632bafc509e1965cd6a57646d87f6",
+  "spec/acceptance/validate_cmd_spec.rb": "1605939801210b1a53dc8873492551e0",
+  "spec/acceptance/validate_hash_spec.rb": "b79b1ef06301e1b97863281e3c419b0e",
+  "spec/acceptance/validate_ipv4_address_spec.rb": "547520f1ad1d55c52a257f4fb85ecc33",
+  "spec/acceptance/validate_ipv6_address_spec.rb": "feedad9317be19409e351011c7b852b9",
+  "spec/acceptance/validate_re_spec.rb": "bcc18798eccca866883b965baefc3cc9",
+  "spec/acceptance/validate_slength_spec.rb": "29311e9e910bba57a86be9a4893b43e5",
+  "spec/acceptance/validate_string_spec.rb": "cd36b419ebb8630618ec795781081101",
+  "spec/acceptance/values_at_spec.rb": "17e39ac5e094fb05522cb363e12186ab",
+  "spec/acceptance/values_spec.rb": "25d5abaffd9a108a52cdb156b5120e85",
+  "spec/acceptance/zip_spec.rb": "30ac38a83f8e92d642a20b53c5b66292",
+  "spec/aliases/absolute_path_spec.rb": "4326af270230f6d1aef6b1c68a31c53b",
+  "spec/aliases/absolutepath_spec.rb": "ab9a78b2aa5f6eb102ee648c5f88da61",
+  "spec/aliases/array_spec.rb": "09c3559333ec646387e4141ed37d671e",
+  "spec/aliases/bool_spec.rb": "c3f734df3cd334860bba95386b8e8ba6",
+  "spec/aliases/float_spec.rb": "dda76444d67dcf4e9ab4bf8d1a668b23",
+  "spec/aliases/hash_spec.rb": "8b0753fbb41a41655235f999a8cd8a17",
+  "spec/aliases/httpsurl_spec.rb": "49fa0c1da3f055228aaa7ab12471f126",
+  "spec/aliases/httpurl_spec.rb": "fe92b61091197895e9e0070adcaec1e9",
+  "spec/aliases/integer_spec.rb": "3d5c27c864e2385251f1c16a46ef717d",
+  "spec/aliases/ip_address.rb": "297c6577c0763f5121f9ca9c19718dfe",
+  "spec/aliases/ipv4_spec.rb": "8f3be58256671754f32287609c7a64ba",
+  "spec/aliases/ipv6_spec.rb": "68bc3bdf8f2dbb049f8f8daf93d78e82",
+  "spec/aliases/numeric_spec.rb": "a0031bb0085673ec7cc28d9c9b5a72e4",
+  "spec/aliases/string_spec.rb": "8953daa594d54b8efc91fecf73629608",
+  "spec/aliases/unixpath_spec.rb": "1fac6f23e14c3589d26284a081c25c77",
+  "spec/aliases/windowspath_spec.rb": "4a3aec398b2c6ae86cb6d68ac5e8ab06",
+  "spec/fixtures/dscacheutil/root": "e1a7622f55f3d1be258c9a5b16b474be",
+  "spec/fixtures/lsuser/root": "2ed657fa157372a81634539bb1a56be8",
+  "spec/fixtures/test/manifests/absolute_path.pp": "79e9da69f05adc0e1ed41c20bf14e95f",
+  "spec/fixtures/test/manifests/absolutepath.pp": "8561fa141028cd38d0b8409cd69a1372",
+  "spec/fixtures/test/manifests/array.pp": "0e1d4146a9b2dd56063b2cab6f3d7571",
+  "spec/fixtures/test/manifests/bool.pp": "cf75826f36025bd73ff7f479acf7196d",
+  "spec/fixtures/test/manifests/deftype.pp": "b9dbd15e3f4a2dd53aac7f26322abf0c",
+  "spec/fixtures/test/manifests/ensure_resources.pp": "3265ae7af9382cfe7d9a13527265dcc9",
+  "spec/fixtures/test/manifests/float.pp": "132f9a63e60bba2fba68be83208c2e28",
+  "spec/fixtures/test/manifests/hash.pp": "84d647482ef0c7dc35348c13fb0ca23e",
+  "spec/fixtures/test/manifests/httpsurl.pp": "9047fc382d215ae55c065b0798a82a2d",
+  "spec/fixtures/test/manifests/httpurl.pp": "7165bf5607a4808f3da3f9baca911240",
+  "spec/fixtures/test/manifests/integer.pp": "3cb3807714ddcde25cd8eeca61581e3b",
+  "spec/fixtures/test/manifests/ip_address.pp": "78deea27fe1ff9e85c360eced4d2c256",
+  "spec/fixtures/test/manifests/ipv4.pp": "b4f0dfe6ae06d4f8b284d24e55f6a6a2",
+  "spec/fixtures/test/manifests/ipv6.pp": "4764f683b6013556e20d8669b21b5bdc",
+  "spec/fixtures/test/manifests/numeric.pp": "bffd26d7c0bb53628369f42c14b342cb",
+  "spec/fixtures/test/manifests/string.pp": "27b69c1eb36250bfbd474a0ef9ba847b",
+  "spec/fixtures/test/manifests/unixpath.pp": "fd062024efdf731e19026901d3fcc075",
+  "spec/fixtures/test/manifests/windowspath.pp": "7f942ec8f883a3ac0fcaf960ea24b7d8",
   "spec/functions/abs_spec.rb": "7c0ebbd787b788d32b9bb21fe9061a2f",
-  "spec/functions/any2array_spec.rb": "c5990164adbaaf4f6536df4022309176",
-  "spec/functions/assert_private_spec.rb": "3bf58bd53467248cc221b9f846b13d98",
+  "spec/functions/any2array_spec.rb": "22b7ce032a34d02b6858360025eb7644",
+  "spec/functions/any2bool_spec.rb": "d090dde9be26601a38980e8f77fa5970",
+  "spec/functions/assert_private_spec.rb": "a7e79ac7a1b28610a0e57e38e913c9fa",
   "spec/functions/base64_spec.rb": "fa279d9a4f3060ee3f467e35b050d528",
-  "spec/functions/basename_spec.rb": "84a6567266725376d7ab518ab7dc5fe8",
+  "spec/functions/basename_spec.rb": "4aec9efc4fc6ed35de82d93b34dc0fab",
   "spec/functions/bool2num_spec.rb": "6609136ff067b90d41cf27bf8838c3ea",
   "spec/functions/bool2str_spec.rb": "52560617234393f960aedb496b49a628",
@@ -285,83 +354,96 @@
   "spec/functions/capitalize_spec.rb": "31a8d497b274653d5ede70a0187d4053",
   "spec/functions/ceiling_spec.rb": "47bd74569f8979d9195df06a863de93b",
-  "spec/functions/chomp_spec.rb": "6749a0b358b34e73843e1a284cead44a",
-  "spec/functions/chop_spec.rb": "6e33e61f50459191387c87e474d3d127",
+  "spec/functions/chomp_spec.rb": "8be3a83a34945dcaa6e8e193cf2751e4",
+  "spec/functions/chop_spec.rb": "8e1f661e93dd87b8bbeebe293fe16612",
   "spec/functions/clamp_spec.rb": "65dab1e9aceb2cb4e41ef9c0c65a7ba3",
-  "spec/functions/concat_spec.rb": "d217a63169e819e1ae2445083c248aa6",
+  "spec/functions/concat_spec.rb": "4161a254ff4c21497e61a62ce84dafe8",
   "spec/functions/convert_base_spec.rb": "f031e84b18cb010bc6233be3e4bcff83",
-  "spec/functions/count_spec.rb": "d91a084665ecd902586d26c99d45beed",
-  "spec/functions/deep_merge_spec.rb": "d70a71c7e9363c75224fffd40fc5efdd",
-  "spec/functions/defined_with_params_spec.rb": "9185955113fd14a7b2fbaa0228669d00",
-  "spec/functions/delete_at_spec.rb": "a5443ac5879992af9c4470e59f0355cf",
-  "spec/functions/delete_spec.rb": "2352787d3a93bf863bd6db186d4bcf4f",
-  "spec/functions/delete_undef_values_spec.rb": "6bee6b89a507130a009a9e8b5ef3e130",
-  "spec/functions/delete_values_spec.rb": "0d2d17c0cacd7f3871ea7ab2f5b96d93",
-  "spec/functions/difference_spec.rb": "2caaab5edb42ddc426e65348b12ebcc3",
-  "spec/functions/dig_spec.rb": "60ef76a16c557e7580cd8747c3476f1e",
-  "spec/functions/dirname_spec.rb": "5c905655d551b1956b6c9eda4ee96569",
-  "spec/functions/dos2unix_spec.rb": "95c13597be9e67e79e69ed0e6c3d325a",
+  "spec/functions/count_spec.rb": "14ab4e4b10fe33d69d0662357cd4bf8b",
+  "spec/functions/deep_merge_spec.rb": "5a4e826aaa0a0c0e4247b72e03bdfbd1",
+  "spec/functions/defined_with_params_spec.rb": "c592e82de04ab45222b36478ee7040e6",
+  "spec/functions/delete_at_spec.rb": "188a3143799bd5cf121982883c7dc1c8",
+  "spec/functions/delete_regex_spec.rb": "c049a3926aded4b6a804f1c824c57d2f",
+  "spec/functions/delete_spec.rb": "d7c589404fdc3a6b65da7ecf1f7e0b02",
+  "spec/functions/delete_undef_values_spec.rb": "a2c138145333e1873ee4bf23d091f86a",
+  "spec/functions/delete_values_spec.rb": "e20b68a589002f1e2b52873d3dbcfb49",
+  "spec/functions/deprecation_spec.rb": "f5d7355b687eaaa15c20fdb214671c2a",
+  "spec/functions/difference_spec.rb": "66ba399c0bace1a131ecdb365e0afd4e",
+  "spec/functions/dig44_spec.rb": "89631bb7282f7d3c9b75d79f48446c65",
+  "spec/functions/dig_spec.rb": "61708160da38852c3c78bc8563e0fcb2",
+  "spec/functions/dirname_spec.rb": "e80baeab6a166284f5069263fb5e37b7",
+  "spec/functions/dos2unix_spec.rb": "d0cfe5fe19d2bf33320e6f47789826c6",
   "spec/functions/downcase_spec.rb": "e2c24d41c6fb840f7b66c5205c942780",
   "spec/functions/empty_spec.rb": "e6d06c193869ce8c97d3e67d5c5c5b4f",
-  "spec/functions/ensure_packages_spec.rb": "76e89bf81ae98e52d2a07263c0e8d4f4",
-  "spec/functions/ensure_resource_spec.rb": "57634d7b6f86ac77dc47fb5da36410c2",
-  "spec/functions/flatten_spec.rb": "6fb563c36daf40599a414c1f3af8dc0b",
+  "spec/functions/ensure_packages_spec.rb": "cb741ab1e99e7ad9057eea258730cd19",
+  "spec/functions/ensure_resource_spec.rb": "e1ebbf9475781d86b58541a5846eda0b",
+  "spec/functions/flatten_spec.rb": "5d59251fa8da0e4c8a376a513a25bc7a",
   "spec/functions/floor_spec.rb": "7d110b1f994432e1c6c7c004a3dedbe4",
-  "spec/functions/fqdn_rand_string_spec.rb": "2edaae1764df4d751684d8ceda7b9cda",
-  "spec/functions/fqdn_rotate_spec.rb": "e9b1ce122788f18611cf64696d666328",
+  "spec/functions/fqdn_rand_string_spec.rb": "950a33e5ad8056fbfe564ec7e3b9a583",
+  "spec/functions/fqdn_rotate_spec.rb": "83f00ce0c48dec632e1aaa8192bb51cf",
+  "spec/functions/fqdn_uuid_spec.rb": "1b2980fcbecc4b51bdc6de01e9b001b7",
   "spec/functions/get_module_path_spec.rb": "ef22bd80ce5dedb069830d5aa10572c1",
-  "spec/functions/getparam_spec.rb": "dbbdde0a72653feb479e9fb971b94ec7",
-  "spec/functions/getvar_spec.rb": "18a9340442dd59cea8a6c98e95d38f4d",
-  "spec/functions/grep_spec.rb": "b9d0722e7708351b0114c46d4272f760",
+  "spec/functions/getparam_spec.rb": "359d7c9349ec0e5666bb38e2d9224621",
+  "spec/functions/getvar_spec.rb": "3c7884e012bdb596df3d0640533dab96",
+  "spec/functions/glob_spec.rb": "98e054f995a0d38002d9373b5e6acbc0",
+  "spec/functions/grep_spec.rb": "0e917284860c5f96fdf56301012ba199",
   "spec/functions/has_interface_with_spec.rb": "473c000e461c3497f8461eb17cf73430",
   "spec/functions/has_ip_address_spec.rb": "7b36b993ea32757e74be9909906bd165",
-  "spec/functions/has_ip_network_spec.rb": "23021acd604dc4ca3a1fef62e8863d8e",
-  "spec/functions/has_key_spec.rb": "6bc81bc7d179d4b680e7065a60b76562",
-  "spec/functions/hash_spec.rb": "4519b75eeb8eb0bba80b4594c297cf5e",
-  "spec/functions/intersection_spec.rb": "fcd475963335b3efee99c3ddd0ddd969",
-  "spec/functions/is_a_spec.rb": "51b1f473786fbd1d723febf20281de23",
-  "spec/functions/is_array_spec.rb": "7ea00635b395f231fce6467c95410b05",
-  "spec/functions/is_bool_spec.rb": "9173b8fd7cb5aea4504f0fa860d883c9",
+  "spec/functions/has_ip_network_spec.rb": "7086a27623ba91c5ff069397a32172c4",
+  "spec/functions/has_key_spec.rb": "eaa046db8632d6f76893e4b9df7b3e31",
+  "spec/functions/hash_spec.rb": "53a059e13781fac6b4f8eb660655d58f",
+  "spec/functions/intersection_spec.rb": "e906cb8ceb39b644b4b338adcd4dda26",
+  "spec/functions/is_a_spec.rb": "7d6322426d629e5302c52455d9c4cd55",
+  "spec/functions/is_array_spec.rb": "26d7eab025f333d2c4a8baf89ef4e36e",
+  "spec/functions/is_bool_spec.rb": "40569a4cdb50af0cc21ad749ac18e6ef",
   "spec/functions/is_domain_name_spec.rb": "4ea3825d5b77a5d75eab8228dcc738f9",
   "spec/functions/is_email_address_spec.rb": "699c4573dfd00db8993a18afc0eaf875",
-  "spec/functions/is_float_spec.rb": "42b7f071e02af58e3154643b84445af1",
+  "spec/functions/is_float_spec.rb": "8aedd9e622cd1b861d99523532dc4fc1",
   "spec/functions/is_function_available.rb": "f8ab234d536532c3629ff6a5068e7877",
   "spec/functions/is_hash_spec.rb": "11563529f0f1f821769edb3131277100",
-  "spec/functions/is_integer_spec.rb": "799bef092df12fa590e71473db957d11",
-  "spec/functions/is_ip_address_spec.rb": "195e89d0c32eae24e4a51d12b8c59009",
-  "spec/functions/is_mac_address_spec.rb": "748b7e3dffae6d4097da9cc29a37e94d",
-  "spec/functions/is_numeric_spec.rb": "d131e94cf670075e8c46576b5109c2b6",
-  "spec/functions/is_string_spec.rb": "f41f332f93fc05b57ee9611cdbe73c11",
-  "spec/functions/join_keys_to_values_spec.rb": "b95f8f32888a96c4239c87cf9785d288",
-  "spec/functions/join_spec.rb": "2181956bf08efe90f932a17e5138a25c",
-  "spec/functions/keys_spec.rb": "8a6772daf2ae821e98d392f5266fdf67",
-  "spec/functions/load_module_metadata_spec.rb": "bcc48736e28992853c4f6b16d397daed",
-  "spec/functions/loadyaml_spec.rb": "f4f50af8016ffd187a0358b78634a259",
-  "spec/functions/lstrip_spec.rb": "58644ca945b38ec8b3d8729423aacf69",
+  "spec/functions/is_integer_spec.rb": "21a139f9a87b1561bfec60de26c435a2",
+  "spec/functions/is_ip_address_spec.rb": "04a15328803bb47ae431eff63aa555df",
+  "spec/functions/is_ipv4_address_spec.rb": "339b8c79925bb70c0de19468d58ab64a",
+  "spec/functions/is_ipv6_address_spec.rb": "9743a0f2bfda70ace128d2f476a208b9",
+  "spec/functions/is_mac_address_spec.rb": "532b8c4c63b37849e7fb9122d163ae3a",
+  "spec/functions/is_numeric_spec.rb": "cb846f44e8f6d79161686d7b3729967c",
+  "spec/functions/is_string_spec.rb": "56f34694781dfcf774e43bca06057fec",
+  "spec/functions/join_keys_to_values_spec.rb": "f99dff6550fdb7c245ed4dcaca0a16a3",
+  "spec/functions/join_spec.rb": "e190fbce526b3f4f7bb8aac029338ece",
+  "spec/functions/keys_spec.rb": "fba0bfa928b5684d5c918d6c06edd06d",
+  "spec/functions/length.rb": "c07a267ccccc4b4edbbfad155dc21475",
+  "spec/functions/load_module_metadata_spec.rb": "431fbe84d627a5c4398f432caaec96f8",
+  "spec/functions/loadjson_spec.rb": "76cbe175c90a596892b799d8e4d599e5",
+  "spec/functions/loadyaml_spec.rb": "60e283bc07adc67bc2c934424bf01b8d",
+  "spec/functions/lstrip_spec.rb": "892229ce8657490c72fc860fb0dda1b6",
   "spec/functions/max_spec.rb": "47de8d59070d8d51b2184731f5d1aa43",
-  "spec/functions/member_spec.rb": "02891f40caaca15a5aba43443c7d2ccb",
+  "spec/functions/member_spec.rb": "6a988e6368c1ce090b47fe41efbc041c",
   "spec/functions/merge_spec.rb": "56297527d192640bbe82c7ccf1e39815",
   "spec/functions/min_spec.rb": "8b38e2a989912406cd2c57dcd3a460c4",
   "spec/functions/num2bool_spec.rb": "7c4fd30e41a11b1bd0d9e5233340f16b",
-  "spec/functions/parsejson_spec.rb": "656300186e986725982595c262f7eccd",
-  "spec/functions/parseyaml_spec.rb": "67b3be346368a2070535585a51bcd7c2",
-  "spec/functions/pick_default_spec.rb": "bef7bb2f755e665775aa0085c6897fb2",
-  "spec/functions/pick_spec.rb": "8fe02695ea909e993119254accc61f1a",
-  "spec/functions/prefix_spec.rb": "95956321291a0f6d1e2f45572569fe3b",
+  "spec/functions/parsejson_spec.rb": "958db1dde2f2244f458c399e0c3231e0",
+  "spec/functions/parseyaml_spec.rb": "19a2add90ca08d5a17c4e3aff89fe3c0",
+  "spec/functions/pick_default_spec.rb": "ab9ef2e9111cfd2709313e0e3c3befa2",
+  "spec/functions/pick_spec.rb": "786044a71e3bd673212949c12f37b10f",
+  "spec/functions/prefix_spec.rb": "2402d2ad5108050bb5c20b3ea58b64be",
   "spec/functions/private_spec.rb": "f404771c4590a0cd7ce61ddff8f3eb7b",
   "spec/functions/pw_hash_spec.rb": "640609cc73b4c8bbcdfc88c3e9797664",
-  "spec/functions/range_spec.rb": "e73c3bb7f2c25540780c3bad19b30994",
-  "spec/functions/reject_spec.rb": "e0eb0546885dd0aef023dfa4694155db",
-  "spec/functions/reverse_spec.rb": "cb48f198c2a9efe224a00d67e68d978f",
-  "spec/functions/rstrip_spec.rb": "f0391a775d335e2a5c9335d50c657f4b",
-  "spec/functions/seeded_rand_spec.rb": "d7d80c3458706e83a8087e17c8a7b6ab",
-  "spec/functions/shuffle_spec.rb": "6ab6083720cfd4dfa99556e5ef81f576",
-  "spec/functions/size_spec.rb": "51495c464a203d9e1919008209f05cd5",
+  "spec/functions/range_spec.rb": "d3af56cc8a137059423f8738e343ccff",
+  "spec/functions/regexpescape_spec.rb": "ce027e1b99674f39de8ddffcfed8396e",
+  "spec/functions/reject_spec.rb": "8ecbca64a9817ebef76be96dcf6cdeeb",
+  "spec/functions/reverse_spec.rb": "e40754fd34e96ac206308958504ae315",
+  "spec/functions/rstrip_spec.rb": "748f4587c12b5a590b985f111e282a8d",
+  "spec/functions/seeded_rand_spec.rb": "eb56445d10962d81ed935b53826da349",
+  "spec/functions/shell_escape_spec.rb": "bf108573c041f0c228f6d47d367d0aa3",
+  "spec/functions/shell_join_spec.rb": "92f31bd98d6e8e30e5f758f50bcb8a75",
+  "spec/functions/shell_split_spec.rb": "430f58733cc7855e56bfc918971b3fc1",
+  "spec/functions/shuffle_spec.rb": "be5d43184f2ca42db4f452085a4730fd",
+  "spec/functions/size_spec.rb": "f5e35878331bb12d9639522e38cc81c8",
   "spec/functions/sort_spec.rb": "d9533dd37c6263b92895f7eba8485248",
-  "spec/functions/squeeze_spec.rb": "549af334b7f9dd5f06d6b45c3e3e8303",
+  "spec/functions/squeeze_spec.rb": "ffcf3b44cbdd45e14eb1173d2b7d1d99",
   "spec/functions/str2bool_spec.rb": "607b25fb0badd0da5acb86c63437c8be",
   "spec/functions/str2saltedsha512_spec.rb": "07586b0026757cd39229c12c7221808b",
   "spec/functions/strftime_spec.rb": "f1a34fc930940213abfba3095d5d8065",
-  "spec/functions/strip_spec.rb": "0cb8537f2e7df14f42247349ab3161a6",
-  "spec/functions/suffix_spec.rb": "65172f6879c902802230f718ea9df7da",
+  "spec/functions/strip_spec.rb": "023132b8bd0820da254f74c6fe31bb80",
+  "spec/functions/suffix_spec.rb": "dfe26a61bf0185291b6ae868e9d0de20",
   "spec/functions/swapcase_spec.rb": "90bace1b004aa63d46eb6481c6dce2b1",
   "spec/functions/time_spec.rb": "6dc8f5b42cf89345d2de424bfe19be90",
@@ -371,33 +453,36 @@
   "spec/functions/type_of_spec.rb": "83755d9390b9c00e086a007edff7fd9b",
   "spec/functions/type_spec.rb": "7a61b4af7d3d83be590d783a7e5e80f8",
-  "spec/functions/union_spec.rb": "089b03e9a6ef25cdcf68157bb986d8a8",
-  "spec/functions/unique_spec.rb": "b793c531b4d227ae55d05a187b706fb8",
+  "spec/functions/union_spec.rb": "a290a38e443b856a476d14d4b1dc72fb",
+  "spec/functions/unique_spec.rb": "97fbcc73a0e0d82e23c723837627c712",
   "spec/functions/unix2dos_spec.rb": "628c8a0c608d1fa0dd09bd1b5af97c1f",
   "spec/functions/upcase_spec.rb": "4f0461a20c03d618f0c18da39bebcf65",
   "spec/functions/uriescape_spec.rb": "1458afbe7e7e11dcaad8d295a7f2be59",
-  "spec/functions/validate_absolute_path_spec.rb": "26e00ce6122016b9b53797806e681682",
-  "spec/functions/validate_array_spec.rb": "df0bcf372b3efdd1f4de16b508987616",
+  "spec/functions/validate_absolute_path_spec.rb": "5adbf0a0ac8b23e86195deaf3e4bd371",
+  "spec/functions/validate_array_spec.rb": "3aa76f3731754c637acc94b59c79efb0",
   "spec/functions/validate_augeas_spec.rb": "d598e89a23912be9f24d39b809f30b47",
-  "spec/functions/validate_bool_spec.rb": "93cfbecbe8cc4707ada13f48f5c8c8a6",
-  "spec/functions/validate_cmd_spec.rb": "05eb581532fc689ff91212413b2e678d",
+  "spec/functions/validate_bool_spec.rb": "d1b43cd294d0588ac6d67d5d3c77a42a",
+  "spec/functions/validate_cmd_spec.rb": "34a4e623ab0ce7d4c218a837f896c1ea",
   "spec/functions/validate_email_address_spec.rb": "1296f9934d102258091379ee07f9a2a8",
-  "spec/functions/validate_hash_spec.rb": "56f4b7e42a4d3f62172982fa639f5cc3",
-  "spec/functions/validate_integer_spec.rb": "0a2677479c8bf0257bdd54c3d0db1f81",
-  "spec/functions/validate_ip_address_spec.rb": "e4ba65ff0c87b28b29f05e1637b7e700",
-  "spec/functions/validate_ipv4_address_spec.rb": "dc1af709faa724ccc51d9c5aba1d6356",
-  "spec/functions/validate_ipv6_address_spec.rb": "5f27c395b286385c489df5ee119580bc",
-  "spec/functions/validate_numeric_spec.rb": "dd5fcc7421002c85252d0a9421a5a99b",
-  "spec/functions/validate_re_spec.rb": "430e57fd80d3f29f4ba8be62c5463e62",
-  "spec/functions/validate_slength_spec.rb": "92252419e0d311a7bd6b426edb3c1040",
-  "spec/functions/validate_string_spec.rb": "779473e87660081e610c397f0157331a",
+  "spec/functions/validate_hash_spec.rb": "0b3ac3f7262f13ef14e3df937c8d104c",
+  "spec/functions/validate_integer_spec.rb": "ec55ab34e3ec4f09722349cd6aac77a6",
+  "spec/functions/validate_ip_address_spec.rb": "ba8c92e30f1af9e6839a2901e002c3f3",
+  "spec/functions/validate_ipv4_address_spec.rb": "d5d956651629f95ea531ac03b71e247b",
+  "spec/functions/validate_ipv6_address_spec.rb": "7ee0d6097666558d8627de424c26ef75",
+  "spec/functions/validate_legacy_spec.rb": "a1a3af70e71d0a6b848d75c518949b3b",
+  "spec/functions/validate_numeric_spec.rb": "c2f01b9c9aeae75683563ef7d3951bbb",
+  "spec/functions/validate_re_spec.rb": "27bcf99cd815b755548cd3979753b2f3",
+  "spec/functions/validate_slength_spec.rb": "c292023b2e61298499ff1f791fc03005",
+  "spec/functions/validate_string_spec.rb": "bc6735359ada0b3ccf69f515231e3808",
   "spec/functions/validate_x509_rsa_key_pair_spec.rb": "24810bdb8ac473ae1168f1b2c5708170",
-  "spec/functions/values_at_spec.rb": "c318f66de43f8e6095d28f733f55ec5d",
-  "spec/functions/values_spec.rb": "5550da71a69514f8be87a12b575d5228",
-  "spec/functions/zip_spec.rb": "4c991f26985096b3e8b336cef528aa00",
+  "spec/functions/values_at_spec.rb": "866ba43a4b606f6e9e72ac91c07408bd",
+  "spec/functions/values_spec.rb": "6b8f39665cb8fdb03658d838e50b55b0",
+  "spec/functions/zip_spec.rb": "986defd43a001ff28fe7c90b0366812e",
   "spec/monkey_patches/alias_should_to_must.rb": "b19ee31563afb91a72f9869f9d7362ff",
   "spec/monkey_patches/publicize_methods.rb": "c690e444b77c871375d321e413e28ca1",
   "spec/spec_helper.rb": "b2db3bc02b4ac2fd5142a6621c641b07",
-  "spec/spec_helper_acceptance.rb": "4da340042246df9b9e3dc221a5807528",
-  "spec/spec_helper_local.rb": "845be3a017611728b73e73af427f7431",
+  "spec/spec_helper_acceptance.rb": "cd589056b52031da19d9c31ed86ea922",
+  "spec/spec_helper_local.rb": "1e3ad3c06a11cbcb813dc1d31973cbda",
+  "spec/support/shared_data.rb": "9758f8ba2958965d287387a2513dac73",
+  "spec/unit/ensure_resources_spec.rb": "30cad259a3cc6c73f90209804183c818",
   "spec/unit/facter/facter_dot_d_spec.rb": "420339a544851f2c7ee6fa4c651bdce8",
   "spec/unit/facter/package_provider_spec.rb": "3a6ba799822fbcabc9adab5880260b7a",
@@ -408,6 +493,23 @@
   "spec/unit/puppet/parser/functions/enclose_ipv6_spec.rb": "0145a78254ea716e5e7600d9464318a8",
   "spec/unit/puppet/parser/functions/is_absolute_path_spec.rb": "52f8d3b9011fb1fd8a2a429fe8b2ae08",
-  "spec/unit/puppet/provider/file_line/ruby_spec.rb": "e70f3093b17aeccef198b52901ab2f94",
+  "spec/unit/puppet/provider/file_line/ruby_spec.rb": "d269e18953fc297786a8393b20842abc",
   "spec/unit/puppet/type/anchor_spec.rb": "06a669dffa44d716bf19b4e7f5f1d75d",
-  "spec/unit/puppet/type/file_line_spec.rb": "af824724caf0071d84464042490a6f88"
+  "spec/unit/puppet/type/file_line_spec.rb": "83e11166de4abe69cdf0dc7450e79778",
+  "types/absolutepath.pp": "3ae6f48dd95835df87c5dacea13c88d2",
+  "types/compat/absolute_path.pp": "6d0e102d1098d85d97c8f13051cb2c10",
+  "types/compat/array.pp": "43c41022dd743d55c8e9e82ce3ed741c",
+  "types/compat/bool.pp": "6e0cd7b2a7e1b9efaa0e273937211e58",
+  "types/compat/float.pp": "fd134a0e0e1abd420cec2107780a7afa",
+  "types/compat/hash.pp": "3535d98f0f3eaec44d443190f258e9ba",
+  "types/compat/integer.pp": "e85a20e42b3afaf5ec0718a8d9f9c5e3",
+  "types/compat/ip_address.pp": "d42c7435de30a469a71b69c45d642da7",
+  "types/compat/ipv4.pp": "c84eb3764f45b256a09be68afe61b749",
+  "types/compat/ipv6.pp": "d3c0fada5425d576aeca14ddbee78653",
+  "types/compat/numeric.pp": "f864539d78e95dabf0bab361b4ccc042",
+  "types/compat/re.pp": "70b05d4697e61f9af0c212ba063f395d",
+  "types/compat/string.pp": "b9a179664c85e121aa0277021627d126",
+  "types/httpsurl.pp": "108225d0273e17d541b239882287ed15",
+  "types/httpurl.pp": "4ba64825b11af75997c59b5acf07c62d",
+  "types/unixpath.pp": "5fc80523e7f474dd84056c44fafd9544",
+  "types/windowspath.pp": "4c1eda331ecb43de98c29ed22d0ad448"
 }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/examples/file_line.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/examples/file_line.pp	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/examples/file_line.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,6 +3,6 @@
 file { '/tmp/dansfile':
   ensure => file,
-} ->
-file_line { 'dans_line':
+}
+-> file_line { 'dans_line':
   line => 'dan is awesome',
   path => '/tmp/dansfile',
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/facter/puppet_settings.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/facter/puppet_settings.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/facter/puppet_settings.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,43 @@
+# These facter facts return the value of the Puppet vardir and environment path
+# settings for the node running puppet or puppet agent.  The intent is to
+# enable Puppet modules to automatically have insight into a place where they
+# can place variable data, or for modules running on the puppet master to know
+# where environments are stored.
+#
+# The values should be directly usable in a File resource path attribute.
+#
+begin
+  require 'facter/util/puppet_settings'
+rescue LoadError => e
+  # puppet apply does not add module lib directories to the $LOAD_PATH (See
+  # #4248). It should (in the future) but for the time being we need to be
+  # defensive which is what this rescue block is doing.
+  rb_file = File.join(File.dirname(__FILE__), 'util', 'puppet_settings.rb')
+  load rb_file if File.exists?(rb_file) or raise e
+end
+
+
+# These will be nil if Puppet is not available.
+Facter.add(:puppet_vardir) do
+  setcode do
+    Facter::Util::PuppetSettings.with_puppet do
+      Puppet[:vardir]
+    end
+  end
+end
+
+Facter.add(:puppet_environmentpath) do
+  setcode do
+    Facter::Util::PuppetSettings.with_puppet do
+      Puppet[:environmentpath]
+    end
+  end
+end
+
+Facter.add(:puppet_server) do
+  setcode do
+    Facter::Util::PuppetSettings.with_puppet do
+      Puppet[:server]
+    end
+  end
+end
Index: c/puppetcode/environments/gnuboat/modules/stdlib/lib/facter/puppet_vardir.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/facter/puppet_vardir.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-# This facter fact returns the value of the Puppet vardir setting for the node
-# running puppet or puppet agent.  The intent is to enable Puppet modules to
-# automatically have insight into a place where they can place variable data,
-# regardless of the node's platform.
-#
-# The value should be directly usable in a File resource path attribute.
-
-
-begin
-  require 'facter/util/puppet_settings'
-rescue LoadError => e
-  # puppet apply does not add module lib directories to the $LOAD_PATH (See
-  # #4248). It should (in the future) but for the time being we need to be
-  # defensive which is what this rescue block is doing.
-  rb_file = File.join(File.dirname(__FILE__), 'util', 'puppet_settings.rb')
-  load rb_file if File.exists?(rb_file) or raise e
-end
-
-Facter.add(:puppet_vardir) do
-  setcode do
-    # This will be nil if Puppet is not available.
-    Facter::Util::PuppetSettings.with_puppet do
-      Puppet[:vardir]
-    end
-  end
-end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/deprecation.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/deprecation.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/deprecation.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,29 @@
+# Function to print deprecation warnings, Logs a warning once for a given key. The uniqueness key - can appear once. The msg is the message text including any positional information that is formatted by the user/caller of the method  It is affected by the puppet setting 'strict', which can be set to :error (outputs as an error message), :off (no message / error is displayed) and :warning (default, outputs a warning)  *Type*: String, String.
+#
+
+Puppet::Functions.create_function(:deprecation) do
+  dispatch :deprecation do
+    param 'String', :key
+    param 'String', :message
+  end
+
+  def deprecation(key, message)
+    if defined? Puppet::Pops::PuppetStack.stacktrace()
+      stacktrace = Puppet::Pops::PuppetStack.stacktrace()
+      file = stacktrace[0]
+      line = stacktrace[1]
+      message = "#{message} at #{file}:#{line}"
+    end
+    # depending on configuration setting of strict
+    case Puppet.settings[:strict]
+    when :off
+      # do nothing
+    when :error
+      fail("deprecation. #{key}. #{message}")
+    else
+      unless ENV['STDLIB_LOG_DEPRECATIONS'] == 'false'
+        Puppet.deprecation_warning(message, key)
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_absolute_path.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_absolute_path) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_absolute_path', "This method is deprecated, please use match expressions with Stdlib::Compat::Absolute_Path instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_absolute_path", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_array.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_array) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_array', "This method is deprecated, please use match expressions with Stdlib::Compat::Array instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_array", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_bool) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_bool', "This method is deprecated, please use match expressions with Stdlib::Compat::Bool instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_bool", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_float.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_float.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_float.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_float) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_float', "This method is deprecated, please use match expressions with Stdlib::Compat::Float instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_float", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_ip_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_ip_address', "This method is deprecated, please use match expressions with Stdlib::Compat::Ip_address instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_ip_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv4_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_ipv4_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_ipv4_address', "This method is deprecated, please use match expressions with Stdlib::Compat::Ipv4 instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_ipv4_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv6_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_ipv6_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_ipv4_address', "This method is deprecated, please use match expressions with Stdlib::Compat::Ipv6 instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_ipv6_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_numeric.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_numeric) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_numeric', "This method is deprecated, please use match expressions with Stdlib::Compat::Numeric instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_numeric", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_string.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/is_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:is_string) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'is_string', "This method is deprecated, please use match expressions with Stdlib::Compat::String instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.")
+    scope.send("function_is_string", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/length.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/length.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/length.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,14 @@
+#A function to eventually replace the old size() function for stdlib - The original size function did not handle Puppets new type capabilities, so this function is a Puppet 4 compatible solution. 
+Puppet::Functions.create_function(:length) do
+  dispatch :length do
+    param 'Variant[String,Array,Hash]', :value
+  end
+  def	length(value)
+    if value.is_a?(String)
+      result = value.length
+    elsif value.is_a?(Array) || value.is_a?(Hash)
+      result = value.size
+    end
+    return result
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/type_of.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/type_of.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/type_of.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,4 +11,6 @@
 # See the `assert_type()` function for flexible ways to assert the type of a value.
 #
+# The built-in type() function in puppet is generally preferred over this function 
+# this function is provided for backwards compatibility.
 Puppet::Functions.create_function(:type_of) do
   def type_of(value)
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_absolute_path.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_absolute_path) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_absolute_path', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_Path. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_absolute_path", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_array.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_array) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_array', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_array", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_bool) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_bool', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_bool", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_hash.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_hash) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_hash', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_hash", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_integer.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_integer.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_integer.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_integer) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_integer', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Integer. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_integer", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_ip_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_ip_address', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ip_Address. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_ip_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv4_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_ipv4_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_ipv4_address', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv4_Address. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_ipv4_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv6_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_ipv6_address) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_ipv6_address', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv6_address. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_ipv6_address", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_legacy.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_legacy.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_legacy.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,62 @@
+Puppet::Functions.create_function(:validate_legacy) do
+  # The function checks a value against both the target_type (new) and the previous_validation function (old).
+
+  dispatch :validate_legacy do
+    param 'Any', :scope
+    param 'Type', :target_type
+    param 'String', :function_name
+    param 'Any', :value
+    repeated_param 'Any', :args
+  end
+
+  dispatch :validate_legacy_s do
+    param 'Any', :scope
+    param 'String', :type_string
+    param 'String', :function_name
+    param 'Any', :value
+    repeated_param 'Any', :args
+  end
+
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+
+  def validate_legacy_s(scope, type_string, *args)
+    t = Puppet::Pops::Types::TypeParser.new.parse(type_string, scope)
+    validate_legacy(scope, t, *args)
+  end
+
+  def validate_legacy(scope, target_type, function_name, value, *prev_args)
+    if assert_type(target_type, value)
+      if previous_validation(scope, function_name, value, *prev_args)
+        # Silently passes
+      else
+        Puppet.notice("Accepting previously invalid value for target type '#{target_type}'")
+      end
+    else
+      inferred_type = Puppet::Pops::Types::TypeCalculator.infer_set(value)
+      error_msg = Puppet::Pops::Types::TypeMismatchDescriber.new.describe_mismatch("validate_legacy(#{function_name})", target_type, inferred_type)
+      if previous_validation(scope, function_name, value, *prev_args)
+        call_function('deprecation', 'validate_legacy', error_msg)
+      else
+        call_function('fail', error_msg)
+      end
+    end
+  end
+
+  def previous_validation(scope, function_name, value, *prev_args)
+    # Call the previous validation function and catch any errors. Return true if no errors are thrown.
+    begin
+      scope.send("function_#{function_name}".to_s, [value, *prev_args])
+      true
+    rescue Puppet::ParseError
+      false
+    end
+  end
+
+  def assert_type(type, value)
+    Puppet::Pops::Types::TypeCalculator.instance?(type, value)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_numeric.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_numeric) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_numeric', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Numeric. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_numeric", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_re.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_re.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_re.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_re) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_re', "This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_re", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_slength.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_slength.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_slength.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_slength) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_slength', "This method is deprecated, please use the stdlib validate_legacy function, with String[]. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_slength", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_string.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/functions/validate_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,15 @@
+Puppet::Functions.create_function(:validate_string) do
+  dispatch :deprecation_gen do
+    param 'Any', :scope
+    repeated_param 'Any', :args
+  end
+  # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.
+  def call(scope, *args)
+    manipulated_args = [scope] + args
+    self.class.dispatcher.dispatch(self, scope, manipulated_args)
+  end
+  def deprecation_gen(scope, *args)
+    call_function('deprecation', 'validate_string', "This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README.")
+    scope.send("function_validate_string", args)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/abs.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/abs.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/abs.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,6 +10,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "abs(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "abs(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
@@ -22,6 +21,5 @@
         value = value.to_i
       else
-        raise(Puppet::ParseError, 'abs(): Requires float or ' +
-          'integer to work with')
+        raise(Puppet::ParseError, 'abs(): Requires float or integer to work with')
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/any2bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/any2bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/any2bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,54 @@
+#
+# any2bool.rb
+#
+
+module Puppet::Parser::Functions
+  newfunction(:any2bool, :type => :rvalue, :doc => <<-EOS
+This converts 'anything' to a boolean. In practise it does the following:
+
+* Strings such as Y,y,1,T,t,TRUE,yes,'true' will return true
+* Strings such as 0,F,f,N,n,FALSE,no,'false' will return false
+* Booleans will just return their original value
+* Number (or a string representation of a number) > 0 will return true, otherwise false
+* undef will return false
+* Anything else will return true
+    EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "any2bool(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
+
+    # If argument is already Boolean, return it
+    if !!arguments[0] == arguments[0]
+      return arguments[0]
+    end
+
+    arg = arguments[0]
+
+    if arg == nil
+      return false
+    end
+
+    if arg == :undef
+      return false
+    end
+
+    valid_float = !!Float(arg) rescue false
+
+    if arg.is_a?(Numeric)
+      return function_num2bool( [ arguments[0] ] )
+    end
+
+    if arg.is_a?(String)
+      if valid_float
+        return function_num2bool( [ arguments[0] ] )
+      else
+        return function_str2bool( [ arguments[0] ] )
+      end
+    end
+
+    return true
+
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/assert_private.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/assert_private.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/assert_private.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,6 +10,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "assert_private(): Wrong number of arguments "+
-      "given (#{args.size}}) for 0 or 1)") if args.size > 1
+    raise(Puppet::ParseError, "assert_private(): Wrong number of arguments given (#{args.size}}) for 0 or 1)") if args.size > 1
 
     scope = self
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/base64.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/base64.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/base64.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,2 +1,5 @@
+
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
+
 module Puppet::Parser::Functions
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2num.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2num.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2num.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,6 +12,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "bool2num(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "bool2num(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = function_str2bool([arguments[0]])
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2str.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2str.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/bool2str.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,6 +21,5 @@
 
     unless arguments.size == 1 or arguments.size == 3
-      raise(Puppet::ParseError, "bool2str(): Wrong number of arguments " +
-                                "given (#{arguments.size} for 3)")
+      raise(Puppet::ParseError, "bool2str(): Wrong number of arguments given (#{arguments.size} for 3)")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/camelcase.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/camelcase.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/camelcase.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
 #  camelcase.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -9,6 +10,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "camelcase(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "camelcase(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
@@ -16,6 +16,5 @@
 
     unless [Array, String].include?(klass)
-      raise(Puppet::ParseError, 'camelcase(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'camelcase(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/capitalize.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/capitalize.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/capitalize.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
 #  capitalize.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -10,12 +11,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "capitalize(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "capitalize(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'capitalize(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'capitalize(): Requires either array or string to work with')
     end
 
@@ -30,4 +29,2 @@
   end
 end
-
-# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ceiling.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ceiling.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ceiling.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,16 +6,13 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "ceiling(): Wrong number of arguments " +
-          "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "ceiling(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     begin
       arg = Float(arguments[0])
     rescue TypeError, ArgumentError => e
-      raise(Puppet::ParseError, "ceiling(): Wrong argument type " +
-            "given (#{arguments[0]} for Numeric)")
+      raise(Puppet::ParseError, "ceiling(): Wrong argument type given (#{arguments[0]} for Numeric)")
     end
 
-    raise(Puppet::ParseError, "ceiling(): Wrong argument type " +
-          "given (#{arg.class} for Numeric)") if arg.is_a?(Numeric) == false
+    raise(Puppet::ParseError, "ceiling(): Wrong argument type given (#{arg.class} for Numeric)") if arg.is_a?(Numeric) == false
 
     arg.ceil
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chomp.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chomp.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chomp.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,12 +11,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "chomp(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "chomp(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'chomp(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'chomp(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chop.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chop.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/chop.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,12 +13,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "chop(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "chop(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'chop(): Requires either an ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'chop(): Requires either an array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/clamp.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/clamp.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/clamp.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,6 +11,5 @@
     args.flatten!
 
-    raise(Puppet::ParseError, 'clamp(): Wrong number of arguments, ' +
-          'need three to clamp') if args.size != 3
+    raise(Puppet::ParseError, 'clamp(): Wrong number of arguments, need three to clamp') if args.size != 3
 
     # check values out
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/concat.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/concat.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/concat.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,6 +18,5 @@
 
     # Check that more than 2 arguments have been given ...
-    raise(Puppet::ParseError, "concat(): Wrong number of arguments " +
-      "given (#{arguments.size} for < 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "concat(): Wrong number of arguments given (#{arguments.size} for < 2)") if arguments.size < 2
 
     a = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/count.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/count.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/count.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,6 +8,5 @@
 
     if (args.size > 2) then
-      raise(ArgumentError, "count(): Wrong number of arguments "+
-        "given #{args.size} for 1 or 2.")
+      raise(ArgumentError, "count(): Wrong number of arguments given #{args.size} for 1 or 2.")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -25,7 +25,28 @@
   end
   ret = false
-  if resource = findresource(reference.to_s)
+
+  if Puppet::Util::Package.versioncmp(Puppet.version, '4.6.0') >= 0
+    # Workaround for PE-20308
+    if reference.is_a?(String)
+      type_name, title = Puppet::Resource.type_and_title(reference, nil)
+      type = Puppet::Pops::Evaluator::Runtime3ResourceSupport.find_resource_type_or_class(find_global_scope, type_name.downcase)
+    elsif reference.is_a?(Puppet::Resource)
+      type = reference.resource_type
+      title = reference.title
+    else
+      raise(ArgumentError, "Reference is not understood: '#{reference.class}'")
+    end
+    #end workaround
+  else
+    type = reference.to_s
+    title = nil
+  end
+
+  if resource = findresource(type, title)
     matches = params.collect do |key, value|
-      resource[key] == value
+      # eql? avoids bugs caused by monkeypatching in puppet
+      resource_is_undef = resource[key].eql?(:undef) || resource[key].nil?
+      value_is_undef = value.eql?(:undef) || value.nil?
+      (resource_is_undef && value_is_undef) || (resource[key] == value)
     end
     ret = params.empty? || !matches.include?(false)
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,6 +2,4 @@
 # delete.rb
 #
-
-# TODO(Krzysztof Wilczynski): We need to add support for regular expression ...
 
 module Puppet::Parser::Functions
@@ -26,8 +24,5 @@
   ) do |arguments|
 
-    if (arguments.size != 2) then
-      raise(Puppet::ParseError, "delete(): Wrong number of arguments "+
-                                  "given #{arguments.size} for 2.")
-    end
+    raise(Puppet::ParseError, "delete(): Wrong number of arguments given #{arguments.size} for 2") unless arguments.size == 2
 
     collection = arguments[0].dup
@@ -39,6 +34,5 @@
           collection.gsub! item, ''
         else
-          raise(TypeError, "delete(): First argument must be an Array, " +
-                             "String, or Hash. Given an argument of class #{collection.class}.")
+          raise(TypeError, "delete(): First argument must be an Array, String, or Hash. Given an argument of class #{collection.class}.")
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_at.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_at.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_at.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -15,6 +15,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "delete_at(): Wrong number of arguments " +
-      "given (#{arguments.size} for 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "delete_at(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size < 2
 
     array = arguments[0]
@@ -27,6 +26,5 @@
 
     if index.is_a?(String) and not index.match(/^\d+$/)
-      raise(Puppet::ParseError, 'delete_at(): You must provide ' +
-        'non-negative numeric index')
+      raise(Puppet::ParseError, 'delete_at(): You must provide non-negative numeric index')
     end
 
@@ -37,6 +35,5 @@
 
     if index > result.size - 1 # First element is at index 0 is it not?
-      raise(Puppet::ParseError, 'delete_at(): Given index ' +
-        'exceeds size of array given')
+      raise(Puppet::ParseError, 'delete_at(): Given index exceeds size of array given')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_regex.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_regex.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_regex.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,44 @@
+#
+#  delete_regex.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
+#
+
+module Puppet::Parser::Functions
+  newfunction(:delete_regex, :type => :rvalue, :doc => <<-EOS
+deletes all instances of a given element that match a regular expression
+from an array or key from a hash. Multiple regular expressions are assumed
+to be matched as an OR.
+
+*Examples:*
+
+    delete_regex(['a','b','c','b'], 'b')
+    Would return: ['a','c']
+
+    delete_regex(['a','b','c','b'], ['b', 'c'])
+    Would return: ['a']
+
+    delete_regex({'a'=>1,'b'=>2,'c'=>3}, 'b')
+    Would return: {'a'=>1,'c'=>3}
+
+    delete_regex({'a'=>1,'b'=>2,'c'=>3}, '^a$')
+    Would return: {'b'=>2,'c'=>3}
+
+  EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "delete_regex(): Wrong number of arguments given #{arguments.size} for 2") unless arguments.size == 2
+
+    collection = arguments[0].dup
+    Array(arguments[1]).each do |item|
+      case collection
+        when Array, Hash, String
+          collection.reject! { |coll_item| (coll_item =~ %r{\b#{item}\b}) }
+        else
+          raise(TypeError, "delete_regex(): First argument must be an Array, Hash, or String. Given an argument of class #{collection.class}.")
+      end
+    end
+    collection
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,11 +16,8 @@
     ) do |args|
 
-    raise(Puppet::ParseError,
-          "delete_undef_values(): Wrong number of arguments given " +
-          "(#{args.size})") if args.size < 1
+    raise(Puppet::ParseError, "delete_undef_values(): Wrong number of arguments given (#{args.size})") if args.size < 1
 
     unless args[0].is_a? Array or args[0].is_a? Hash
-      raise(Puppet::ParseError,
-            "delete_undef_values(): expected an array or hash, got #{args[0]} type  #{args[0].class} ")
+      raise(Puppet::ParseError, "delete_undef_values(): expected an array or hash, got #{args[0]} type  #{args[0].class} ")
     end
     result = args[0].dup
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_values.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_values.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/delete_values.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,13 +12,10 @@
     ) do |arguments|
 
-    raise(Puppet::ParseError,
-          "delete_values(): Wrong number of arguments given " +
-          "(#{arguments.size} of 2)") if arguments.size != 2
+    raise(Puppet::ParseError, "delete_values(): Wrong number of arguments given (#{arguments.size} of 2)") if arguments.size != 2
 
     hash, item = arguments
 
     if not hash.is_a?(Hash)
-      raise(TypeError, "delete_values(): First argument must be a Hash. " + \
-                       "Given an argument of class #{hash.class}.")
+      raise(TypeError, "delete_values(): First argument must be a Hash. Given an argument of class #{hash.class}.")
     end
     hash.dup.delete_if { |key, val| item == val }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/deprecation.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/deprecation.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/deprecation.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,16 @@
+module Puppet::Parser::Functions
+  newfunction(:deprecation, :doc => <<-EOS
+  Function to print deprecation warnings (this is the 3.X version of it), The uniqueness key - can appear once. The msg is the message text including any positional information that is formatted by the user/caller of the method.).
+EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "deprecation: Wrong number of arguments given (#{arguments.size} for 2)") unless arguments.size == 2
+
+    key = arguments[0]
+    message = arguments[1]
+
+    if ENV['STDLIB_LOG_DEPRECATIONS'] == "true"
+      warning("deprecation. #{key}. #{message}")
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/difference.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/difference.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/difference.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,6 +18,5 @@
 
     # Two arguments are required
-    raise(Puppet::ParseError, "difference(): Wrong number of arguments " +
-      "given (#{arguments.size} for 2)") if arguments.size != 2
+    raise(Puppet::ParseError, "difference(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size != 2
 
     first = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,50 +5,12 @@
 module Puppet::Parser::Functions
   newfunction(:dig, :type => :rvalue, :doc => <<-EOS
-Looks up into a complex structure of arrays and hashes and returns nil
-or the default value if nothing was found.
-
-Path is an array of keys to be looked up in data argument. The function
-will go down the structure and try to extract the required value.
-
-$data = {
-  'a' => {
-    'b' => [
-      'b1',
-      'b2',
-      'b3' ]}}
-
-$value = dig($data, ['a', 'b', '2'], 'not_found')
-=> $value = 'b3'
-
-a -> first hash key
-b -> second hash key
-2 -> array index starting with 0
-
-not_found -> (optional) will be returned if there is no value or the path
-did not match. Defaults to nil.
-
-In addition to the required "path" argument, "dig" accepts default
-argument. It will be returned if no value was found or a path component is
-missing. And the fourth argument can set a variable path separator.
+    DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.
     EOS
-             ) do |arguments|
-    # Two arguments are required
-    raise(Puppet::ParseError, "dig(): Wrong number of arguments " +
-                              "given (#{arguments.size} for at least 2)") if arguments.size < 2
-
-    data, path, default = *arguments
-
-    if !(data.is_a?(Hash) || data.is_a?(Array))
-      raise(Puppet::ParseError, "dig(): first argument must be a hash or an array, " <<
-                                "given #{data.class.name}")
+  ) do |arguments|
+    warning("dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.")
+    if ! Puppet::Parser::Functions.autoloader.loaded?(:dig44)
+      Puppet::Parser::Functions.autoloader.load(:dig44)
     end
-
-    unless path.is_a? Array
-      raise(Puppet::ParseError, "dig(): second argument must be an array, " <<
-                                "given #{path.class.name}")
-    end
-
-    value = path.reduce(data) { |h, k| (h.is_a?(Hash) || h.is_a?(Array)) ? h[k] : break }
-    value.nil? ? default : value
+    function_dig44(arguments)
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig44.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig44.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/dig44.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,70 @@
+#
+# dig44.rb
+#
+
+module Puppet::Parser::Functions
+  newfunction(
+      :dig44,
+      :type => :rvalue,
+      :arity => -2,
+      :doc => <<-eos
+DEPRECATED: This function has been replaced in puppet 4.5.0.
+
+Looks up into a complex structure of arrays and hashes and returns a value
+or the default value if nothing was found.
+
+Key can contain slashes to describe path components. The function will go down
+the structure and try to extract the required value.
+
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = dig44($data, ['a', 'b', '2'], 'not_found')
+=> $value = 'b3'
+
+a -> first hash key
+b -> second hash key
+2 -> array index starting with 0
+
+not_found -> (optional) will be returned if there is no value or the path
+did not match. Defaults to nil.
+
+In addition to the required "key" argument, the function accepts a default
+argument. It will be returned if no value was found or a path component is
+missing. And the fourth argument can set a variable path separator.
+  eos
+  ) do |arguments|
+    # Two arguments are required
+    raise(Puppet::ParseError, "dig44(): Wrong number of arguments given (#{arguments.size} for at least 2)") if arguments.size < 2
+
+    data, path, default = *arguments
+
+    unless data.is_a?(Hash) or data.is_a?(Array)
+      raise(Puppet::ParseError, "dig44(): first argument must be a hash or an array, given #{data.class.name}")
+    end
+
+    unless path.is_a? Array
+      raise(Puppet::ParseError, "dig44(): second argument must be an array, given #{path.class.name}")
+    end
+
+    value = path.reduce(data) do |structure, key|
+      if structure.is_a? Hash or structure.is_a? Array
+        if structure.is_a? Array
+          key = Integer key rescue break
+        end
+        break if structure[key].nil? or structure[key] == :undef
+        structure[key]
+      else
+        break
+      end
+    end
+    value.nil? ? default : value
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/downcase.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/downcase.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/downcase.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
 #  downcase.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -9,12 +10,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "downcase(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "downcase(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'downcase(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'downcase(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/empty.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/empty.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/empty.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,12 +9,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "empty(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "empty(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(Hash) || value.is_a?(String) || value.is_a?(Numeric)
-      raise(Puppet::ParseError, 'empty(): Requires either ' +
-        'array, hash, string or integer to work with')
+      raise(Puppet::ParseError, 'empty(): Requires either array, hash, string or integer to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/enclose_ipv6.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/enclose_ipv6.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/enclose_ipv6.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,10 +17,8 @@
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "enclose_ipv6(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "enclose_ipv6(): Wrong number of arguments given #{arguments.size} for 1")
     end
     unless arguments[0].is_a?(String) or arguments[0].is_a?(Array) then
-      raise(Puppet::ParseError, "enclose_ipv6(): Wrong argument type "+
-        "given #{arguments[0].class} expected String or Array")
+      raise(Puppet::ParseError, "enclose_ipv6(): Wrong argument type given #{arguments[0].class} expected String or Array")
     end
 
@@ -33,6 +31,5 @@
           ip = IPAddr.new(val)
         rescue *rescuable_exceptions
-          raise(Puppet::ParseError, "enclose_ipv6(): Wrong argument "+
-                "given #{val} is not an ip address.")
+          raise(Puppet::ParseError, "enclose_ipv6(): Wrong argument given #{val} is not an ip address.")
         end
         val = "[#{ip.to_s}]" if ip.ipv6?
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,7 +12,6 @@
 
     if arguments.size > 2 or arguments.size == 0
-      raise(Puppet::ParseError, "ensure_packages(): Wrong number of arguments " +
-        "given (#{arguments.size} for 1 or 2)")
-    elsif arguments.size == 2 and !arguments[1].is_a?(Hash) 
+      raise(Puppet::ParseError, "ensure_packages(): Wrong number of arguments given (#{arguments.size} for 1 or 2)")
+    elsif arguments.size == 2 and !arguments[1].is_a?(Hash)
       raise(Puppet::ParseError, 'ensure_packages(): Requires second argument to be a Hash')
     end
@@ -26,5 +25,5 @@
 
       Puppet::Parser::Functions.function(:ensure_resources)
-      function_ensure_resources(['package', Hash(arguments[0]), defaults ])
+      function_ensure_resources(['package', arguments[0].dup, defaults ])
     else
       packages = Array(arguments[0])
@@ -38,5 +37,8 @@
       Puppet::Parser::Functions.function(:ensure_resource)
       packages.each { |package_name|
+      raise(Puppet::ParseError, 'ensure_packages(): Empty String provided for package name') if package_name.length == 0
+      if !findresource("Package[#{package_name}]")
         function_ensure_resource(['package', package_name, defaults ])
+      end
     }
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_resources.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_resources.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/ensure_resources.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -37,5 +37,5 @@
 
   if title.is_a?(Hash)
-    resource_hash = Hash(title)
+    resource_hash = title.dup
     resources = resource_hash.keys
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/flatten.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/flatten.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/flatten.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "flatten(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "flatten(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     array = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/floor.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/floor.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/floor.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,16 +6,13 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "floor(): Wrong number of arguments " +
-          "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "floor(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     begin
       arg = Float(arguments[0])
     rescue TypeError, ArgumentError => e
-      raise(Puppet::ParseError, "floor(): Wrong argument type " +
-            "given (#{arguments[0]} for Numeric)")
+      raise(Puppet::ParseError, "floor(): Wrong argument type given (#{arguments[0]} for Numeric)")
     end
 
-    raise(Puppet::ParseError, "floor(): Wrong argument type " +
-          "given (#{arg.class} for Numeric)") if arg.is_a?(Numeric) == false
+    raise(Puppet::ParseError, "floor(): Wrong argument type given (#{arg.class} for Numeric)") if arg.is_a?(Numeric) == false
 
     arg.floor
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
   a SEED can be useful if you need more than one unrelated rotation.") do |args|
 
-    raise(Puppet::ParseError, "fqdn_rotate(): Wrong number of arguments " +
-      "given (#{args.size} for 1)") if args.size < 1
+    raise(Puppet::ParseError, "fqdn_rotate(): Wrong number of arguments given (#{args.size} for 1)") if args.size < 1
 
     value = args.shift
@@ -23,6 +22,5 @@
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'fqdn_rotate(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'fqdn_rotate(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_uuid.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_uuid.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/fqdn_uuid.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,92 @@
+require 'digest/sha1'
+
+module Puppet::Parser::Functions
+  newfunction(:fqdn_uuid, :type => :rvalue, :doc => <<-END) do |args|
+
+    Creates a UUID based on a given string, assumed to be the FQDN
+
+    For example, to generate a UUID based on the FQDN of a system:
+
+    Usage:
+
+      $uuid = fqdn_uuid($::fqdn)
+
+    The generated UUID will be the same for the given hostname
+
+    The resulting UUID is returned on the form:
+
+      1d839dea-5e10-5243-88eb-e66815bd7d5c
+
+    (u.e. without any curly braces.)
+
+    The generated UUID is a version 5 UUID with the V5 DNS namespace:
+
+      6ba7b810-9dad-11d1-80b4-00c04fd430c8
+
+    This only supports a the V5 SHA-1 hash, using the DNS namespace.
+
+    Please consult http://www.ietf.org/rfc/rfc4122.txt for the details on
+    UUID generation and example implementation.
+
+    No verification is present at the moment as whether the domain name given
+    is in fact a correct fully-qualified domain name.  Therefore any arbitrary
+    string and/or alpha-numeric value can subside for a domain name.
+    EOS
+
+    END
+
+    if args.length == 0
+      raise(ArgumentError, "fqdn_uuid: No arguments given")
+    elsif args.length == 1
+      fqdn = args[0]
+    else
+      raise(ArgumentError, "fqdn_uuid: Too many arguments given (#{args.length})")
+    end
+
+    # Code lovingly taken from
+    # https://github.com/puppetlabs/marionette-collective/blob/master/lib/mcollective/ssl.rb
+
+    # This is the UUID version 5 type DNS name space which is as follows:
+    #
+    #  6ba7b810-9dad-11d1-80b4-00c04fd430c8
+    #
+    uuid_name_space_dns = [0x6b,
+      0xa7,
+      0xb8,
+      0x10,
+      0x9d,
+      0xad,
+      0x11,
+      0xd1,
+      0x80,
+      0xb4,
+      0x00,
+      0xc0,
+      0x4f,
+      0xd4,
+      0x30,
+      0xc8
+    ].map {|b| b.chr}.join
+
+    sha1 = Digest::SHA1.new
+    sha1.update(uuid_name_space_dns)
+    sha1.update(fqdn)
+
+    # first 16 bytes..
+    bytes = sha1.digest[0, 16].bytes.to_a
+
+    # version 5 adjustments
+    bytes[6] &= 0x0f
+    bytes[6] |= 0x50
+
+    # variant is DCE 1.1
+    bytes[8] &= 0x3f
+    bytes[8] |= 0x80
+
+    bytes = [4, 2, 2, 2, 6].collect do |i|
+      bytes.slice!(0, i).pack('C*').unpack('H*')
+    end
+
+    bytes.join('-')
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getparam.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getparam.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getparam.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -29,5 +29,5 @@
 
   if resource = findresource(reference.to_s)
-    return resource[param] if resource[param]
+    return resource[param] unless resource[param].nil?
   end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,7 +21,11 @@
 
     begin
+      result = nil
       catch(:undefined_variable) do
-        self.lookupvar("#{args[0]}")
+        result = self.lookupvar("#{args[0]}")
       end
+
+      # avoid relying on incosistent behaviour around ruby return values from catch
+      result
     rescue Puppet::ParseError # Eat the exception if strict_variables = true is set
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/glob.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/glob.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/glob.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,22 @@
+#
+#  glob.rb
+#
+
+module Puppet::Parser::Functions
+  newfunction(:glob, :type => :rvalue, :doc => <<-'EOS'
+    Returns an Array of file entries of a directory or an Array of directories.
+    Uses same patterns as Dir#glob
+    EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "glob(): Wrong number of arguments given " +
+      "(#{arguments.size} for 1)") unless arguments.size == 1
+
+    pattern = arguments[0]
+
+    raise(Puppet::ParseError, 'glob(): Requires either array or string ' +
+      'to work') unless pattern.is_a?(String) || pattern.is_a?(Array)
+
+    Dir.glob(pattern)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/grep.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/grep.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/grep.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,6 +19,5 @@
 
     if (arguments.size != 2) then
-      raise(Puppet::ParseError, "grep(): Wrong number of arguments "+
-        "given #{arguments.size} for 2")
+      raise(Puppet::ParseError, "grep(): Wrong number of arguments given #{arguments.size} for 2")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -20,6 +20,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "has_interface_with(): Wrong number of arguments " +
-          "given (#{args.size} for 1 or 2)") if args.size < 1 or args.size > 2
+    raise(Puppet::ParseError, "has_interface_with(): Wrong number of arguments given (#{args.size} for 1 or 2)") if args.size < 1 or args.size > 2
 
     interfaces = lookupvar('interfaces')
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,6 +12,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "has_ip_address(): Wrong number of arguments " +
-          "given (#{args.size} for 1)") if args.size != 1
+    raise(Puppet::ParseError, "has_ip_address(): Wrong number of arguments given (#{args.size} for 1)") if args.size != 1
 
     Puppet::Parser::Functions.autoloader.load(:has_interface_with) \
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,6 +12,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "has_ip_network(): Wrong number of arguments " +
-          "given (#{args.size} for 1)") if args.size != 1
+    raise(Puppet::ParseError, "has_ip_network(): Wrong number of arguments given (#{args.size} for 1)") if args.size != 1
 
     Puppet::Parser::Functions.autoloader.load(:has_interface_with) \
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/hash.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/hash.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -15,6 +15,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "hash(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "hash(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     array = arguments[0]
@@ -31,6 +30,5 @@
       result = Hash[*array]
     rescue StandardError
-      raise(Puppet::ParseError, 'hash(): Unable to compute ' +
-        'hash from array given')
+      raise(Puppet::ParseError, 'hash(): Unable to compute hash from array given')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/intersection.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/intersection.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/intersection.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
 
     # Two arguments are required
-    raise(Puppet::ParseError, "intersection(): Wrong number of arguments " +
-      "given (#{arguments.size} for 2)") if arguments.size != 2
+    raise(Puppet::ParseError, "intersection(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size != 2
 
     first = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_absolute_path.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_absolute_path.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -24,5 +24,5 @@
 
   ENDHEREDOC
-
+    function_deprecation([:is_absolute_path, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_path. There is further documentation for validate_legacy function in the README.'])
     require 'puppet/util'
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_array.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_array.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,6 +9,7 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "is_array(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    function_deprecation([:is_array, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README.'])
+
+    raise(Puppet::ParseError, "is_array(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     type = arguments[0]
@@ -19,4 +20,2 @@
   end
 end
-
-# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_bool.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,6 +9,7 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "is_bool(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size != 1
+    function_deprecation([:is_bool, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README.'])
+
+    raise(Puppet::ParseError, "is_bool(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     type = arguments[0]
@@ -19,4 +20,2 @@
   end
 end
-
-# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,6 +10,5 @@
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_domain_name(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_domain_name(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_email_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_email_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_email_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,6 +9,5 @@
              ) do |arguments|
     if arguments.size != 1
-      raise(Puppet::ParseError, 'is_email_address(): Wrong number of arguments '\
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_email_address(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_float.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_float.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_float.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,7 +9,8 @@
   ) do |arguments|
 
+    function_deprecation([:is_float, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Float. There is further documentation for validate_legacy function in the README.'])
+
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_float(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_float(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,6 +12,5 @@
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_function_available?(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_function_available?(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_hash.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_hash.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,6 +9,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "is_hash(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "is_hash(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     type = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_integer.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_integer.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_integer.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -14,7 +14,8 @@
   ) do |arguments|
 
+    function_deprecation([:is_integer, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Integer. There is further documentation for validate_legacy function in the README.'])
+
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_integer(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_integer(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,7 +11,8 @@
     require 'ipaddr'
 
+    function_deprecation([:is_ip_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ip_address. There is further documentation for validate_legacy function in the README.'])
+
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_ip_address(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_ip_address(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv4_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv4_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,7 +11,8 @@
     require 'ipaddr'
 
+    function_deprecation([:is_ipv4_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv4. There is further documentation for validate_legacy function in the README.'])
+
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_ipv4_address(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_ipv4_address(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv6_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv6_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,9 +9,10 @@
   ) do |arguments|
 
+    function_deprecation([:is_ipv6_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv6. There is further documentation for validate_legacy function in the README.'])
+
     require 'ipaddr'
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_ipv6_address(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_ipv6_address(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,6 +10,5 @@
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_mac_address(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_mac_address(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -25,7 +25,8 @@
   ) do |arguments|
 
+    function_deprecation([:is_numeric, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Numeric. There is further documentation for validate_legacy function in the README.'])
+
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "is_numeric(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "is_numeric(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
@@ -72,4 +73,2 @@
   end
 end
-
-# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_string.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_string.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/is_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,10 +9,12 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "is_string(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    function_deprecation([:is_string, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README.'])
+
+    raise(Puppet::ParseError, "is_string(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     type = arguments[0]
 
-    result = type.is_a?(String)
+    # when called through the v4 API shim, undef gets translated to nil
+    result = type.is_a?(String) || type.nil?
 
     if result and (type == type.to_f.to_s or type == type.to_i.to_s) then
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
 
     # Technically we support two arguments but only first is mandatory ...
-    raise(Puppet::ParseError, "join(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "join(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     array = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,5 +6,6 @@
   newfunction(:join_keys_to_values, :type => :rvalue, :doc => <<-EOS
 This function joins each key of a hash to that key's corresponding value with a
-separator. Keys and values are cast to strings. The return value is an array in
+separator. Keys are cast to strings. If values are arrays, multiple keys
+are added for each element. The return value is an array in
 which each element is one joined key/value pair.
 
@@ -14,4 +15,8 @@
 
 Would result in: ["a is 1","b is 2"]
+
+    join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")
+
+Would result in: ["a is 1","b is 2","b is 3"]
     EOS
   ) do |arguments|
@@ -19,6 +24,5 @@
     # Validate the number of arguments.
     if arguments.size != 2
-      raise(Puppet::ParseError, "join_keys_to_values(): Takes exactly two " +
-            "arguments, but #{arguments.size} given.")
+      raise(Puppet::ParseError, "join_keys_to_values(): Takes exactly two arguments, but #{arguments.size} given.")
     end
 
@@ -26,6 +30,5 @@
     hash = arguments[0]
     if not hash.is_a?(Hash)
-      raise(TypeError, "join_keys_to_values(): The first argument must be a " +
-            "hash, but a #{hash.class} was given.")
+      raise(TypeError, "join_keys_to_values(): The first argument must be a hash, but a #{hash.class} was given.")
     end
 
@@ -33,12 +36,15 @@
     separator = arguments[1]
     if not separator.is_a?(String)
-      raise(TypeError, "join_keys_to_values(): The second argument must be a " +
-            "string, but a #{separator.class} was given.")
+      raise(TypeError, "join_keys_to_values(): The second argument must be a string, but a #{separator.class} was given.")
     end
 
     # Join the keys to their values.
     hash.map do |k,v|
-      String(k) + separator + String(v)
-    end
+      if v.is_a?(Array)
+        v.map { |va| String(k) + separator + String(va) }
+      else
+        String(k) + separator + String(v)
+      end
+    end.flatten
 
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/keys.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/keys.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/keys.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,6 +9,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "keys(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "keys(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     hash = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadjson.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadjson.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadjson.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,34 @@
+module Puppet::Parser::Functions
+  newfunction(:loadjson, :type => :rvalue, :arity => -2, :doc => <<-'ENDHEREDOC') do |args|
+Load a JSON file containing an array, string, or hash, and return the data
+in the corresponding native data type.
+The second parameter is the default value. It will be returned if the file
+was not found or could not be parsed.
+
+For example:
+
+    $myhash = loadjson('/etc/puppet/data/myhash.json')
+    $myhash = loadjson('no-file.json', {'default' => 'value'})
+  ENDHEREDOC
+
+    raise ArgumentError, 'Wrong number of arguments. 1 or 2 arguments should be provided.' unless args.length >= 1
+
+    if File.exists?(args[0])
+      begin
+        content = File.read(args[0])
+        PSON::load(content) || args[1]
+      rescue Exception => e
+        if args[1]
+          args[1]
+        else
+          raise e
+        end
+      end
+    else
+      warning("Can't load '#{args[0]}' File does not exist!")
+      args[1]
+    end
+
+  end
+
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,22 +1,31 @@
 module Puppet::Parser::Functions
+  newfunction(:loadyaml, :type => :rvalue, :arity => -2, :doc => <<-'ENDHEREDOC') do |args|
+Load a YAML file containing an array, string, or hash, and return the data
+in the corresponding native data type.
+The second parameter is the default value. It will be returned if the file
+was not found or could not be parsed.
 
-  newfunction(:loadyaml, :type => :rvalue, :doc => <<-'ENDHEREDOC') do |args|
-    Load a YAML file containing an array, string, or hash, and return the data
-    in the corresponding native data type.
+For example:
 
-    For example:
+    $myhash = loadyaml('/etc/puppet/data/myhash.yaml')
+    $myhash = loadyaml('no-file.yaml', {'default' => 'value'})
+  ENDHEREDOC
 
-        $myhash = loadyaml('/etc/puppet/data/myhash.yaml')
-    ENDHEREDOC
+    raise ArgumentError, 'Wrong number of arguments. 1 or 2 arguments should be provided.' unless args.length >= 1
+    require 'yaml'
 
-    unless args.length == 1
-      raise Puppet::ParseError, ("loadyaml(): wrong number of arguments (#{args.length}; must be 1)")
-    end
-
-    if File.exists?(args[0]) then
-      YAML.load_file(args[0])
+    if File.exists?(args[0])
+      begin
+        YAML::load_file(args[0]) || args[1]
+      rescue Exception => e
+        if args[1]
+          args[1]
+        else
+          raise e
+        end
+      end
     else
-      warning("Can't load " + args[0] + ". File does not exist!")
-      nil
+      warning("Can't load '#{args[0]}' File does not exist!")
+      args[1]
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/lstrip.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/lstrip.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/lstrip.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,12 +9,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "lstrip(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "lstrip(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'lstrip(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'lstrip(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/max.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/max.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/max.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,6 +6,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "max(): Wrong number of arguments " +
-          "need at least one") if args.size == 0
+    raise(Puppet::ParseError, "max(): Wrong number of arguments need at least one") if args.size == 0
 
     # Sometimes we get numbers as numerics and sometimes as strings.
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/member.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/member.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/member.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -31,6 +31,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "member(): Wrong number of arguments " +
-      "given (#{arguments.size} for 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "member(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size < 2
 
     array = arguments[0]
@@ -51,6 +50,5 @@
 
 
-    raise(Puppet::ParseError, 'member(): You must provide item ' +
-      'to search for within array given') if item.respond_to?('empty?') && item.empty?
+    raise(Puppet::ParseError, 'member(): You must provide item to search for within array given') if item.respond_to?('empty?') && item.empty?
 
     result = (item - array).empty?
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/min.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/min.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/min.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,6 +6,5 @@
   ) do |args|
 
-    raise(Puppet::ParseError, "min(): Wrong number of arguments " +
-          "need at least one") if args.size == 0
+    raise(Puppet::ParseError, "min(): Wrong number of arguments need at least one") if args.size == 0
 
     # Sometimes we get numbers as numerics and sometimes as strings.
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/num2bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/num2bool.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/num2bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,6 +11,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "num2bool(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "num2bool(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     number = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/prefix.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/prefix.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/prefix.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
 
     # Technically we support two arguments but only first is mandatory ...
-    raise(Puppet::ParseError, "prefix(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "prefix(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     enumerable = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pry.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pry.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pry.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,30 @@
+#
+# pry.rb
+#
+
+module Puppet::Parser::Functions
+  newfunction(:pry, :type => :statement, :doc => <<-EOS
+This function invokes a pry debugging session in the current scope object. This is useful for debugging manifest code at specific points during a compilation.
+
+*Examples:*
+
+    pry()
+    EOS
+  ) do |arguments|
+    begin
+      require 'pry'
+    rescue LoadError
+      raise(Puppet::Error, "pry(): Requires the 'pry' rubygem to use, but it was not found")
+    end
+    #
+    ## Run `catalog` to see the contents currently compiling catalog
+    ## Run `cd catalog` and `ls` to see catalog methods and instance variables
+    ## Run `@resource_table` to see the current catalog resource table
+    #
+    if $stdout.isatty
+      binding.pry # rubocop:disable Lint/Debugger
+    else
+      Puppet.warning 'pry(): cowardly refusing to start the debugger on a daemonized master'
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pw_hash.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pw_hash.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/pw_hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,2 +1,5 @@
+
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
+
 Puppet::Parser::Functions::newfunction(
   :pw_hash,
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/range.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/range.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/range.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -26,6 +26,6 @@
 
     range("host01", "host10")
-
 Will return: ["host01", "host02", ..., "host09", "host10"]
+NB Be explicit in including trailing zeros. Otherwise the underlying ruby function will fail.
 
 Passing a third argument will cause the generated range to step by that
@@ -38,6 +38,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, 'range(): Wrong number of ' +
-      'arguments given (0 for 1)') if arguments.size == 0
+    raise(Puppet::ParseError, 'range(): Wrong number of arguments given (0 for 1)') if arguments.size == 0
 
     if arguments.size > 1
@@ -58,6 +57,5 @@
         step = 1
       elsif value.match(/^.+$/)
-        raise(Puppet::ParseError, "range(): Unable to compute range " +
-          "from the value: #{value}")
+        raise(Puppet::ParseError, "range(): Unable to compute range from the value: #{value}")
       else
         raise(Puppet::ParseError, "range(): Unknown range format: #{value}")
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/regexpescape.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/regexpescape.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/regexpescape.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,29 @@
+#
+#  regexpescape.rb
+#
+module Puppet::Parser::Functions
+  newfunction(:regexpescape, :type => :rvalue, :doc => <<-EOS
+    Regexp escape a string or array of strings.
+    Requires either a single string or an array as an input.
+    EOS
+  ) do |arguments| # rubocop:disable Style/ClosingParenthesisIndentation
+    raise(Puppet::ParseError, "regexpescape(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.empty?
+
+    value = arguments[0]
+
+    unless value.is_a?(Array) || value.is_a?(String)
+      raise(Puppet::ParseError, 'regexpescape(): Requires either array or string to work with')
+    end
+
+    result = if value.is_a?(Array)
+               # Numbers in Puppet are often string-encoded which is troublesome ...
+               value.collect { |i| i.is_a?(String) ? Regexp.escape(i) : i }
+             else
+               Regexp.escape(value)
+             end
+
+    return result
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/reverse.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/reverse.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/reverse.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,12 +9,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "reverse(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "reverse(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'reverse(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'reverse(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/rstrip.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/rstrip.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/rstrip.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,12 +9,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "rstrip(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "rstrip(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'rstrip(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'rstrip(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_escape.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_escape.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_escape.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,29 @@
+#
+# shell_escape.rb
+#
+
+require 'shellwords'
+
+module Puppet::Parser::Functions
+  newfunction(:shell_escape, :type => :rvalue, :doc => <<-EOS
+Escapes a string so that it can be safely used in a Bourne shell command line.
+
+Note that the resulting string should be used unquoted and is not intended for use in double quotes nor in single
+quotes.
+
+This function behaves the same as ruby's Shellwords.shellescape() function.
+  EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "shell_escape(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
+
+    # explicit conversion to string is required for ruby 1.9
+    string = arguments[0].to_s
+
+    result = Shellwords.shellescape(string)
+
+    return result
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_join.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_join.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_join.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,30 @@
+#
+# shell_join.rb
+#
+
+require 'shellwords'
+
+module Puppet::Parser::Functions
+  newfunction(:shell_join, :type => :rvalue, :doc => <<-EOS
+Builds a command line string from the given array of strings. Each array item is escaped for Bourne shell. All items are
+then joined together, with a single space in between.
+
+This function behaves the same as ruby's Shellwords.shelljoin() function
+  EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "shell_join(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
+
+    array = arguments[0]
+
+    raise Puppet::ParseError, ("First argument is not an Array: #{array.inspect}") unless array.is_a?(Array)
+
+    # explicit conversion to string is required for ruby 1.9
+    array = array.map { |item| item.to_s }
+    result = Shellwords.shelljoin(array)
+
+    return result
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_split.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_split.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shell_split.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,25 @@
+#
+# shell_split.rb
+#
+
+require 'shellwords'
+
+module Puppet::Parser::Functions
+  newfunction(:shell_split, :type => :rvalue, :doc => <<-EOS
+Splits a string into an array of tokens in the same way the Bourne shell does.
+
+This function behaves the same as ruby's Shellwords.shellsplit() function
+  EOS
+  ) do |arguments|
+
+    raise(Puppet::ParseError, "shell_split(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
+
+    string = arguments[0].to_s
+
+    result = Shellwords.shellsplit(string)
+
+    return result
+  end
+end
+
+# vim: set ts=2 sw=2 et :
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shuffle.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shuffle.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/shuffle.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,12 +9,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "shuffle(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "shuffle(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'shuffle(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'shuffle(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/size.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/size.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/size.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,8 +9,9 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "size(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "size(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     item = arguments[0]
+
+    function_deprecation([:size, 'This method is going to be deprecated, please use the stdlib length function.'])
 
     if item.is_a?(String)
@@ -27,6 +28,5 @@
         Float(item)
 
-        raise(Puppet::ParseError, 'size(): Requires either ' +
-          'string, array or hash to work with')
+        raise(Puppet::ParseError, 'size(): Requires either string, array or hash to work with')
 
       rescue ArgumentError
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/sort.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/sort.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/sort.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
-# sort.rb
+#  sort.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -10,6 +11,5 @@
 
     if (arguments.size != 1) then
-      raise(Puppet::ParseError, "sort(): Wrong number of arguments "+
-        "given #{arguments.size} for 1")
+      raise(Puppet::ParseError, "sort(): Wrong number of arguments given #{arguments.size} for 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/squeeze.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/squeeze.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/squeeze.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,6 +10,5 @@
 
     if ((arguments.size != 2) and (arguments.size != 1)) then
-      raise(Puppet::ParseError, "squeeze(): Wrong number of arguments "+
-        "given #{arguments.size} for 2 or 1")
+      raise(Puppet::ParseError, "squeeze(): Wrong number of arguments given #{arguments.size} for 2 or 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2bool.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,6 +11,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "str2bool(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "str2bool(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     string = arguments[0]
@@ -22,6 +21,5 @@
 
     unless string.is_a?(String)
-      raise(Puppet::ParseError, 'str2bool(): Requires either ' +
-        'string to work with')
+      raise(Puppet::ParseError, 'str2bool(): Requires string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
-# str2saltedsha512.rb
+#  str2saltedsha512.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -13,12 +14,10 @@
     require 'digest/sha2'
 
-    raise(Puppet::ParseError, "str2saltedsha512(): Wrong number of arguments " +
-      "passed (#{arguments.size} but we require 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "str2saltedsha512(): Wrong number of arguments passed (#{arguments.size} but we require 1)") if arguments.size != 1
 
     password = arguments[0]
 
     unless password.is_a?(String)
-      raise(Puppet::ParseError, 'str2saltedsha512(): Requires a ' +
-        "String argument, you passed: #{password.class}")
+      raise(Puppet::ParseError, "str2saltedsha512(): Requires a String argument, you passed: #{password.class}")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strftime.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strftime.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strftime.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
-# strftime.rb
+#  strftime.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -72,11 +73,9 @@
 
     # Technically we support two arguments but only first is mandatory ...
-    raise(Puppet::ParseError, "strftime(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "strftime(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     format = arguments[0]
 
-    raise(Puppet::ParseError, 'strftime(): You must provide ' +
-      'format for evaluation') if format.empty?
+    raise(Puppet::ParseError, 'strftime(): You must provide format for evaluation') if format.empty?
 
     # The Time Zone argument is optional ...
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strip.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strip.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/strip.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,12 +16,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "strip(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "strip(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'strip(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'strip(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/suffix.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/suffix.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/suffix.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,6 +17,5 @@
 
     # Technically we support two arguments but only first is mandatory ...
-    raise(Puppet::ParseError, "suffix(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "suffix(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     enumerable = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/swapcase.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/swapcase.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/swapcase.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
 #  swapcase.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -15,12 +16,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "swapcase(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "swapcase(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'swapcase(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'swapcase(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/time.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/time.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/time.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,6 +19,5 @@
 
     if (arguments.size != 0) and (arguments.size != 1) then
-      raise(Puppet::ParseError, "time(): Wrong number of arguments "+
-        "given #{arguments.size} for 0 or 1")
+      raise(Puppet::ParseError, "time(): Wrong number of arguments given #{arguments.size} for 0 or 1")
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,6 +8,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "to_bytes(): Wrong number of arguments " +
-          "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "to_bytes(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     arg = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/type3x.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/type3x.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/type3x.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,6 +17,5 @@
     EOS
   ) do |args|
-    raise(Puppet::ParseError, "type3x(): Wrong number of arguments " +
-      "given (#{args.size} for 1)") if args.size < 1
+    raise(Puppet::ParseError, "type3x(): Wrong number of arguments given (#{args.size} for 1)") if args.size < 1
 
     value = args[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/union.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/union.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/union.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,6 +16,5 @@
 
     # Check that 2 or more arguments have been given ...
-    raise(Puppet::ParseError, "union(): Wrong number of arguments " +
-      "given (#{arguments.size} for < 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "union(): Wrong number of arguments given (#{arguments.size} for < 2)") if arguments.size < 2
 
     arguments.each do |argument|
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/unique.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/unique.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/unique.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -25,12 +25,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "unique(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "unique(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'unique(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'unique(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/upcase.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/upcase.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/upcase.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
-# upcase.rb
+#  upcase.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 
@@ -17,12 +18,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "upcase(): Wrong number of arguments " +
-                                "given (#{arguments.size} for 1)") if arguments.size != 1
+    raise(Puppet::ParseError, "upcase(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(Hash) || value.respond_to?(:upcase)
-      raise(Puppet::ParseError, 'upcase(): Requires an ' +
-                                  'array, hash or object that responds to upcase in order to work')
+      raise(Puppet::ParseError, 'upcase(): Requires an array, hash or object that responds to upcase in order to work')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/uriescape.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/uriescape.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/uriescape.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,5 @@
 #
 #  uriescape.rb
+#  Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility please use this function with Ruby 2.4.0 or greater - https://bugs.ruby-lang.org/issues/10085.
 #
 require 'uri'
@@ -11,12 +12,10 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "uriescape(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "uriescape(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     value = arguments[0]
 
     unless value.is_a?(Array) || value.is_a?(String)
-      raise(Puppet::ParseError, 'uriescape(): Requires either ' +
-        'array or string to work with')
+      raise(Puppet::ParseError, 'uriescape(): Requires either array or string to work with')
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -27,4 +27,7 @@
     ENDHEREDOC
 
+    # The deprecation function was being called twice, as validate_absolute_path calls is_absolute_path. I have removed it from here so it only calls deprecation once within is_absolute_path.
+    # function_deprecation([:validate_absolute_path, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_path. There is further documentation for validate_legacy function in the README.'])
+
     require 'puppet/util'
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_array.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_array.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_array.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,4 +19,6 @@
     ENDHEREDOC
 
+    function_deprecation([:validate_array, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README.'])
+
     unless args.length > 0 then
       raise Puppet::ParseError, ("validate_array(): wrong number of arguments (#{args.length}; must be > 0)")
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -20,4 +20,7 @@
     ENDHEREDOC
 
+    # The deprecation function was being called twice, as validate_bool calls is_bool. I have removed it from here so it only calls deprecation once within is_bool.
+    # function_deprecation([:validate_bool, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README.'])
+
     unless args.length > 0 then
       raise Puppet::ParseError, ("validate_bool(): wrong number of arguments (#{args.length}; must be > 0)")
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_email_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_email_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_email_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,4 +1,4 @@
 module Puppet::Parser::Functions
-  newfunction(:validate_email_address, doc: <<-ENDHEREDOC
+  newfunction(:validate_email_address, :doc => <<-ENDHEREDOC
     Validate that all values passed are valid email addresses.
     Fail compilation if any value fails this check.
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,4 +19,6 @@
     ENDHEREDOC
 
+    function_deprecation([:validate_hash, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README.'])
+
     unless args.length > 0 then
       raise Puppet::ParseError, ("validate_hash(): wrong number of arguments (#{args.length}; must be > 0)")
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_integer.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_integer.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_integer.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,5 +3,5 @@
   newfunction(:validate_integer, :doc => <<-'ENDHEREDOC') do |args|
     Validate that the first argument is an integer (or an array of integers). Abort catalog compilation if any of the checks fail.
-    
+
     The second argument is optional and passes a maximum. (All elements of) the first argument has to be less or equal to this max.
 
@@ -53,4 +53,6 @@
 
     ENDHEREDOC
+
+    function_deprecation([:validate_integer, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Integer. There is further documentation for validate_legacy function in the README.'])
 
     # tell the user we need at least one, and optionally up to two other parameters
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ip_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -9,10 +9,10 @@
     validate_ip_address($my_ip)
     validate_ip_address("8.8.8.8", "172.16.0.1", $my_ip)
-    
+
     $my_ip = "3ffe:505:2"
     validate_ip_address(1)
     validate_ip_address($my_ip)
     validate_ip_address("fe80::baf6:b1ff:fe19:7507", $my_ip)
-   
+
     The following values will fail, causing compilation to abort:
     $some_array = [ 1, true, false, "garbage string", "3ffe:505:2" ]
@@ -23,4 +23,6 @@
     require "ipaddr"
     rescuable_exceptions = [ ArgumentError ]
+
+    function_deprecation([:validate_ip_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ip_address. There is further documentation for validate_legacy function in the README.'])
 
     if defined?(IPAddr::InvalidAddressError)
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,4 +18,6 @@
     ENDHEREDOC
   ) do |args|
+
+    function_deprecation([:validate_ipv4_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv4. There is further documentation for validate_legacy function in the README.'])
 
     require "ipaddr"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,4 +19,6 @@
     ENDHEREDOC
   ) do |args|
+
+    function_deprecation([:validate_ipv6_address, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv6. There is further documentation for validate_legacy function in the README.'])
 
     require "ipaddr"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_numeric.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_numeric.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_numeric.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,5 +3,5 @@
   newfunction(:validate_numeric, :doc => <<-'ENDHEREDOC') do |args|
     Validate that the first argument is a numeric value (or an array of numeric values). Abort catalog compilation if any of the checks fail.
-    
+
     The second argument is optional and passes a maximum. (All elements of) the first argument has to be less or equal to this max.
 
@@ -15,4 +15,6 @@
 
     ENDHEREDOC
+
+    function_deprecation([:validate_numeric, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Numeric. There is further documentation for validate_legacy function in the README.'])
 
     # tell the user we need at least one, and optionally up to two other parameters
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_re.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_re.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_re.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -30,4 +30,7 @@
 
     ENDHEREDOC
+
+    function_deprecation([:validate_re, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Re. There is further documentation for validate_legacy function in the README.'])
+
     if (args.length < 2) or (args.length > 3) then
       raise Puppet::ParseError, "validate_re(): wrong number of arguments (#{args.length}; must be 2 or 3)"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,4 +21,6 @@
 
     ENDHEREDOC
+
+    function_deprecation([:validate_slength, 'This method is deprecated, please use the stdlib validate_legacy function, with String[]. There is further documentation for validate_legacy function in the README.'])
 
     raise Puppet::ParseError, "validate_slength(): Wrong number of arguments (#{args.length}; must be 2 or 3)" unless args.length == 2 or args.length == 3
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_string.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_string.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/validate_string.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -14,13 +14,15 @@
         validate_string(true)
         validate_string([ 'some', 'array' ])
-        
+
     Note: validate_string(undef) will not fail in this version of the
     functions API (incl. current and future parser). Instead, use:
-    
+
         if $var == undef {
           fail('...')
         }
-    
+
     ENDHEREDOC
+
+    function_deprecation([:validate_string, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README.'])
 
     unless args.length > 0 then
@@ -29,5 +31,6 @@
 
     args.each do |arg|
-      unless arg.is_a?(String)
+      # when called through the v4 API shim, undef gets translated to nil
+      unless arg.is_a?(String) || arg.nil?
         raise Puppet::ParseError, ("#{arg.inspect} is not a string.  It looks to be a #{arg.class}")
       end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -22,6 +22,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "values(): Wrong number of arguments " +
-      "given (#{arguments.size} for 1)") if arguments.size < 1
+    raise(Puppet::ParseError, "values(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
 
     hash = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values_at.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values_at.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/values_at.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -30,6 +30,5 @@
   ) do |arguments|
 
-    raise(Puppet::ParseError, "values_at(): Wrong number of " +
-      "arguments given (#{arguments.size} for 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "values_at(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size < 2
 
     array = arguments.shift
@@ -42,6 +41,5 @@
 
     if not indices or indices.empty?
-      raise(Puppet::ParseError, 'values_at(): You must provide ' +
-        'at least one positive index to collect')
+      raise(Puppet::ParseError, 'values_at(): You must provide at least one positive index to collect')
     end
 
@@ -58,9 +56,7 @@
 
         if start > stop
-          raise(Puppet::ParseError, 'values_at(): Stop index in ' +
-            'given indices range is smaller than the start index')
+          raise(Puppet::ParseError, 'values_at(): Stop index in given indices range is smaller than the start index')
         elsif stop > array.size - 1 # First element is at index 0 is it not?
-          raise(Puppet::ParseError, 'values_at(): Stop index in ' +
-            'given indices range exceeds array size')
+          raise(Puppet::ParseError, 'values_at(): Stop index in given indices range exceeds array size')
         end
 
@@ -74,6 +70,5 @@
         # Only positive numbers allowed in this case ...
         if not i.match(/^\d+$/)
-          raise(Puppet::ParseError, 'values_at(): Unknown format ' +
-            'of given index')
+          raise(Puppet::ParseError, 'values_at(): Unknown format of given index')
         end
 
@@ -82,6 +77,5 @@
 
         if i > array.size - 1 # Same story.  First element is at index 0 ...
-          raise(Puppet::ParseError, 'values_at(): Given index ' +
-            'exceeds array size')
+          raise(Puppet::ParseError, 'values_at(): Given index exceeds array size')
         end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/zip.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/zip.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/zip.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,6 +18,5 @@
 
     # Technically we support three arguments but only first is mandatory ...
-    raise(Puppet::ParseError, "zip(): Wrong number of arguments " +
-      "given (#{arguments.size} for 2)") if arguments.size < 2
+    raise(Puppet::ParseError, "zip(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size < 2
 
     a = arguments[0]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/provider/file_line/ruby.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/provider/file_line/ruby.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/provider/file_line/ruby.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,5 +5,9 @@
     else
       lines.find do |line|
-        line.chomp == resource[:line].chomp
+        if resource[:ensure].to_s == 'absent' and resource[:match_for_absence].to_s == 'true'
+          line.chomp =~ Regexp.new(resource[:match])
+        else
+          line.chomp == resource[:line].chomp
+        end
       end
     end
@@ -37,5 +41,10 @@
     #  small-ish config files that can fit into memory without
     #  too much trouble.
-    @lines ||= File.readlines(resource[:path])
+    begin
+      @lines ||= File.readlines(resource[:path], :encoding => resource[:encoding])
+    rescue TypeError => e
+      # Ruby 1.8 doesn't support open_args
+      @lines ||= File.readlines(resource[:path])
+    end
   end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/type/file_line.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/type/file_line.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/type/file_line.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -49,4 +49,20 @@
     error will be raised unless the `multiple => true` parameter is set.
 
+    Encoding example:
+
+        file_line { "XScreenSaver":
+          ensure   => present,
+          path     => '/root/XScreenSaver'
+          line     => "*lock: 10:00:00",
+          match    => '^*lock:',
+          encoding => "iso-8859-1",
+        }
+
+    Files with special characters that are not valid UTF-8 will give the 
+    error message "invalid byte sequence in UTF-8".  In this case, determine
+    the correct file encoding and specify the correct encoding using the
+    encoding attribute, the value of which needs to be a valid Ruby character
+    encoding.
+
     **Autorequires:** If Puppet is managing the file that will contain the line
     being managed, the file_line resource will autorequire that file.
@@ -72,5 +88,6 @@
     desc 'An optional value to determine if match should be applied when ensure => absent.' +
          ' If set to true and match is set, the line that matches match will be deleted.' +
-         ' If set to false (the default), match is ignored when ensure => absent.'
+         ' If set to false (the default), match is ignored when ensure => absent.' +
+         ' When `ensure => present`, match_for_absence is ignored.'
     newvalues(true, false)
     defaultto false
@@ -84,5 +101,6 @@
 
   newparam(:after) do
-    desc 'An optional value used to specify the line after which we will add any new lines. (Existing lines are added in place)'
+    desc 'An optional value used to specify the line after which we will add any new lines. (Existing lines are added in place)' +
+         ' This is also takes a regex.'
   end
 
@@ -94,6 +112,6 @@
     desc 'The file Puppet will ensure contains the line specified by the line parameter.'
     validate do |value|
-      unless (Puppet.features.posix? and value =~ /^\//) or (Puppet.features.microsoft_windows? and (value =~ /^.:\// or value =~ /^\/\/[^\/]+\/[^\/]+/))
-        raise(Puppet::Error, "File paths must be fully qualified, not '#{value}'")
+      unless Puppet::Util.absolute_path?(value)
+        raise Puppet::Error, "File paths must be fully qualified, not '#{value}'"
       end
     end
@@ -104,4 +122,9 @@
     newvalues(true, false)
     defaultto true
+  end
+
+  newparam(:encoding) do
+    desc 'For files that are not UTF-8 encoded, specify encoding such as iso-8859-1'
+    defaultto 'UTF-8'
   end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/locales/config.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/locales/config.yaml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/locales/config.yaml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,25 @@
+---
+# This is the project-specific configuration file for setting up
+# fast_gettext for your project.
+gettext:
+  # This is used for the name of the .pot and .po files; they will be
+  # called <project_name>.pot?
+  project_name: puppetlabs-stdlib
+  # This is used in comments in the .pot and .po files to indicate what
+  # project the files belong to and should bea little more desctiptive than
+  # <project_name>
+  package_name: puppetlabs-stdlib
+  # The locale that the default messages in the .pot file are in
+  default_locale: en
+  # The email used for sending bug reports.
+  bugs_address: docs@puppet.com
+  # The holder of the copyright.
+  copyright_holder: Puppet, Inc.
+  # This determines which comments in code should be eligible for translation.
+  # Any comments that start with this string will be externalized. (Leave
+  # empty to include all.)
+  comments_tag: TRANSLATOR
+  # Patterns for +Dir.glob+ used to find all files that might contain
+  # translatable content, relative to the project root directory
+  source_files:
+  
Index: src/puppetcode/environments/gnuboat/modules/stdlib/locales/ja/puppetlabs-stdlib.po
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/locales/ja/puppetlabs-stdlib.po	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/locales/ja/puppetlabs-stdlib.po	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,26 @@
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-03-21 14:19+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: 梅田智世 <c-umeda@nifty.com>, 2017\n"
+"Language-Team: Japanese (Japan) (https://www.transifex.com/puppet/teams/29089/ja_JP/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: ja_JP\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Translate Toolkit 2.0.0\n"
+
+#. metadata.json
+#: .summary
+msgid "Standard library of resources for Puppet modules."
+msgstr "Puppet モジュールのリソースの標準ライブラリ"
+
+#. metadata.json
+#: .description
+msgid "Standard Library for Puppet Modules"
+msgstr "Puppet モジュールの標準ライブラリ"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/locales/puppetlabs-stdlib.pot
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/locales/puppetlabs-stdlib.pot	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/locales/puppetlabs-stdlib.pot	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,23 @@
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-03-21 14:19+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Translate Toolkit 2.0.0\n"
+
+#. metadata.json
+#: .summary
+msgid "Standard library of resources for Puppet modules."
+msgstr ""
+
+#. metadata.json
+#: .description
+msgid "Standard Library for Puppet Modules"
+msgstr ""
Index: src/puppetcode/environments/gnuboat/modules/stdlib/metadata.json
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/metadata.json	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/metadata.json	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,5 +1,5 @@
 {
   "name": "puppetlabs-stdlib",
-  "version": "4.12.0",
+  "version": "4.17.1",
   "author": "puppetlabs",
   "summary": "Standard library of resources for Puppet modules.",
@@ -70,5 +70,6 @@
         "10.04",
         "12.04",
-        "14.04"
+        "14.04",
+        "16.04"
       ]
     },
@@ -77,6 +78,5 @@
       "operatingsystemrelease": [
         "10",
-        "11",
-        "12"
+        "11"
       ]
     },
@@ -105,10 +105,6 @@
   "requirements": [
     {
-      "name": "pe",
-      "version_requirement": ">= 3.0.0 < 2015.4.0"
-    },
-    {
       "name": "puppet",
-      "version_requirement": ">=2.7.20 <5.0.0"
+      "version_requirement": ">= 4.7.0 < 5.0.0"
     }
   ],
Index: src/puppetcode/environments/gnuboat/modules/stdlib/readmes/README_ja_JP.md
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/readmes/README_ja_JP.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/readmes/README_ja_JP.md	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2357 @@
+# stdlib
+
+#### 目次
+
+1. [モジュールの説明 - モジュールの機能とその有益性](#モジュールの説明)
+1. [セットアップ - stdlib導入の基本](#セットアップ)
+1. [使用 - 設定オプションと追加機能](#使用)
+1. [リファレンス - モジュールの機能と動作について](#リファレンス)
+    1. [クラス](#クラス)
+    1. [定義タイプ](#定義タイプ)
+    1. [データタイプ](#データタイプ)
+    1. [Facts](#facts)
+    1. [関数](#関数)
+1. [制約 - OS互換性など](#制約)
+1. [開発 - モジュール貢献についてのガイド](#開発)
+1. [コントリビュータ](#コントリビュータ)
+
+
+## モジュールの説明
+
+このモジュールでは、Puppetモジュールのリソースの 標準ライブラリを提供しています。Puppetモジュールでは、この標準ライブラリを広く使用しています。stdlibモジュールは、以下のリソースをPuppetに追加します。
+
+ * ステージ
+ * Facts
+ * 関数
+ * 定義タイプ
+ * データタイプ
+ * プロバイダ
+
+> *注:* バージョン3.7のPuppet Enterpriseには、stdlibモジュールが含まれていません。Puppet Enterpriseを使用している場合は、Puppetと互換性のあるstdlibの最新リリースをインストールする必要があります。
+
+## セットアップ
+
+stdlibモジュールを[インストール](https://docs.puppet.com/puppet/latest/modules_installing.html)し、この標準ライブラリの関数、Facts、リソースをPuppetに追加します。
+
+stdlibに依存するモジュールを記述する場合は、必ずmetadata.jsonで[依存関係を特定](https://docs.puppet.com/puppet/latest/modules_metadata.html#specifying-dependencies)してください。
+
+## 使用
+
+stdlibのほとんどの機能は、Puppetに自動的にロードされます。Puppetで標準化されたランステージを使用するには、`include stdlib`を用いてマニフェスト内でこのクラスを宣言してください。
+
+宣言すると、stdlibがモジュール内の他のすべてのクラスを宣言します。現在モジュールに含まれている他のクラスは、`stdlib::stages`のみです。
+
+`stdlib::stages`クラスは、インフラストラクチャ、言語ランタイム、アプリケーションレイヤの配備に関する各種のランステージを宣言します。ハイレベルステージは、以下のとおりです(順番どおり)。
+
+  * setup
+  * main
+  * runtime
+  * setup_infra
+  * deploy_infra
+  * setup_app
+  * deploy_app
+  * deploy
+
+使用例:
+
+```puppet
+node default {
+  include stdlib
+  class { java: stage => 'runtime' }
+}
+```
+
+## リファレンス
+
+* [パブリッククラス][]
+* [プライベートクラス][]
+* [定義タイプ][]
+* [データタイプ][]
+* [Facts][]
+* [関数][]
+
+### クラス
+
+#### パブリッククラス
+
+`stdlib`クラスにはパラメータはありません。
+
+#### プライベートクラス
+
+* `stdlib::stages`: Puppetのランステージの標準セットを管理します。
+
+### 定義タイプ
+
+#### `file_line`
+
+任意の行がファイル内に確実に含まれるようにします。最初と最後の空白を含め、行全体をマッチさせます。その行が与えられたファイルに含まれない場合は、Puppetがファイルの最後にその行を追加し、望ましい状態を確保します。1つのファイル内で複数のリソースを宣言し、複数の行を管理することが可能です。
+
+例:
+
+```puppet
+file_line { 'sudo_rule':
+  path => '/etc/sudoers',
+  line => '%sudo ALL=(ALL) ALL',
+}
+
+file_line { 'sudo_rule_nopw':
+  path => '/etc/sudoers',
+  line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',
+}
+```
+
+上の例では、指定された両方の行が、ファイル `/etc/sudoers`に確実に含まれます。
+
+マッチ例:
+
+```puppet
+file_line { 'bashrc_proxy':
+  ensure => present,
+  path   => '/etc/bashrc',
+  line   => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
+  match  => '^export\ HTTP_PROXY\=',
+}
+```
+
+上の例では、`match`により、'export'で始まり'HTTP_PROXY'と続く行が探され、その行が行内の値に置き換えられます。
+
+ `ensure => absent`を用いたマッチ例:
+
+```puppet
+file_line { 'bashrc_proxy':
+  ensure            => absent,
+  path              => '/etc/bashrc',
+  line              => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
+  match             => '^export\ HTTP_PROXY\=',
+  match_for_absence => true,
+}
+```
+
+上の例では、`match`により、'export'で始まり'HTTP_PROXY'と続く行が探され、その行が削除されます。複数の行がマッチし、`multiple => true`パラメータが設定されていない場合は、エラーが生じます。
+
+エンコード例:
+
+```puppet
+file_line { "XScreenSaver":
+  ensure   => present,
+  path     => '/root/XScreenSaver'
+  line     => "*lock: 10:00:00",
+  match    => '^*lock:',
+  encoding => "iso-8859-1",
+}
+```
+
+ファイルにUTF-8に対応しない特殊文字が用いられていると、「Invalid byte sequence in UTF-8」(UTF-8で無効なバイト列)というエラーメッセージが表示されます。この場合は、ファイルエンコーディングを決定し、`encoding`属性で指定してください。
+
+**Autorequire:** Puppetが管理しているファイルに、管理対象となる行が含まれている場合は、`file_line`リソースと当該ファイルの暗黙的な依存関係が設定されます。
+
+##### パラメータ
+
+パラメータは、別途説明がない限り、すべてオプションです。
+
+* `after`
+
+  このパラメータで指定された行の後に、Puppetが正規表現を用いて新規の行を追加します(既存の行が規定の位置に追加されます)。
+
+  値: 正規表現を含む文字列
+  
+  デフォルト値: `undef`
+  
+* `encoding`
+  
+  適正なファイルエンコードを指定します。
+
+  値: 有効なRuby文字エンコードを指定する文字列
+  
+  デフォルト: 'UTF-8'
+
+* `ensure`: リソースが存在するかどうかを指定します。
+
+  値: 'present'、'absent'
+  
+  デフォルト値: 'present'
+  
+* `line`
+
+  **必須**
+  
+  `path`パラメータにより位置を示されたファイルに追加する行を設定します。
+    
+  値: 文字列
+  
+* `match`
+
+  ファイル内の既存の行と比較する正規表現を指定します。マッチが見つかった場合、新規の行を追加するかわりに、置き換えられます。正規表現の比較は行の値に照らして行われ、マッチしない場合は、例外が発生します。
+  
+  値: 正規表現を含む文字列
+  
+  デフォルト値: `undef`
+  
+
+* `match_for_absence`
+
+  `ensure => absent`の場合にマッチを適用するかどうかを指定します。`true`に設定してマッチを設定すると、マッチする行が削除されます。`false`に設定すると(デフォルト)、`ensure => absent`の場合にマッチが無視され、代わりに`line`の値が使用されます。`ensure => present`になっている場合は、このパラメータは無視されます。
+  
+  ブーリアン
+  
+  デフォルト値: `false`
+  
+* `multiple`
+
+  `match`および`after`により複数の行を変更できるかどうかを指定します。`false`に設定すると、複数の行がマッチする場合に例外が発生します。
+  
+  値: `true`、`false`
+  
+  デフォルト値: `false`
+  
+  
+* `name`
+
+  リソースの名称として使用する名前を指定します。リソースのnamevarをリソースの規定の`title`と異なるものにしたい場合は、`name`で名前を指定します。 
+  
+  値: 文字列
+  
+  デフォルト値: タイトルの値
+  
+* `path`
+
+  **必須**
+  
+  `line`で指定された行を確保するファイルを指定します。 
+  
+  値: 当該ファイルの絶対パスを指定する文字列
+  
+* `replace`
+
+  `match`パラメータとマッチする既存の行を上書きするかどうかを指定します。`false`に設定すると、`match`パラメータにマッチする行が見つかった場合、その行はファイルに配置されません。
+  
+  ブーリアン
+  
+  デフォルト値: `true`
+
+### データタイプ
+
+#### `Stdlib::Absolutepath`
+
+厳密な絶対パスタイプ。UnixpathタイプおよびWindowspathタイプの異形を使用します。
+
+使用可能なインプット例:
+
+```shell
+/var/log
+```
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:.
+```
+
+```shell
+C:\\WINDOWS\\System32
+```
+
+使用不可能なインプット例:
+
+```shell
+../relative_path
+```
+
+#### `Stdlib::Httpsurl`
+
+HTTPS URLに一致します。
+
+使用可能なインプット例:
+
+```shell
+https://hello.com
+```
+
+使用不可能なインプット例:
+
+```shell
+httds://notquiteright.org`
+```
+
+#### `Stdlib::Httpurl`
+
+HTTPSおよびHTTP URLの両方に一致します。
+
+使用可能なインプット例:
+
+```shell
+https://hello.com
+
+http://hello.com
+```
+
+使用不可能なインプット例:
+
+```shell
+httds://notquiteright.org
+```
+
+#### `Stdlib::Unixpath`
+
+Unixオペレーティングシステムのパスに一致します。
+
+使用可能なインプット例:
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:
+
+/var/tmp
+```
+
+使用不可能なインプット例:
+
+```shell
+C:/whatever
+```
+
+#### `Stdlib::Windowspath`
+
+Windowsオペレーティングシステムのパスに一致します。
+
+使用可能なインプット例: 
+
+```shell
+C:\\WINDOWS\\System32
+
+C:\\
+
+\\\\host\\windows
+```
+
+使用不可能なインプット例:
+
+```shell
+/usr2/username/bin:/usr/local/bin:/usr/bin:.
+```
+
+### Facts
+
+#### `package_provider`
+
+Puppetがこのシステムのパッケージ管理に使用するデフォルトのプロバイダを返します。
+
+#### `is_pe`
+
+Puppet Enterpriseがインストールされているかどうかを返します。PE 3.x以降のプラットフォームでは何も報告されません。
+
+#### `pe_version`
+
+インストールされているPuppet Enterpriseのバージョンを返します。PE 3.x以降のプラットフォームでは何も報告されません。
+
+#### `pe_major_version`
+
+インストールされているPuppet Enterpriseのメジャーバージョンを返します。PE 3.x以降のプラットフォームでは何も報告されません。
+
+#### `pe_minor_version`
+
+インストールされているPuppet Enterpriseのマイナーバージョンを返します。PE 3.x以降のプラットフォームでは何も報告されません。
+
+#### `pe_patch_version`
+
+インストールされているPuppet Enterpriseのパッチバージョンを返します。
+
+#### `puppet_vardir`
+
+PuppetまたはPuppet agentが稼働しているノードについて設定されたPuppet vardirの値を返します。
+
+#### `puppet_environmentpath`
+
+PuppetまたはPuppet agentが稼働しているノードについて設定されたPuppet環境の値を返します。
+
+#### `puppet_server`
+
+Puppet agentの`server`値を返します。この値は、agentが通信するPuppet masterのホストネームです。
+
+#### `root_home`
+
+ルートのホームディレクトリを決定します。
+
+ルートのホームディレクトリを決定します。これは、オペレーティングシステムによって異なります。通常は'/root'です。
+
+#### `service_provider`
+
+Puppetがこのシステムのサービス管理に使用するデフォルトのプロバイダを返します。
+
+### 関数
+
+#### `abs`
+
+数字の絶対値を返します。たとえば、'-34.56'は'34.56'になります。
+
+引数: 整数値または浮動小数点値のいずれかの単一の引数。
+
+*タイプ*: 右辺値
+
+#### `any2array`
+
+任意のオブジェクトを、そのオブジェクトを含む配列に変換します。空の引数リストは空の配列に変換されます。ハッシュは、キーと値が交互になった配列に変換されます。配列は変換されません。
+
+*タイプ*: 右辺値
+
+#### `any2bool`
+
+任意のオブジェクトをブーリアンに変換します。
+
+* 'Y'、'y'、'1'、'T'、't'、'TRUE'、'yes'、'true'といった文字列は`true`を返します。
+* '0'、'F'、'f'、'N'、'n'、'FALSE'、'no'、'false'といった文字列は`false`を返します。
+* ブーリアンは元の値を返します。
+* 0よりも大きい数字(または数字の文字列表現)は`true`を返します。それ以外は`false`を返します。
+* undef値は`false`を返します。
+* それ以外はすべて`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `assert_private`
+
+現在のクラスまたは定義をプライベートとして設定します。現在のモジュール外のクラスまたは定義タイプを呼び出すことはできません。
+
+たとえば、クラス`foo::bar`で`assert_private()`がコールされると、クラスがモジュール`foo`の外から呼び出された場合、次のメッセージがアウトプットされます：`Class foo::bar is private`。
+
+使用したいエラーメッセージを指定する方法:
+
+```puppet
+assert_private("You're not supposed to do that!")
+```
+
+*タイプ*: ステートメント
+
+#### `base64`
+
+文字列とbase64エンコードを相互に変換します。`action` ('encode'、'decode')とプレーンまたは base64でエンコードした`string`、およびオプションで`method` ('default'、'strict'、'urlsafe')が必要です。
+
+下位互換性を得るには、`method`を`default`に設定します(指定されていない場合)。
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+**例:**
+
+```puppet
+base64('encode', 'hello')
+base64('encode', 'hello', 'default')
+# リターン: "aGVsbG8=\n"
+
+base64('encode', 'hello', 'strict')
+# リターン: "aGVsbG8="
+
+base64('decode', 'aGVsbG8=')
+base64('decode', 'aGVsbG8=\n')
+base64('decode', 'aGVsbG8=', 'default')
+base64('decode', 'aGVsbG8=\n', 'default')
+base64('decode', 'aGVsbG8=', 'strict')
+# リターン: "hello"
+
+base64('encode', 'https://puppetlabs.com', 'urlsafe')
+# リターン: "aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ=="
+
+base64('decode', 'aHR0cHM6Ly9wdXBwZXRsYWJzLmNvbQ==', 'urlsafe')
+# リターン: "https://puppetlabs.com"
+```
+
+*タイプ*: 右辺値
+
+#### `basename`
+
+パスの`basename`を返します。オプションの引数で拡張子が外れます。例:
+
+  * ('/path/to/a/file.ext')は'file.ext'を返します。
+  * ('relative/path/file.ext')は'file.ext'を返します。
+  * ('/path/to/a/file.ext', '.ext')は'file'を返します。
+
+*タイプ*: 右辺値
+
+#### `bool2num`
+
+ブーリアンを数字に変換します。以下の値を変換します。
+
+* `false`、'f'、'0'、'n'、'no'を0に変換します。
+* `true`、't'、'1'、'y'、'yes'を1に変換します。
+  
+  引数: インプットとして、単一のブーリアンまたは文字列。
+  
+  *タイプ*: 右辺値
+
+#### `bool2str`
+
+オプションで提供される引数を用いて、ブーリアンを文字列に変換します。オプションの第2および第3の引数は、trueおよびfalseがそれぞれ何に変換されるかを表しています。与えられた引数が1つだけの場合は、ブーリアンから`true`または`false`を含む文字列に変換されます。
+
+*例:*
+
+```puppet
+bool2str(true)                    => `true`
+bool2str(true, 'yes', 'no')       => 'yes'
+bool2str(false, 't', 'f')         => 'f'
+```
+
+引数: ブーリアン。
+
+*タイプ*: 右辺値
+
+#### `camelcase`
+
+配列内の1つの文字列またはすべての文字列の大文字と小文字の別をCamelCase(大小文字混在)に変換します。
+
+引数: 配列または文字列のいずれか。受け取ったものと同じタイプの引数を返しますが、CamelCaseの形式で返します。
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+ *タイプ*: 右辺値
+
+#### `capitalize`
+
+文字列または複数文字列の配列の最初の文字を大文字にし、各文字列の残りの文字を小文字にします。
+
+引数: インプットとして、単一文字列または配列。*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `ceiling`
+
+引数以上の最小整数を返します。
+
+引数: 単一の数値。
+
+*タイプ*: 右辺値
+
+#### `chomp`
+
+文字列または複数文字列の配列の最後から、レコード分離文字を削除します。たとえば、'hello\n'は'hello'になります。
+
+引数: 単一の文字または配列。
+
+*タイプ*: 右辺値
+
+#### `chop`
+
+最後の文字を削除した新しい文字列を返します。文字列が'\r\n'で終わる場合は、両方の文字が削除されます。`chop`を空文字列に適用すると、空文字列が返されます。レコード分離文字のみを削除する場合は、`chomp`関数を使用してください。
+
+引数: インプットとして、文字列または複数文字列の配列。
+
+*タイプ*: 右辺値
+
+#### `clamp`
+
+整数値に基づく分類により、当該領域[Min、X、Max]内で値を維持します(パラメータの順序は関係ありません)。文字列が変換され、数字として比較されます。値の配列は、さらなる処理が可能なリストに平坦化されます。例:
+
+  * `clamp('24', [575, 187])`は187を返します。
+  * `clamp(16, 88, 661)`は88を返します。
+  * `clamp([4, 3, '99'])`は4を返します。
+  
+引数: 文字列、配列、数字。 
+
+*タイプ*: 右辺値
+
+#### `concat`
+
+複数配列のコンテンツを、与えられた最初の配列に追加します。例:
+
+  * `concat(['1','2','3'],'4')`は['1','2','3','4']を返します。
+  * `concat(['1','2','3'],'4',['5','6','7'])`は['1','2','3','4','5','6','7']を返します。
+
+*タイプ*: 右辺値
+
+#### `convert_base`
+
+与えられた整数または整数を表す10進数文字列を、指定した基数の文字列に変換します。例:
+
+  * `convert_base(5, 2)`は'101'になります。
+  * `convert_base('254', '16')`は'fe'になります。
+
+#### `count`
+
+配列のみで呼び出した場合は、空または`undef`**ではない**要素の数をカウントします。第2の引数を用いて呼び出した場合は、第2の引数にマッチする配列内の要素の数をカウントします。
+
+*タイプ*: 右辺値
+
+#### `deep_merge`
+
+2つ以上のハッシュを再帰的に統合し、その結果得られたハッシュを返します。
+
+```puppet
+$hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
+$hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
+$merged_hash = deep_merge($hash1, $hash2)
+```
+
+得られるハッシュは、以下に相当します。
+
+```puppet
+$merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
+```
+
+ハッシュである重複キーが存在する場合は、そうした重複キーが再帰的に統合されます。ハッシュではない重複キーが存在する場合は、最右のハッシュのキーが上位になります。
+
+*タイプ*: 右辺値
+
+#### `defined_with_params`
+
+属性のリソースリファレンスとオプションでハッシュを取得します。特定の属性を持つリソースがすでにカタログに追加されている場合は`true`を返します。そうでない場合は`false`を返します。
+
+```puppet
+user { 'dan':
+  ensure => present,
+}
+
+if ! defined_with_params(User[dan], {'ensure' => 'present' }) {
+  user { 'dan': ensure => present, }
+}
+```
+
+*タイプ*: 右辺値
+
+#### `delete`
+
+配列から任意の要素のインスタンスを、文字列からサブストリングを、またはハッシュからキーをすべて削除します。
+
+例:
+
+* `delete(['a','b','c','b'], 'b')`は['a','c']を返します。
+* `delete('abracadabra', 'bra')`は'acada'を返します。
+* `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])`は{'a'=> 1}を返します。
+* `delete(['ab', 'b'], 'b')`は['ab']を返します。
+
+*タイプ*: 右辺値
+
+#### `delete_at`
+
+決められたインデックス付き値を配列から削除します。
+
+例: `delete_at(['a','b','c'], 1)`は['a','c']を返します。
+
+*タイプ*: 右辺値
+
+#### `delete_regex`
+
+提示された正規表現にマッチする任意の要素のインスタンスを、配列またはハッシュからすべて削除します。文字列は1アイテム配列として処理されます。
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+
+例
+
+* `delete_regex(['a','b','c','b'], 'b')`は['a','c']を返します。
+* `delete_regex({'a' => 1,'b' => 2,'c' => 3},['b','c'])`は{'a'=> 1}を返します。
+* `delete_regex(['abf', 'ab', 'ac'], '^ab.*')`は['ac']を返します。
+* `delete_regex(['ab', 'b'], 'b')`は['ab']を返します。
+
+*タイプ*: 右辺値
+
+#### `delete_values`
+
+任意の値のインスタンスをハッシュからすべて削除します。
+
+例:
+
+* `delete_values({'a'=>'A','b'=>'B','c'=>'C','B'=>'D'}, 'B')`は{'a'=>'A','c'=>'C','B'=>'D'}を返します。
+
+*タイプ*: 右辺値
+
+#### `delete_undef_values`
+
+`undef`値のインスタンスをアレイまたはハッシュからすべて削除します。
+
+例:
+
+* `$hash = delete_undef_values({a=>'A', b=>'', c=>`undef`, d => false})`は{a => 'A', b => '', d => false}を返します。
+
+*タイプ*: 右辺値
+
+#### `deprecation`
+
+非推奨警告をプリントし、任意のキーについて警告を一度記録します:
+
+```puppet
+deprecation(key, message)
+```
+
+引数:
+
+* キーを指定する文字列: Puppetプロセスの継続期間中にメッセージの数を少なく抑えるために、1つのキーにつき1つのメッセージのみを記録します。
+* メッセージを指定する文字列: 記録されるテキスト。
+
+*タイプ*: ステートメント
+
+**`deprecation`に影響を与える設定**
+
+Puppetの他の設定は、stdlibの`deprecation`関数に影響を与えます。
+
+* [`disable_warnings`](https://docs.puppet.com/puppet/latest/reference/configuration.html#disablewarnings)
+* [`max_deprecations`](https://docs.puppet.com/puppet/latest/reference/configuration.html#maxdeprecations)
+* [`strict`](https://docs.puppet.com/puppet/latest/reference/configuration.html#strict):
+
+    * `error`: 非推奨メッセージにより、ただちに機能しなくなります。
+    * `off`: メッセージがアウトプットされません。
+    * `warning`: すべての警告を記録します。これがデフォルト設定です。
+
+* 環境変数`STDLIB_LOG_DEPRECATIONS`
+
+  非推奨警告を記録するかどうかを指定します。これは特に、自動テストの際、移行の準備ができる前にログに情報が氾濫するのを避けるうえで役立ちます。
+
+  この変数はブーリアンで、以下の効果があります:
+  
+  * `true`: 警告を記録します。
+  * `false`: 警告は記録されません。
+  * 値を設定しない場合: Puppet 4は警告を出しますが、Puppet 3は出しません。
+
+#### `difference`
+
+2つの配列の間の差異を返します。返される配列はオリジナル配列のコピーで、第2の配列にも見られるアイテムがあれば、それが取り除かれます。
+
+例:
+
+* `difference(["a","b","c"],["b","c","d"])`は["a"]を返します。
+
+*タイプ*: 右辺値
+
+#### `dig`
+
+> 非推奨: この関数は、Puppet 4.5.0で、内蔵の[`dig`](https://docs.puppet.com/puppet/latest/function.html#dig)関数に置き換えられました。下位互換性を得るには、[`dig44()`](#dig44)を使用するか、新しいバージョンを使用してください。
+
+パスを含むキー配列を通じて、複数レイヤーのハッシュおよびアレイ内の値を探します。この関数は各パスコンポーネントにより構造内を移動し、パスの最後で値を返すよう試みます。
+
+この関数では、必要とされるパス引数に加え、デフォルトの引数を使用できます。パスが正しくない場合や、値が見つからない場合、その他のエラーが生じた場合は、デフォルトの引数を返します。
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = dig($data, ['a', 'b', 2])
+# $value = 'b3'
+
+# 可能なすべてのオプションを使用
+$value = dig($data, ['a', 'b', 2], 'not_found')
+# $value = 'b3'
+
+# デフォルト値を使用
+$value = dig($data, ['a', 'b', 'c', 'd'], 'not_found')
+# $value = 'not_found'
+```
+
+1. **$data** 取り扱うデータ構造。
+2. **['a', 'b', 2]** パス配列。
+3. **'not_found'** デフォルト値。何も見つからない場合に返されます。
+
+デフォルト値: `undef`
+
+*タイプ*: 右辺値
+
+#### `dig44`
+
+パスを含むキー配列を通じて、複数レイヤーのハッシュおよびアレイ内の値を探します。この関数は各パスコンポーネントにより構造内を移動し、パスの最後で値を返すよう試みます。
+
+この関数では、必要とされるパス引数に加え、デフォルトの引数を使用できます。パスが正しくない場合や、値が見つからない場合、その他のエラーが生じた場合は、デフォルトの引数を返します。
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = dig44($data, ['a', 'b', 2])
+# $value = 'b3'
+
+# 可能なすべてのオプションを使用
+$value = dig44($data, ['a', 'b', 2], 'not_found')
+# $value = 'b3'
+
+# デフォルト値を使用
+$value = dig44($data, ['a', 'b', 'c', 'd'], 'not_found')
+# $value = 'not_found'
+```
+
+*タイプ*: 右辺値
+
+1. **$data** 取り扱うデータ構造。
+2. **['a', 'b', 2]** パス配列。
+3. **'not_found'** デフォルト値。何も見つからない場合に返されます。
+   (オプション、デフォルトは`undef`)
+
+#### `dirname`
+
+パスの`dirname`を返します。たとえば、`dirname('/path/to/a/file.ext')`は'/path/to/a'を返します。
+
+*タイプ*: 右辺値
+
+#### `dos2unix`
+
+与えられた文字列のUnixバージョンを返します。クロスプラットフォームテンプレートでファイルリソースを使用する場合に非常に役立ちます。
+
+```puppet
+file{$config_file:
+  ensure  => file,
+  content => dos2unix(template('my_module/settings.conf.erb')),
+}
+```
+
+[unix2dos](#unix2dos)も参照してください。
+
+*タイプ*: 右辺値
+
+#### `downcase`
+
+配列内の1つの文字列またはすべての文字列の大文字と小文字の別を、小文字に変換します。
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+*タイプ*: 右辺値
+
+#### `empty`
+
+引数が要素を含まない配列かハッシュ、または空文字列である場合に、`true`を返します。引数が数値の場合に`false`を返します。
+
+*タイプ*: 右辺値
+
+#### `enclose_ipv6`
+
+IPアドレスの配列を取得し、ipv6アドレスを大括弧でくくります。
+
+*タイプ*: 右辺値
+
+#### `ensure_packages`
+
+配列またはハッシュ内のパッケージのリストを取得し、すでに存在しない場合にのみ、それらをインストールします。オプションで、ハッシュを第2のパラメータとして取得し、第3の引数として`ensure_resource()`または `ensure_resources()`関数に渡します。
+
+*タイプ*: ステートメント
+
+配列の場合:
+
+```puppet
+ensure_packages(['ksh','openssl'], {'ensure' => 'present'})
+```
+
+ハッシュの場合:
+
+```puppet
+ensure_packages({'ksh' => { ensure => '20120801-1' } ,  'mypackage' => { source => '/tmp/myrpm-1.0.0.x86_64.rpm', provider => "rpm" }}, {'ensure' => 'present'})
+```
+
+#### `ensure_resource`
+
+リソースタイプ、タイトル、リソースを記述する属性のハッシュを取得します。
+
+```
+user { 'dan':
+  ensure => present,
+}
+```
+
+この例では、すでに存在しない場合にのみリソースが作成されます:
+
+  `ensure_resource('user', 'dan', {'ensure' => 'present' })`
+
+リソースがすでに存在しているものの、指定されたパラメータとマッチしない場合は、リソースの再作成が試みられ、重複リソース定義エラーにつながります。
+
+リソースの配列を提示することも可能です。それぞれのリソースは、すでに存在しない場合に、指定のタイプおよびパラメータにより作成されます。
+
+`ensure_resource('user', ['dan','alex'], {'ensure' => 'present'})`
+
+*タイプ*: ステートメント
+
+#### `ensure_resources`
+
+ハッシュからリソース宣言を作成しますが、すでに宣言されているリソースとは対立しません。
+
+リソースタイプ、タイトル、リソースを記述する属性のハッシュを指定します。
+
+```puppet
+user { 'dan':
+  gid => 'mygroup',
+  ensure => present,
+}
+
+ensure_resources($user)
+```
+
+リソースのハッシュを提示します。リストにあるリソースは、すでに存在しない場合に、指定のタイプおよびパラメータにより作成されます。
+
+    ensure_resources('user', {'dan' => { gid => 'mygroup', uid => '600' } ,  'alex' => { gid => 'mygroup' }}, {'ensure' => 'present'})
+
+Hieraバックエンドから:
+
+```yaml
+userlist:
+  dan:
+    gid: 'mygroup'
+    uid: '600'
+  alex:
+    gid: 'mygroup'
+```
+
+```puppet
+ensure_resources('user', hiera_hash('userlist'), {'ensure' => 'present'})
+```
+
+### `flatten`
+
+ネストの深いアレイを平坦化し、結果として単一のフラット配列を返します。
+
+たとえば、`flatten(['a', ['b', ['c']]])`は['a','b','c']を返します。
+
+*タイプ*: 右辺値
+
+#### `floor`
+
+引数以下の最大整数を返します。
+
+引数: 単一の数値。
+
+*タイプ*: 右辺値
+
+#### `fqdn_rand_string`
+
+ランダムな英数字文字列を生成します。`$fqdn` factとオプションのシードを組み合わせると、反復的な無作為抽出が可能です。オプションで、この関数に使用する文字セットを指定することもできます(デフォルトは英数字)。
+
+*使用例:*
+
+```puppet
+fqdn_rand_string(LENGTH, [CHARSET], [SEED])
+```
+
+*例:*
+
+```puppet
+fqdn_rand_string(10)
+fqdn_rand_string(10, 'ABCDEF!@#$%^')
+fqdn_rand_string(10, '', 'custom seed')
+```
+
+引数:
+
+* 整数、得られる文字列の長さを指定。
+* オプションで、文字セットを指定する文字列。
+* オプションで、反復的な無作為抽出を可能にするシードを指定する文字列。
+
+*タイプ*: 右辺値
+
+#### `fqdn_rotate`
+
+配列と文字列をランダムな回数で回転させます。`$fqdn` factとオプションのシードを組み合わせると、反復的な無作為抽出が可能です。
+
+*使用例:*
+
+```puppet
+fqdn_rotate(VALUE, [SEED])
+```
+
+*例:*
+
+```puppet
+fqdn_rotate(['a', 'b', 'c', 'd'])
+fqdn_rotate('abcd')
+fqdn_rotate([1, 2, 3], 'custom seed')
+```
+
+*タイプ*: 右辺値
+
+#### `fqdn_uuid`
+
+DNSネームスペースのFQDN文字列をもとに、[RFC 4122](https://tools.ietf.org/html/rfc4122)有効バージョン5 UUIDを返します:
+
+  * fqdn_uuid('puppetlabs.com')は'9c70320f-6815-5fc5-ab0f-debe68bf764c'を返します。
+  * fqdn_uuid('google.com')は'64ee70a4-8cc1-5d25-abf2-dea6c79a09c8'を返します。
+
+*タイプ*: 右辺値
+
+#### `get_module_path`
+
+現在の環境について、指定されたモジュールの絶対パスを返します。
+
+```puppet
+$module_path = get_module_path('stdlib')
+```
+
+*タイプ*: 右辺値
+
+#### `getparam`
+
+リソースのパラメータの値を返します。
+
+引数: リソースリファレンスおよびパラメータの名前。
+
+たとえば、以下の場合は'param_value'を返します:
+
+```puppet
+define example_resource($param) {
+}
+
+example_resource { "example_resource_instance":
+  param => "param_value"
+}
+
+getparam(Example_resource["example_resource_instance"], "param")
+```
+
+*タイプ*: 右辺値
+
+#### `getvar`
+
+リモートネームスペースの変数を調べます。
+
+例:
+
+```puppet
+$foo = getvar('site::data::foo')
+# $foo = $site::data::fooに相当
+```
+
+この関数は、ネームスペースそのものが文字列に保存されている場合に役立ちます:
+
+```puppet
+$datalocation = 'site::data'
+$bar = getvar("${datalocation}::bar")
+# $bar = $site::data::barに相当
+```
+
+*タイプ*: 右辺値
+
+#### `glob`
+
+パスパターンに一致するパスの文字列配列を返します。
+
+引数: パスパターンを指定する文字列または文字列配列。
+
+```puppet
+$confs = glob(['/etc/**/*.conf', '/opt/**/*.conf'])
+```
+
+*タイプ*: 右辺値
+
+#### `grep`
+
+配列内を検索し、提示された正規表現に一致する要素を返します。
+
+たとえば、`grep(['aaa','bbb','ccc','aaaddd'], 'aaa')`は['aaa','aaaddd']を返します。
+
+*タイプ*: 右辺値
+
+#### `has_interface_with`
+
+種類および値に基づきブーリアンを返します:
+
+  * macaddress
+  * netmask
+  * ipaddress
+  * network
+
+*例:*
+
+```puppet
+has_interface_with("macaddress", "x:x:x:x:x:x")
+has_interface_with("ipaddress", "127.0.0.1")    => true
+```
+
+種類が提示されていない場合は、インターフェースの有無が確認されます:
+
+```puppet
+has_interface_with("lo")                        => true
+```
+
+*タイプ*: 右辺値
+
+#### `has_ip_address`
+
+一部のインターフェース上で、リクエストされたIPアドレスがクライアントに存在する場合は`true`を返します。この関数は`interfaces` factで反復され、`ipaddress_IFACE` factsをチェックし、簡単な文字列比較を実行します。
+
+引数: IPアドレスを指定する文字列。
+
+*タイプ*: 右辺値
+
+#### `has_ip_network`
+
+リクエストされたネットワーク内でIPアドレスがクライアントに存在する場合は`true`を返します。この関数は`interfaces` factで反復され、 `network_IFACE` factsをチェックし、簡単な文字列比較を実行します。
+
+引数: IPアドレスを指定する文字列。
+
+*タイプ*: 右辺値
+
+#### `has_key`
+
+ハッシュに特定のキー値があるかどうかを判定します。
+
+*例*:
+
+```
+$my_hash = {'key_one' => 'value_one'}
+if has_key($my_hash, 'key_two') {
+  notice('we will not reach here')
+}
+if has_key($my_hash, 'key_one') {
+  notice('this will be printed')
+}
+```
+
+*タイプ*: 右辺値
+
+#### `hash`
+
+配列をハッシュに変換します。
+
+たとえば、`hash(['a',1,'b',2,'c',3])`は{'a'=>1,'b'=>2,'c'=>3}を返します。
+
+*タイプ*: 右辺値
+
+#### `intersection`
+
+2つの共通部分の配列を返します。
+
+たとえば、`intersection(["a","b","c"],["b","c","d"])`は["b","c"]を返します。
+
+*タイプ*: 右辺値
+
+#### `is_a`
+
+ブーリアンチェックにより、変数が任意のデータタイプのものかどうかを判定します。これは`=~`タイプチェックに相当します。この関数はPuppet 4と、"future"パーサーを備えたPuppet 3でのみ使用できます。
+
+```
+foo = 3
+$bar = [1,2,3]
+$baz = 'A string!'
+
+if $foo.is_a(Integer) {
+  notify  { 'foo!': }
+}
+if $bar.is_a(Array) {
+  notify { 'bar!': }
+}
+if $baz.is_a(String) {
+  notify { 'baz!': }
+}
+```
+
+* タイプに関する詳細は、[Puppetタイプシステム](https://docs.puppetlabs.com/latest/type.html#about-resource-types)を参照してください。
+* 値のタイプを特定する各種の方法については、[`assert_type()`](https://docs.puppetlabs.com/latest/function.html#asserttype)関数を参照してください。
+
+#### `is_absolute_path`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+与えられたパスが絶対パスである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_array`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数が配列である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_bool`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数がブーリアンである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_domain_name`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された文字列が構文的に正しいドメイン名である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_float`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数がフロート型である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_function_available`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+文字列を引数として受け入れ、Puppetランタイムがその名前を用いて関数にアクセスできるかどうかを判定します。関数が存在する場合は`true`、存在しない場合は`false`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_hash`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数がハッシュである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_integer`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この文字列に返された変数が整数である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_ip_address`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された文字列が有効なIPアドレスである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_ipv6_address`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された文字列が有効なIPv6アドレスである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_ipv4_address`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された文字列が有効なIPv4アドレスである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_mac_address`
+
+この関数に渡された文字列が有効なMACアドレスである場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_numeric`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数が数字である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `is_string`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+この関数に渡された変数が文字列である場合に`true`を返します。
+
+*タイプ*: 右辺値
+
+#### `join`
+
+区切り文字を用いて、配列を文字列に結合します。たとえば、`join(['a','b','c'], ",")`は"a,b,c"になります。
+
+*タイプ*: 右辺値
+
+#### `join_keys_to_values`
+
+区切り文字を用いて、ハッシュの各キーをそのキーに対応する値と結合し、結果を文字列として返します。 
+
+値が配列の場合は、キーは各要素の前に置かれます。返される値は、平坦化した配列になります。
+
+たとえば、`join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")`は["a is 1","b is 2","b is 3"]になります。
+
+*タイプ*: 右辺値
+
+#### `keys`
+
+ハッシュのキーを配列として返します。
+
+*タイプ*: 右辺値
+
+#### `length`
+
+与えられた文字列、配列、ハッシュの長さを返します。廃止された`size()`関数に代わるものです。
+
+*タイプ*: 右辺値
+
+#### `loadyaml`
+
+配列、文字列、ハッシュを含むYAMLファイルをロードし、対応するネイティブデータタイプでデータを返します。
+
+例:
+
+```puppet
+$myhash = loadyaml('/etc/puppet/data/myhash.yaml')
+```
+
+第2のパラメータは、ファイルが見つからなかった場合、または構文解析できなかった場合に返されます。
+
+例:
+
+```puppet
+$myhash = loadyaml('no-file.yaml', {'default'=>'value'})
+```
+
+*タイプ*: 右辺値
+
+#### `loadjson`
+
+配列、文字列、ハッシュを含むJSONファイルをロードし、対応するネイティブデータタイプでデータを返します。
+
+例:
+
+```puppet
+$myhash = loadjson('/etc/puppet/data/myhash.json')
+```
+
+第2のパラメータは、ファイルが見つからなかった場合、または構文解析できなかった場合に返されます。
+
+例:
+
+```puppet
+  $myhash = loadjson('no-file.json', {'default'=>'value'})
+  ```
+
+*タイプ*: 右辺値
+
+#### `load_module_metadata`
+
+ターゲットモジュールのmetadata.jsonをロードします。モジュールのバージョンや、モジュールの動的サポートに関するオーサーシップの判定に使用できます。
+
+```puppet
+$metadata = load_module_metadata('archive')
+notify { $metadata['author']: }
+```
+
+モジュールのメタデータファイルが存在しない場合、カタログコンパイルに失敗します。これを避ける方法は、以下のとおりです:
+
+```
+$metadata = load_module_metadata('mysql', true)
+if empty($metadata) {
+  notify { "This module does not have a metadata.json file.": }
+}
+```
+
+*タイプ*: 右辺値
+
+#### `lstrip`
+
+文字列の左側のスペースを取り除きます。
+
+*タイプ*: 右辺値
+
+#### `max`
+
+すべての引数の最大値を返します。少なくとも1つの引数が必要です。
+
+引数: 数字または数字を表す文字列。
+
+*タイプ*: 右辺値
+
+#### `member`
+
+変数が配列の構成要素かどうかを判定します。変数には文字列、配列、fixnumが使用できます。
+
+たとえば、`member(['a','b'], 'b')`および`member(['a','b','c'], ['b','c'])`は`true`を返し、`member(['a','b'], 'c')`および`member(['a','b','c'], ['c','d'])`は`false`を返します。
+
+*注*: この関数は、ネスト化した配列には対応していません。最初の引数にネスト化した配列が含まれている場合は、再帰的処理は行われません。
+
+*タイプ*: 右辺値
+
+#### `merge`
+
+2つ以上のハッシュを統合し、その結果得られたハッシュを返します。
+
+*例*:
+
+```puppet
+$hash1 = {'one' => 1, 'two' => 2}
+$hash2 = {'two' => 'dos', 'three' => 'tres'}
+$merged_hash = merge($hash1, $hash2)
+# 得られるハッシュは、以下に相当します:
+# $merged_hash =  {'one' => 1, 'two' => 'dos', 'three' => 'tres'}
+```
+
+重複キーが存在する場合は、最右のハッシュのキーが上位になります。
+
+*タイプ*: 右辺値
+
+#### `min`
+
+すべての引数の最小値を返します。少なくとも1つの引数が必要です。
+
+引数: 数字または数字を表す文字列。
+
+*タイプ*: 右辺値
+
+#### `num2bool`
+
+数字または数字の文字列表現を正当なブーリアンに変換します。0または非数字は`false`になります。0より大きい数字は`true`になります。
+
+*タイプ*: 右辺値
+
+#### `parsejson`
+
+JSONの文字列を正確なPuppet構造に変換します(ハッシュ、配列、文字列、整数、またはそれらの組み合わせとして)。
+
+引数:
+* 第1の引数として、変換されるJSON文字列。
+* オプションで、第2のエラーとして、変換に失敗した場合に返される結果。
+
+*タイプ*: 右辺値
+
+#### `parseyaml`
+
+YAMLの文字列を正確なPuppet構造に変換します。
+
+引数:
+* 第1の引数として、変換されるYAML文字列。
+* オプションで、第2のエラーとして、変換に失敗した場合に返される結果。
+
+*タイプ*: 右辺値 
+
+#### `pick`
+
+値のリストから、未定義または空文字列ではない最初の値を返します。引数から任意の数字をとり、すべての値が未定義または空の場合はエラーが生じます。
+
+```puppet
+$real_jenkins_version = pick($::jenkins_version, '1.449')
+```
+
+*タイプ*: 右辺値
+
+#### `pick_default`
+
+値のリストにある最初の値を返します。`pick()`関数とは異なり、`pick_default()`は、すべての引数が空の場合も失敗にはなりません。そのため、デフォルトとして空の値を使用できます。
+
+*タイプ*: 右辺値
+
+#### `prefix`
+
+配列のすべての要素、またはハッシュのキーに接頭辞を適用します。
+
+例:
+
+* `prefix(['a','b','c'], 'p')`は['pa','pb','pc']を返します。
+* `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')`は{'pa'=>'b','pb'=>'c','pc'=>'d'}を返します。
+
+*タイプ*: 右辺値
+
+#### `pry`
+
+現在のスコープオブジェクトでpryデバッグセッションを起動します。コンパイル中の特定ポイントにおけるマニフェストコードのデバッグに役立ちます。`puppet apply`の実行中またはフォアグラウンドでPuppet masterを実行しているときにのみ使用する必要があります。PuppetのRubyGemsに`pry` gemがインストールされている必要があります。
+
+*例:*
+
+```puppet
+pry()
+```
+
+pryセッションで役立つコマンドは以下のとおりです:
+
+* `catalog`を実行すると、現在カタログをコンパイルしているコンテンツを見られます。
+* `cd catalog`および`ls`を実行すると、カタログメソッドおよびインスタンス変数を見られます。
+* `@resource_table`を実行すると、現在のカタログリソーステーブルを見られます。
+
+#### `pw_hash`
+
+crypt関数を用いてパスワードをハッシュします。ほとんどのPOSIXシステムで使えるハッシュを提供します。
+
+この関数の最初の引数は、ハッシュするパスワードです。`undef`または空文字列の場合は、この関数により`undef`が返されます。
+
+この関数の第2の引数は、使用するハッシュのタイプです。適切なcrypt(3)ハッシュ指定子に変換されます。有効なハッシュタイプは以下のとおりです:
+
+|ハッシュタイプ            |指定子|
+|---------------------|---------|
+|MD5                  |1        |
+|SHA-256              |5        |
+|SHA-512 (推奨)|6        |
+
+この関数の第3の引数は、使用するソルトです。
+
+この関数は、Puppet masterのcrypt(3)実装を使用しています。お使いの環境に複数の異なるオペレーティングシステムが含まれている場合は、この関数を使用する前に、互換性があることを確認してください。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `range`
+
+'(start, stop)'の形式で与えられた場合に、領域を配列として外挿します。たとえば、`range("0", "9")`は[0,1,2,3,4,5,6,7,8,9]を返します。ゼロパディングされた文字列は、自動的に整数に変換されます。したがって、`range("00", "09")`は[0,1,2,3,4,5,6,7,8,9]を返します。
+
+非整数文字列を使用できます:
+
+* `range("a", "c")`は["a","b","c"]を返します。
+* `range("host01", "host10")`は["host01", "host02", ..., "host09", "host10"]を返します。
+
+末尾のゼロを明示的に含める必要があります。そうでないと、下層のRuby関数が適切に機能しません。
+
+第3の引数を渡すと、生成された領域がその間隔で刻まれます。例:
+
+* `range("0", "9", "2")`は["0","2","4","6","8"]を返します。
+
+*タイプ*: 右辺値
+
+#### `regexpescape`
+
+文字列または文字列の配列を正規表現エスケープします。インプットとして、単一の文字列または配列のいずれかが必要です。
+
+*タイプ*: 右辺値
+
+#### `reject`
+
+配列を検索し、提示された正規表現に一致する要素をすべてリジェクトします。
+
+たとえば、`reject(['aaa','bbb','ccc','aaaddd'], 'aaa')`は['bbb','ccc']を返します。
+
+*タイプ*: 右辺値
+
+#### `reverse`
+
+文字列または配列の順序を逆転します。
+
+*タイプ*: 右辺値
+
+#### `rstrip`
+
+文字列の右側のスペースを取り除きます。
+
+*タイプ*: 右辺値
+
+#### `seeded_rand`
+
+整数の最大値と文字列のシード値を取り、最大値よりも小さい反復可能かつランダムな整数を返します。`fqdn_rand`と同様ですが、シードにノード固有のデータが追加されません。
+
+*タイプ*: 右辺値
+
+#### `shell_escape`
+
+文字列をエスケープし、Bourneシェルコマンドラインで安全に使用できるようにします。得られる文字列はクォートなしで使用する必要があり、ダブルクォートまたはシングルクォートでの使用は意図されていません。この関数は、Rubyの`Shellwords.shellescape()`関数と同様に挙動します。[Rubyドキュメント](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape)を参照してください。
+
+例:
+
+```puppet
+shell_escape('foo b"ar') => 'foo\ b\"ar'
+```
+
+*タイプ*: 右辺値
+
+#### `shell_join`
+
+与えられた文字列の配列からコマンドライン文字列を構築します。各配列アイテムが、Bourneシェルで使用できるようにエスケープされます。その後、すべてのアイテムがまとめられ、間にシングルスペースが配されます。この関数は、Rubyの`Shellwords.shelljoin()`関数と同様に挙動します。[Rubyドキュメント](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shelljoin)を参照してください。
+
+例:
+
+```puppet
+shell_join(['foo bar', 'ba"z']) => 'foo\ bar ba\"z'
+```
+
+*タイプ*: 右辺値
+
+#### `shell_split`
+
+文字列をトークンの配列に分割します。この関数は、Rubyの`Shellwords.shellsplit()`関数と同様に挙動します。[Rubyドキュメント](http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellsplit)を参照してください。
+
+*例:*
+
+```puppet
+shell_split('foo\ bar ba\"z') => ['foo bar', 'ba"z']
+```
+
+*タイプ*: 右辺値
+
+#### `shuffle`
+
+文字列または配列の順序をランダム化します。
+
+*タイプ*: 右辺値
+
+#### `size`
+
+文字列、配列、ハッシュの要素数を返します。この関数は、今後のリリースでは廃止されます。Puppet 4では、`length`関数を使用してください。
+
+*タイプ*: 右辺値
+
+#### `sort`
+
+文字列と配列を語彙的に分類します。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `squeeze`
+
+文字列内の連続した繰り返し('aaaa'など)を単一文字に置き換え、新たな文字列を返します。
+
+*タイプ*: 右辺値
+
+#### `str2bool`
+
+特定の文字列をブーリアンに変換します。値'1'、'true'、't'、'y'、'yes'を含む文字列は`true`に変換されます。値'0'、'false'、'f'、'n'、'no'を含む文字列、および空文字列または未定義文字列は`false`に変換されます。その他の値の場合、エラーが生じます。このチェックでは、大文字と小文字は区別されません。
+
+*タイプ*: 右辺値
+
+#### `str2saltedsha512`
+
+OS Xバージョン10.7以上で使用されるソルト付きSHA512パスワードハッシュに文字列を変換します。hexバージョンのソルト付きSHA512パスワードハッシュを返します。これは、有効なパスワード属性としてPuppetマニフェストに挿入することができます。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `strftime`
+
+フォーマットされた時刻を返します。
+
+たとえば、`strftime("%s")`はUnixエポックからの経過時間を返し、`strftime("%Y-%m-%d")`は日付を返します。
+
+引数: `strftime`フォーマットで時間を指定する文字列。詳細については、Ruby [strftime](https://ruby-doc.org/core-2.1.9/Time.html#method-i-strftime)ドキュメントを参照してください。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+*フォーマット:*
+
+* `%a`: 曜日の名称の短縮形('Sun')
+* `%A`: 曜日の完全な名称('Sunday')
+* `%b`: 月の名称の短縮形('Jan')
+* `%B`: 月の完全な名称('January')
+* `%c`: 推奨される地域の日付および時刻の表現
+* `%C`: 世紀(2009年であれば20)
+* `%d`: その月の日(01..31)
+* `%D`: 日付(%m/%d/%y)
+* `%e`: その月の日、1桁の場合は半角空白で埋める( 1..31)
+* `%F`: %Y-%m-%d(ISO 8601の日付フォーマット)と同等
+* `%h`: %bと同等
+* `%H`: 24時間制の時(00..23)
+* `%I`: 12時間制の時(01..12)
+* `%j`: 年中の通算日(001..366)
+* `%k`: 24時間制の時、1桁の場合は半角空白で埋める( 0..23)
+* `%l`: 12時間制の時、1桁の場合は半角空白で埋める( 0..12)
+* `%L`: ミリ秒(000..999)
+* `%m`: その年の月(01..12)
+* `%M`: 分(00..59)
+* `%n`: 改行(\n)
+* `%N`: 秒の小数点以下の桁、デフォルトは9桁(ナノ秒)
+  * `%3N`: ミリ秒(3桁)
+  * `%6N`: マイクロ秒(6桁)
+  * `%9N`: ナノ秒(9桁)
+* `%p`: 午前または午後('AM'または'PM')
+* `%P`: 午前または午後('am'または'pm')
+* `%r`: 12時間制の時刻(%I:%M:%S %pと同等)
+* `%R`: 24時間制の時刻(%H:%M)
+* `%s`: Unixエポック、1970-01-01 00:00:00 UTCからの経過秒
+* `%S`: 秒(00..60)
+* `%t`: タブ文字(	)
+* `%T`: 24時間制の時刻(%H:%M:%S)
+* `%u`: 月曜日を1とした、曜日の数値表現(1..7)
+* `%U`: 最初の日曜日を第1週の始まりとした、現在の週を表す数(00..53)
+* `%v`: VMS形式の日付(%e-%b-%Y)
+* `%V`: ISO 8601形式の暦週(01..53)
+* `%W`: 最初の月曜日を第1週の始まりとした、現在の週を表す数(00..53)
+* `%w`: 曜日(日曜が0、0..6)
+* `%x`: 推奨される日付のみの表現、時刻はなし
+* `%X`: 推奨される時刻のみの表現、日付はなし
+* `%y`: 世紀なしの年(00..99)
+* `%Y`: 世紀ありの年
+* `%z`: タイムゾーン、UTCからのオフセット(+0900など)
+* `%Z`: タイムゾーンの名称
+* `%%`: '%'文字
+
+#### `strip`
+
+1つの文字列、または配列内のすべての文字列から、冒頭および末尾の空白を削除します。たとえば、`strip("    aaa   ")`は"aaa"になります。
+
+*タイプ*: 右辺値
+
+#### `suffix`
+
+配列のすべての要素、またはハッシュのすべてのキーに接尾辞を適用します。
+
+例:
+
+* `suffix(['a','b','c'], 'p')`は['ap','bp','cp']を返します。
+* `suffix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')`は{'ap'=>'b','bp'=>'c','cp'=>'d'}を返します。
+
+*タイプ*: 右辺値
+
+#### `swapcase`
+
+文字列の現在の大文字と小文字を入れ替えます。たとえば、`swapcase("aBcD")`は"AbCd"になります。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `time`
+
+現在のUnixエポック時刻を整数として返します。
+
+たとえば、`time()`は'1311972653'などを返します。
+
+*タイプ*: 右辺値
+
+#### `to_bytes`
+
+引数をバイトに変換します。
+
+たとえば、"4 kB"は"4096"になります。 
+
+引数: 単一の文字列。
+
+*タイプ*: 右辺値
+
+#### `try_get_value`
+
+**非推奨:** `dig()`に置き換えられました。
+
+ハッシュおよび配列の複数レイヤー内の値を取得します。
+
+引数: 
+
+* 第1の引数として、パスを含む文字列。この引数は、ゼロではじまり、パス区切り文字(デフォルトは"/")で区切ったハッシュキーまたは配列インデックスの文字列として提示してください。この関数は各パスコンポーネントにより構造内を移動し、パスの最後で値を返すよう試みます。
+
+*デフォルトの第2の引数。パスが正しくない場合や、値が見つからない場合、その他のエラーが生じた場合は、この引数が返されます。
+* 最後の引数として、パス区切り文字。
+
+```ruby
+$data = {
+  'a' => {
+    'b' => [
+      'b1',
+      'b2',
+      'b3',
+    ]
+  }
+}
+
+$value = try_get_value($data, 'a/b/2')
+# $value = 'b3'
+
+# 可能なすべてのオプションを使用
+$value = try_get_value($data, 'a/b/2', 'not_found', '/')
+# $value = 'b3'
+
+# デフォルト値を使用
+$value = try_get_value($data, 'a/b/c/d', 'not_found')
+# $value = 'not_found'
+
+# カスタム区切りを使用
+$value = try_get_value($data, 'a|b', [], '|')
+# $value = ['b1','b2','b3']
+```
+
+1. **$data** 取り扱うデータ構造。
+2. **'a/b/2'** パス文字列。
+3. **'not_found'** デフォルト値。何も見つからない場合に返されます。
+   (オプション、デフォルトは`undef`)
+4. **'/'** パス区切り文字。
+   (オプション、デフォルトは*'/'*)
+
+*タイプ*: 右辺値
+
+#### `type3x`
+
+**非推奨**。この関数は、今後のリリースで廃止されます。 
+
+与えられた値のタイプを説明する文字列を返します。タイプとしては、文字列、配列、ハッシュ、フロート、整数、ブーリアンが可能です。Puppet 4では、この代わりに新しいタイプシステムを使用してください。
+
+引数:
+
+* 文字列
+* 配列
+* ハッシュ
+* フロート
+* 整数
+* ブーリアン
+
+*タイプ*: 右辺値
+
+#### `type_of`
+
+この関数は下位互換性を得るために提供されていますが、Puppetで提供されている内蔵の[type()関数](https://docs.puppet.com/puppet/latest/reference/function.html#type)の使用を推奨します。
+
+与えられた値のリテラル型を返します。Puppet 4が必要です。`if type_of($some_value) <= Array[String] { ... }`のように(これは`if $some_value =~ Array[String] { ... }`に相当します)、`<=`を用いたタイプの比較に役立ちます。
+
+*タイプ*: 右辺値
+
+#### `union`
+
+2つ以上の配列を重複なしで結合したものを返します。
+
+たとえば、`union(["a","b","c"],["b","c","d"])`は["a","b","c","d"]を返します。
+
+*タイプ*: 右辺値
+
+#### `unique`
+
+文字列および配列から重複を削除します。
+
+たとえば、`unique("aabbcc")`は'abc'を、`unique(["a","a","b","b","c","c"])`は["a","b","c"]を返します。
+
+*タイプ*: 右辺値
+
+#### `unix2dos`
+
+与えられた文字列のDOSバージョンを返します。クロスプラットフォームテンプレートでファイルリソースを使用する場合に役立ちます。
+
+*タイプ*: 右辺値
+
+```puppet
+file{$config_file:
+  ensure  => file,
+  content => unix2dos(template('my_module/settings.conf.erb')),
+}
+```
+
+[dos2unix](#dos2unix)も参照してください。
+
+#### `upcase`
+
+オブジェクト、配列、オブジェクトのハッシュを大文字に変換します。変換されるオブジェクトは、大文字化に対応するものでなければなりません。
+
+たとえば、`upcase('abcd')`は'ABCD'を返します。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `uriescape`
+
+文字列または文字列の配列をURLエンコードします。 
+
+引数: 単一の文字列または文字列の配列。
+
+*タイプ*: 右辺値
+
+*注:* この関数はRubyクラスの実装にあたり、UTF8との互換性がない可能性があります。互換性を確保するには、Ruby 2.4.0以降でこの関数を使用してください。
+
+#### `validate_absolute_path`
+
+ファイルシステムの絶対パスを表す任意の文字列の有効性を確認します。WindowsおよびUnix形式のパスで機能します。
+
+以下の値が渡されます:
+
+```puppet
+$my_path = 'C:/Program Files (x86)/Puppet Labs/Puppet'
+validate_absolute_path($my_path)
+$my_path2 = '/var/lib/puppet'
+validate_absolute_path($my_path2)
+$my_path3 = ['C:/Program Files (x86)/Puppet Labs/Puppet','C:/Program Files/Puppet Labs/Puppet']
+validate_absolute_path($my_path3)
+$my_path4 = ['/var/lib/puppet','/usr/share/puppet']
+validate_absolute_path($my_path4)
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_absolute_path(true)
+validate_absolute_path('../var/lib/puppet')
+validate_absolute_path('var/lib/puppet')
+validate_absolute_path([ 'var/lib/puppet', '/var/foo' ])
+validate_absolute_path([ '/var/lib/puppet', 'var/foo' ])
+$undefined = `undef`
+validate_absolute_path($undefined)
+```
+
+*タイプ*: ステートメント
+
+#### `validate_array`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+渡されたすべての値が配列データ構造であることを確認します。このチェックで不合格となった値がある場合は、カタログコンパイルが中止されます。
+
+以下の値が渡されます:
+
+```puppet
+$my_array = [ 'one', 'two' ]
+validate_array($my_array)
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_array(true)
+validate_array('some_string')
+$undefined = `undef`
+validate_array($undefined)
+```
+
+*タイプ*: ステートメント
+
+#### `validate_augeas`
+
+Augeasレンズを用いて文字列を確認します。
+
+引数:
+
+* 第1の引数として、テストする文字列。
+* 第2の引数として、使用するAugeasレンズの名前。
+* オプションの第3の文字列として、ファイル内で見つかるべき**ではない**パスのリスト。
+* オプションの第4の引数として、ユーザに表示するエラーメッセージ。
+
+Augeasがレンズによる文字列の構文解析に失敗した場合は、構文エラーによりコンパイルが中止されます。 
+
+`$file`変数は、Augeasツリーでテストされる一時ファイルのロケーションを示します。
+
+たとえば、$passwdcontentにユーザの`foo`が含まれないようにするには、第3の引数を以下のようにします:
+
+```puppet
+validate_augeas($passwdcontent, 'Passwd.lns', ['$file/foo'])
+```
+
+エラーメッセージを生成して表示するには、第4の引数を以下のようにします:
+
+```puppet
+validate_augeas($sudoerscontent, 'Sudoers.lns', [], 'Failed to validate sudoers content with Augeas')
+```
+
+*タイプ*: ステートメント
+
+#### `validate_bool`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+渡されたすべての値が`true`または`false`のいずれかであることを確認します。 
+このチェックで不合格となった値がある場合は、カタログコンパイルが中止されます。
+
+以下の値が渡されます:
+
+```puppet
+$iamtrue = true
+validate_bool(true)
+validate_bool(true, true, false, $iamtrue)
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+$some_array = [ true ]
+validate_bool("false")
+validate_bool("true")
+validate_bool($some_array)
+```
+
+*タイプ*: ステートメント
+
+#### `validate_cmd`
+
+外部コマンドにより文字列を確認します。
+
+引数:
+* 第1の引数として、テストする文字列。
+* 第2の引数として、テストコマンドのパス。この引数は、ファイルパスのプレースホルダ―として%をとります(%プレースホルダーが与えられていない場合、デフォルトはコマンド末尾)。パスした文字列を含む一時ファイルに対してコマンドが起動した場合や、ゼロではない値が返された場合は、構文エラーによりコンパイルが中止されます。
+* オプションの第3の引数として、ユーザに表示するエラーメッセージ。
+
+```puppet
+# デフォルトのパス末尾
+validate_cmd($sudoerscontent, '/usr/sbin/visudo -c -f', 'Visudo failed to validate sudoers content')
+```
+
+```puppet
+# ファイルロケーションとして%を使用
+validate_cmd($haproxycontent, '/usr/sbin/haproxy -f % -c', 'Haproxy failed to validate config content')
+```
+
+*タイプ*: ステートメント
+
+#### `validate_hash`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+渡されたすべての値がハッシュデータ構造であることを確認します。このチェックで不合格となった値がある場合は、カタログコンパイルが中止されます。
+
+以下の値が渡されます:
+
+```puppet
+$my_hash = { 'one' => 'two' }
+validate_hash($my_hash)
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_hash(true)
+validate_hash('some_string')
+$undefined = `undef`
+validate_hash($undefined)
+```
+
+*タイプ*: ステートメント
+
+#### `validate_integer`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+整数または整数の配列を確認します。いずれかがチェックで不合格になった場合には、カタログコンパイルが中止されます。
+
+引数:
+
+* 第1の引数として、整数または整数の配列。
+* オプションの第2の引数として、最大値。第1の引数(のすべての要素)は、この最大値以下でなければなりません。
+* オプションの第3の引数として、最小値。第1の引数(のすべての要素)は、この最小値以上でなければなりません。 
+
+第1の引数が整数または整数の配列でない場合や、第2または第3の引数が整数に変換できない場合は、この関数は失敗になります。ただし、最小値が与えられている場合は(この場合に限られます)、第2の引数を空文字列または`undef`にすることが可能です。これは、最小チェックを確実に行うためのプレースホルダーとして機能します。
+
+以下の値が渡されます:
+
+```puppet
+validate_integer(1)
+validate_integer(1, 2)
+validate_integer(1, 1)
+validate_integer(1, 2, 0)
+validate_integer(2, 2, 2)
+validate_integer(2, '', 0)
+validate_integer(2, `undef`, 0)
+$foo = `undef`
+validate_integer(2, $foo, 0)
+validate_integer([1,2,3,4,5], 6)
+validate_integer([1,2,3,4,5], 6, 0)
+```
+
+* 加えて、上述のすべて。ただし、文字列として渡された値を任意に組み合わせたもの('1'または"1")。
+* 加えて、上述のすべて。ただし、負の整数値を(適切に)組み合わせたもの。
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_integer(true)
+validate_integer(false)
+validate_integer(7.0)
+validate_integer({ 1 => 2 })
+$foo = `undef`
+validate_integer($foo)
+validate_integer($foobaridontexist)
+
+validate_integer(1, 0)
+validate_integer(1, true)
+validate_integer(1, '')
+validate_integer(1, `undef`)
+validate_integer(1, , 0)
+validate_integer(1, 2, 3)
+validate_integer(1, 3, 2)
+validate_integer(1, 3, true)
+```
+
+* 加えて、上述のすべて。ただし、文字列として渡された値を任意に組み合わせたもの (`false`、または"false")。
+* 加えて、上述のすべて。ただし、負の整数値を不適切に組み合わせたもの。
+* 加えて、上述のすべて。ただし、配列内の非整数アイテムまたは最大/最小引数を用いたもの。
+
+*タイプ*: ステートメント
+
+#### `validate_ip_address`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+IPv4アドレスかIPv6アドレスかにかかわらず、引数がIPアドレスであることを確認します。また、ネットマスクによりIPアドレスを確認します。 
+
+引数: IPアドレスを指定する文字列。
+
+以下の値が渡されます:
+
+```puppet
+validate_ip_address('0.0.0.0')
+validate_ip_address('8.8.8.8')
+validate_ip_address('127.0.0.1')
+validate_ip_address('194.232.104.150')
+validate_ip_address('3ffe:0505:0002::')
+validate_ip_address('::1/64')
+validate_ip_address('fe80::a00:27ff:fe94:44d6/64')
+validate_ip_address('8.8.8.8/32')
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_ip_address(1)
+validate_ip_address(true)
+validate_ip_address(0.0.0.256)
+validate_ip_address('::1', {})
+validate_ip_address('0.0.0.0.0')
+validate_ip_address('3.3.3')
+validate_ip_address('23.43.9.22/64')
+validate_ip_address('260.2.32.43')
+```
+
+
+#### `validate_legacy`
+
+指定したタイプおよび非推奨の確認関数の両方に照らして値を確認します。両方にパスした場合はそのままパスし、片方の確認のみにパスした場合はエラーが生じ、両方の確認でfalseが返された場合は失敗になります。
+
+引数:
+
+* 値のチェックに用いるタイプ。
+* 過去の確認関数のフルネーム。
+* チェックする値。
+* 過去の確認関数に必要な引数の不特定数。
+
+例:
+
+```puppet
+validate_legacy("Optional[String]", "validate_re", "Value to be validated", ["."])
+```
+
+この関数は、Puppet 3形式の引数確認(stdlibの`validate_*`関数を使用)からPuppet 4データタイプへのモジュールのアップデートに対応しており、Puppet 3形式の確認に頼っている場合も機能性が中断することはありません。
+
+> 注: この関数は、Puppet 4.4.0 (PE 2016.1)以降にのみ対応しています。
+
+##### モジュールユーザへ
+
+Puppet 4を使用している場合、`validate_legacy`関数を使えば、非推奨のPuppet 3の`validate_*`関数を探し、分離することができます。これらの関数は、stdlibバージョン4.13時点で非推奨になっており、今後のstdlibバージョンでは削除されます。
+
+Puppet 4では、[データタイプ](https://docs.puppet.com/puppet/latest/reference/lang_data.html)を用いた改良版の定義タイプチェックが可能です。データタイプでは、Puppet 3の`validate_*`関数で見られた、矛盾につながるいくつかの問題を回避できます。たとえば、[validate_numeric](#validate_numeric)では、数字だけでなく、数字の配列や数字のように見える文字列も意図せず許可されていました。
+
+Puppet 4とともに、非推奨の `validate_*`関数を用いたモジュールを使用している場合は、非推奨メッセージが表示されることがあります。`validate_legacy`関数を使えば、そうした差異を可視化し、より明快なPuppet 4構文に簡単に移行することができます。
+
+表示される非推奨メッセージは、使用しているモジュールやデータによって異なることがあります。以下の非推奨メッセージは、Puppet 4でのみデフォルトで表示されます:
+
+* `Notice: Accepting previously invalid value for target type '<type>'`: このメッセージは、情報提供の目的のみで表示されるものです。使用している値は、新形式で許可されていますが、旧確認関数では無効となります。
+* `Warning: This method is deprecated, please use the stdlib validate_legacy function`: モジュールがまだ`validate_legacy`にアップグレードされていません。[deprecation](#deprecation)オプションを使用してさしあたり警告を解除するか、モジュールの開発者によりフィックスを提出してください。この問題の解決方法については、以下の[モジュール開発者へ](#モジュール開発者へ)を参照してください。
+* `Warning: validate_legacy(<function>) expected <type> value, got <actual type>_`: コードが渡す値は、Puppet 3形式の確認では認められますが、次バージョンのモジュールでは認められません。ほとんどの場合、数字またはブーリアンからクォートを削除すれば、この問題を解決することができます。
+* `Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, validate_legacy(<function>) expected <type> value, got <actual type>`: コードの渡す値は、新形式の確認でも旧形式の確認でも認められません。
+
+##### モジュール開発者へ
+
+`validate_legacy`関数は、モジュールユーザの使用している機能を中断させずに、 Puppet 3形式の確認からPuppet 4形式の確認に移行するのに役立ちます。
+
+Puppet 4形式の確認に移行すれば、[データタイプ](https://docs.puppet.com/puppet/latest/reference/lang_data.html)を用いた、より明確な定義タイプチェックが可能になります。Puppet 3の`validate_*` 関数の多くは、確認という点で驚くほど多くの穴があります。たとえば、[validate_numeric](#validate_numeric)では、細部をコントロールできないため、数字だけでなく、数字の配列や数字のように見える文字列も許可されます。 
+
+クラスおよび定義タイプの各パラメータについて、使用する新しいPuppet 4データタイプを選択してください。たいていの場合、新しいデータタイプにより、元の`validate_*`関数とは異なる値のセットを使用できるようになります。以下のような状況になります:
+
+|              | `validate_` pass | `validate_` fail |
+| ------------ | ---------------- | ---------------- |
+| マッチタイプ | パス             | パス、通告     |
+| 失敗タイプ   | パス、非推奨 | 失敗             |
+
+現在のところ、確認後のコードでも、すべての可能な値に対処する必要がありますが、新形式にマッチする値のみを渡すように、コードのユーザがマニフェストを変更することができます。
+
+stdlibの`validate_*`関数それぞれについて、マッチする`Stdlib::Compat::*`タイプがあり、適切な値のセットが許可されます。注意事項については、stdlibソースコードの `types/`ディレクトリにあるドキュメントを参照してください。
+
+たとえば、数字のみが許可されるクラスを与えると、以下のようになります:
+
+```puppet
+class example($value) {
+  validate_numeric($value)
+```
+
+得られる確認コードは、以下のようになります:
+
+```puppet
+class example(
+  Variant[Stdlib::Compat::Numeric, Numeric] $value
+) {
+  validate_legacy(Numeric, 'validate_numeric', $value)
+```
+
+ここでは、`$value`のタイプが`Variant[Stdlib::Compat::Numeric, Numeric]`と定義されています。これにより、任意の`Numeric` (新形式)のほか、`validate_numeric`で(`Stdlib::Compat::Numeric`を通じて)これまで許可されていたすべての値を使用できます。
+
+`validate_legacy`を呼び出すと、適切なログまたは失敗メッセージのトリガーが処理されます。これには、新形式、以前の確認関数の名称、およびその関数のすべての引数が必要です。
+
+お使いのモジュールがまだPuppet 3をサポートしている場合は、これは互換性を破る変更になります。`metadata.json`要件セクションをアップデートしてモジュールがもうPuppet 3をサポートしていないことを示し、モジュールのメジャーバージョンを放棄してください。この変更を加えても、モジュールに関する既存のすべてのテストにパスするはずです。新たに可能になった値について、追加のテストを作成してください。
+
+これは互換性を破る変更であることから、取り除きたいすべてのパラメータについて [`deprecation`](#deprecation)をコールしたり、パラメータにさらなる制約を追加したりする良い機会でもあります。
+
+このバージョンのリリース後、互換性を破る変更を加えた別のリリースを公開し、すべての互換性タイプおよび `validate_legacy`のコールを削除することができます。その時点で、コードを実行し、過去に可能だった値に関する残余要素を取り除くこともできます。
+
+そうした変更については、必ずCHANGELOGおよびREADMEで通告してください。
+
+#### `validate_numeric`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+数値または数値の配列や文字列を確認します。いずれかがチェックに失敗した場合には、カタログコンパイルが中止されます。
+
+引数:
+
+* 数値、または数値の配列か文字列。
+* オプションで、最大値。第1の引数(のすべての要素) は、この最大値以下でなければなりません。
+* オプションで、最小値。第1の引数(のすべての要素)は、この最小値以上でなければなりません。
+
+第1の引数が数値(整数またはフロート)または数値の配列が文字列でない場合や、第2および第3の引数が数値に変換できない場合は、この関数は失敗になります。最小値が与えられている場合は(この場合に限られます)、第2の引数を空文字列または`undef`にすることが可能です。これは、最小チェックを確実に行うためのプレースホルダーとして機能します。
+
+パスおよび失敗の使用については、[`validate_integer`](#validate-integer)を参照してください。同じ値がパスおよび失敗します。ただし、`validate_numeric`では、浮動小数点値も許可されます。
+
+*タイプ*: ステートメント
+
+#### `validate_re`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+1つまたは複数の正規表現に照らして、文字列の簡単な確認を行います。
+
+引数:
+
+* 第1の引数として、テストする文字列。この引数が文字列でない場合、コンパイルが中止されます。クォートを用いて強制的に文字列化してください。
+* 第2の引数として、文字列化した正規表現(区切り文字//なし)または正規表現の配列。
+* オプションの第3の引数として、ユーザに表示するエラーメッセージ。
+
+第2の引数の正規表現が第1の引数で渡した文字列にマッチしない場合は、構文エラーによりコンパイルが中止されます。
+
+以下の文字列により、正規表現に照らして確認が行われます:
+
+```puppet
+validate_re('one', '^one$')
+validate_re('one', [ '^one', '^two' ])
+```
+
+以下の文字列では、確認に失敗し、コンパイルが中止されます:
+
+```puppet
+validate_re('one', [ '^two', '^three' ])
+```
+
+エラーメッセージの設定方法:
+
+```puppet
+validate_re($::puppetversion, '^2.7', 'The $puppetversion fact value does not match 2.7')
+```
+
+強制的に文字列化するには、クォートを使用してください:
+
+  ```
+  validate_re("${::operatingsystemmajrelease}", '^[57]$')
+  ```
+
+*タイプ*: ステートメント
+
+#### `validate_slength`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+文字列(または文字列の配列)が指定した長さ以下であることを確認します。
+
+引数:
+
+* 第1の引数として、文字列または文字列の配列。
+* 第2の引数として、長さの最大値を示す数値。
+* オプションの第3の引数として、長さの最小値を示す数値。
+
+  以下の値が渡されます:
+
+```puppet
+validate_slength("discombobulate",17)
+validate_slength(["discombobulate","moo"],17)
+validate_slength(["discombobulate","moo"],17,3)
+```
+
+以下の値は失敗になります:
+
+```puppet
+validate_slength("discombobulate",1)
+validate_slength(["discombobulate","thermometer"],5)
+validate_slength(["discombobulate","moo"],17,10)
+```
+
+*タイプ*: ステートメント
+
+#### `validate_string`
+
+**非推奨。今後のバージョンのstdlibでは削除されます。[`validate_legacy`](#validate_legacy)を参照してください。**
+
+渡したすべての値が文字列データ構造であることを確認します。このチェックに失敗した値がある場合は、カタログコンパイルが中止されます。
+
+以下の値が渡されます:
+
+```puppet
+$my_string = "one two"
+validate_string($my_string, 'three')
+```
+
+以下の値は失敗になり、コンパイルが中止されます:
+
+```puppet
+validate_string(true)
+validate_string([ 'some', 'array' ])
+```
+
+*注:* validate_string(`undef`)は、このバージョンの関数APIでは失敗しません。
+
+代わりに、以下を使用してください:
+
+  ```
+  if $var == `undef` {
+    fail('...')
+  }
+  ```
+
+*タイプ*: ステートメント
+
+#### `validate_x509_rsa_key_pair`
+
+OpenSSLにより、PEMフォーマットされたX.509認証およびプライベートキーを確認します。
+認証の署名が提供されたキーから作成されたものであることを確認します。
+
+このチェックに失敗した値がある場合は、カタログコンパイルが中止されます。
+
+引数:
+
+* 第1の引数として、X.509認証。
+* 第2の引数として、RSAプライベートキー。
+
+```puppet
+validate_x509_rsa_key_pair($cert, $key)
+```
+
+*タイプ*: ステートメント
+
+#### `values`
+
+与えられたハッシュの値を返します。
+
+たとえば、`$hash = {'a'=1, 'b'=2, 'c'=3} values($hash)`を与えると、[1,2,3]を返します。
+
+*タイプ*: 右辺値
+
+#### `values_at`
+
+ロケーションをもとに、配列内の値を探します。
+
+引数:
+
+* 第1の引数として、解析したい配列。
+* 第2の引数として、以下の値の任意の組み合わせ:
+  * 単一の数値インデックス。
+  * 'start-stop'の形式での範囲(4-9など)。
+  * 上記を組み合わせた配列。
+
+例:
+
+* `values_at(['a','b','c'], 2)`は['c']を返します。
+* `values_at(['a','b','c'], ["0-1"])`は['a','b']を返します。
+* `values_at(['a','b','c','d','e'], [0, "2-3"])`は['a','c','d']を返します。
+
+*タイプ*: 右辺値
+
+#### `zip`
+
+与えられた第1の配列から1つの要素をとり、与えられた第2の配列の対応する要素と結合します。これにより、n-要素配列のシーケンスが生成されます。*n*は、引数の数より1大きくなります。たとえば、`zip(['1','2','3'],['4','5','6'])`は["1", "4"], ["2", "5"], ["3", "6"]を返します。*タイプ*: 右辺値。
+
+## 制約
+
+Puppet Enterprise 3.7では、stdlibモジュールがPEに含まれていません。PEユーザは、Puppetと互換性のあるstdlibの最新リリースをインストールする必要があります。
+
+### バージョン互換性
+
+バージョン | Puppet 2.6 | Puppet 2.7 | Puppet 3.x | Puppet 4.x |
+:---------------|:-----:|:---:|:---:|:----:
+**stdlib 2.x**  | **あり** | **あり** | なし | なし
+**stdlib 3.x**  | なし    | **あり**  | **あり** | なし
+**stdlib 4.x**  | なし    | **あり**  | **あり** | なし
+**stdlib 4.6+**  | なし    | **あり**  | **あり** | **あり**
+**stdlib 5.x**  | なし    | なし  | **あり**  | **あり**
+
+**stdlib 5.x**:  stdlib 5.xのリリース時には、Puppet 2.7.xのサポートが廃止されます。[この説明](https://github.com/puppetlabs/puppetlabs-stdlib/pull/176#issuecomment-30251414)を参照してください。
+
+## 開発
+
+Puppet ForgeのPuppet Labsモジュールはオープンプロジェクトで、良い状態に保つためには、コミュニティの貢献が必要不可欠です。Puppetが役に立つはずでありながら、私たちがアクセスできないプラットフォームやハードウェア、ソフトウェア、デプロイ構成は無数にあります。私たちの目標は、できる限り簡単に変更に貢献し、みなさまの環境で私たちのモジュールが機能できるようにすることにあります。最高の状態を維持できるようにするために、コントリビュータが従う必要のあるいくつかのガイドラインが存在します。詳細については、[モジュールコントリビューションガイド](https://docs.puppetlabs.com/forge/contributing.html)を参照してください。
+
+このモジュールのバグの報告または調査は、
+[http://tickets.puppetlabs.com/browse/MODULES](http://tickets.puppetlabs.com/browse/MODULES)からお願いします。
+
+## コントリビュータ
+
+コントリビュータのリストは、[https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors](https://github.com/puppetlabs/puppetlabs-stdlib/graphs/contributors)で見ることができます。
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/abs_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/abs_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/abs_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'abs function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'abs function' do
   describe 'success' do
     it 'should accept a string' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/anchor_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/anchor_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/anchor_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,5 +1,5 @@
 require 'spec_helper_acceptance'
 
-describe 'anchor type', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'anchor type' do
   describe 'success' do
     it 'should effect proper chaining of resources' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/any2array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/any2array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/any2array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'any2array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'any2array function' do
   describe 'success' do
     it 'should create an empty array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/base64_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/base64_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/base64_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'base64 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'base64 function' do
   describe 'success' do
     it 'should encode then decode a string' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/bool2num_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/bool2num_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/bool2num_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'bool2num function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'bool2num function' do
   describe 'success' do
     ['false', 'f', '0', 'n', 'no'].each do |bool|
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/capitalize_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/capitalize_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/capitalize_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'capitalize function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'capitalize function' do
   describe 'success' do
     it 'should capitalize the first letter of a string' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/ceiling_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/ceiling_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/ceiling_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'ceiling function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'ceiling function' do
   describe 'success' do
     it 'ceilings floats' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chomp_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chomp_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chomp_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'chomp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'chomp function' do
   describe 'success' do
     it 'should eat the newline' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chop_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chop_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/chop_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'chop function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'chop function' do
   describe 'success' do
     it 'should eat the last character' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/clamp_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/clamp_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/clamp_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'clamp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'clamp function' do
   describe 'success' do
     it 'clamps list of values' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/concat_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/concat_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/concat_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'concat function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'concat function' do
   describe 'success' do
     it 'should concat one array to another' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/count_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/count_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/count_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'count function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'count function' do
   describe 'success' do
     it 'should count elements in an array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deep_merge_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deep_merge_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deep_merge_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'deep_merge function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'deep_merge function' do
   describe 'success' do
     it 'should deep merge two hashes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/defined_with_params_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/defined_with_params_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/defined_with_params_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'defined_with_params function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'defined_with_params function' do
   describe 'success' do
     it 'should successfully notify' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_at_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_at_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_at_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'delete_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'delete_at function' do
   describe 'success' do
     it 'should delete elements of the array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'delete function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'delete function' do
   describe 'success' do
     it 'should delete elements of the array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_undef_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_undef_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_undef_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'delete_undef_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'delete_undef_values function' do
   describe 'success' do
     it 'should delete elements of the array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/delete_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'delete_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'delete_values function' do
   describe 'success' do
     it 'should delete elements of the hash' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deprecation_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deprecation_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/deprecation_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,102 @@
+#! /usr/bin/env ruby -S rspec
+require 'spec_helper_acceptance'
+
+describe 'deprecation function' do
+
+  if fact('operatingsystem') == 'windows'
+    test_file = 'C:/deprecation'
+    else
+    test_file = "/tmp/deprecation"
+  end
+
+  # It seems that Windows needs everything to be on one line when using puppet apply -e, otherwise the manifests would be in an easier format
+  add_file_manifest = "\"deprecation('key', 'message') file { '#{test_file}': ensure => present, content => 'test', }\""
+  remove_file_manifest = "file { '#{test_file}': ensure => absent }"
+
+  before :all do
+    apply_manifest(remove_file_manifest)
+  end
+
+  context 'with --strict=error', if: get_puppet_version =~ /^4/ do
+    before :all do
+      @result = on(default, puppet('apply', '--strict=error', '-e', add_file_manifest), acceptable_exit_codes: (0...256))
+    end
+
+    after :all do
+      apply_manifest(remove_file_manifest)
+    end
+
+    it "should return an error" do
+      expect(@result.exit_code).to eq(1)
+    end
+
+    it "should show the error message" do
+      expect(@result.stderr).to match(/deprecation. key. message/)
+    end
+
+    describe file("#{test_file}") do
+      it { is_expected.not_to be_file }
+    end
+  end
+
+  context 'with --strict=warning', if: get_puppet_version =~ /^4/ do
+    before :all do
+      @result = on(default, puppet('apply', '--strict=warning', '-e', add_file_manifest), acceptable_exit_codes: (0...256))
+    end
+
+    after :all do
+      apply_manifest(remove_file_manifest)
+    end
+
+    it "should not return an error" do
+      expect(@result.exit_code).to eq(0)
+    end
+
+    it "should show the error message" do
+      expect(@result.stderr).to match(/Warning: message/)
+    end
+
+    describe file("#{test_file}") do
+      it { is_expected.to be_file }
+    end
+  end
+
+  context 'with --strict=off', if: get_puppet_version =~ /^4/ do
+    before :all do
+      @result = on(default, puppet('apply', '--strict=off', '-e', add_file_manifest), acceptable_exit_codes: (0...256))
+    end
+
+    after :all do
+      apply_manifest(remove_file_manifest)
+    end
+
+    it "should not return an error" do
+      expect(@result.exit_code).to eq(0)
+    end
+
+    it "should not show the error message" do
+      expect(@result.stderr).not_to match(/Warning: message/)
+    end
+
+    describe file("#{test_file}") do
+      it { is_expected.to be_file }
+    end
+  end
+
+  context 'puppet 3 test', if: get_puppet_version =~ /^3/ do
+    before :all do
+      @result = on(default, puppet('apply', '--parser=future', '-e', add_file_manifest), acceptable_exit_codes: (0...256))
+    end
+    after :all do
+      apply_manifest(remove_file_manifest)
+    end
+
+    it "should return a deprecation error" do
+      expect(@result.stderr).to match(/Warning: message/)
+    end
+    it "should pass without error" do
+      expect(@result.exit_code).to eq(0)
+    end
+  end
+
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/difference_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/difference_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/difference_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'difference function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'difference function' do
   describe 'success' do
     it 'returns non-duplicates in the first array' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/dirname_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/dirname_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/dirname_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'dirname function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'dirname function' do
   describe 'success' do
     context 'absolute path' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/downcase_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/downcase_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/downcase_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'downcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'downcase function' do
   describe 'success' do
     it 'returns the downcase' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/empty_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/empty_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/empty_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'empty function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'empty function' do
   describe 'success' do
     it 'recognizes empty strings' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/flatten_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/flatten_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/flatten_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'flatten function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'flatten function' do
   describe 'success' do
     it 'flattens arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/floor_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/floor_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/floor_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'floor function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'floor function' do
   describe 'success' do
     it 'floors floats' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rand_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rand_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rand_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'fqdn_rand_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'fqdn_rand_string function' do
   describe 'success' do
     include_context "with faked facts"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rotate_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rotate_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/fqdn_rotate_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'fqdn_rotate function' do
   describe 'success' do
     include_context "with faked facts"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/get_module_path_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/get_module_path_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/get_module_path_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'get_module_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'get_module_path function' do
   describe 'success' do
     it 'get_module_paths dne' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getparam_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getparam_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getparam_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'getparam function' do
   describe 'success' do
     it 'getparam a notify' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getvar_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getvar_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/getvar_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'getvar function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'getvar function' do
   describe 'success' do
     it 'getvars from classes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/grep_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/grep_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/grep_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'grep function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'grep function' do
   describe 'success' do
     it 'greps arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_interface_with_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_interface_with_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_interface_with_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'has_interface_with function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
+describe 'has_interface_with function', :unless => ((fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_interface_with existing ipaddress' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'has_ip_address function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
+describe 'has_ip_address function', :unless => ((fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_ip_address existing ipaddress' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_network_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_network_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_ip_network_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'has_ip_network function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
+describe 'has_ip_network function', :unless => ((fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_ip_network existing ipaddress' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_key_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_key_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/has_key_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'has_key function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'has_key function' do
   describe 'success' do
     it 'has_keys in hashes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'hash function' do
   describe 'success' do
     it 'hashs arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/intersection_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/intersection_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/intersection_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'intersection function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'intersection function' do
   describe 'success' do
     it 'intersections arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_a_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_a_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_a_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,5 +3,5 @@
 
 if get_puppet_version =~ /^4/
-  describe 'is_a function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+  describe 'is_a function' do
     it 'should match a string' do
       pp = <<-EOS
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_array function' do
   describe 'success' do
     it 'is_arrays arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_bool function' do
   describe 'success' do
     it 'is_bools arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_domain_name_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_domain_name_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_domain_name_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_domain_name function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_domain_name function' do
   describe 'success' do
     it 'is_domain_names arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_float_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_float_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_float_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_float function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_float function' do
   describe 'success' do
     it 'is_floats arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_function_available_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_function_available_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_function_available_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_function_available function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_function_available function' do
   describe 'success' do
     it 'is_function_availables arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_hash function' do
   describe 'success' do
     it 'is_hashs arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_integer_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_integer_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_integer_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_integer function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_integer function' do
   describe 'success' do
     it 'is_integers arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ip_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ip_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ip_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_ip_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_ip_address function' do
   describe 'success' do
     it 'is_ip_addresss ipv4' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv4_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv4_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv4_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_ipv4_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_ipv4_address function' do
   describe 'success' do
     it 'is_ipv4_addresss' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv6_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv6_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_ipv6_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_ipv6_address function' do
   describe 'success' do
     it 'is_ipv6_addresss' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_mac_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_mac_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_mac_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_mac_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_mac_address function' do
   describe 'success' do
     it 'is_mac_addresss a mac' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_numeric_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_numeric_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_numeric_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_numeric function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_numeric function' do
   describe 'success' do
     it 'is_numerics arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/is_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'is_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'is_string function' do
   describe 'success' do
     it 'is_strings arrays' do
@@ -96,4 +96,15 @@
       end
     end
+    it 'is_strings undef' do
+      pp = <<-EOS
+      $a = undef
+      $o = is_string($a)
+      notice(inline_template('is_string is <%= @o.inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/is_string is true/)
+      end
+    end
   end
   describe 'failure' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_keys_to_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_keys_to_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_keys_to_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'join_keys_to_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'join_keys_to_values function' do
   describe 'success' do
     it 'join_keys_to_valuess hashes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/join_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'join function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'join function' do
   describe 'success' do
     it 'joins arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/keys_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/keys_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/keys_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'keys function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'keys function' do
   describe 'success' do
     it 'keyss hashes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadjson_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadjson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadjson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,52 @@
+#! /usr/bin/env ruby -S rspec
+require 'spec_helper_acceptance'
+
+tmpdir = default.tmpdir('stdlib')
+
+describe 'loadjson function' do
+  describe 'success' do
+    it 'loadjsons array of values' do
+      shell("echo '{\"aaa\":1,\"bbb\":2,\"ccc\":3,\"ddd\":4}' > #{tmpdir}/testjson.json")
+      pp = <<-EOS
+      $o = loadjson('#{tmpdir}/testjson.json')
+      notice(inline_template('loadjson[aaa] is <%= @o["aaa"].inspect %>'))
+      notice(inline_template('loadjson[bbb] is <%= @o["bbb"].inspect %>'))
+      notice(inline_template('loadjson[ccc] is <%= @o["ccc"].inspect %>'))
+      notice(inline_template('loadjson[ddd] is <%= @o["ddd"].inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/loadjson\[aaa\] is 1/)
+        expect(r.stdout).to match(/loadjson\[bbb\] is 2/)
+        expect(r.stdout).to match(/loadjson\[ccc\] is 3/)
+        expect(r.stdout).to match(/loadjson\[ddd\] is 4/)
+      end
+    end
+
+    it 'returns the default value if there is no file to load' do
+      pp = <<-EOS
+      $o = loadjson('#{tmpdir}/no-file.json', {'default' => 'value'})
+      notice(inline_template('loadjson[default] is <%= @o["default"].inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/loadjson\[default\] is "value"/)
+      end
+    end
+
+    it 'returns the default value if the file was parsed with an error' do
+      shell("echo '!' > #{tmpdir}/testjson.json")
+      pp = <<-EOS
+      $o = loadjson('#{tmpdir}/testjson.json', {'default' => 'value'})
+      notice(inline_template('loadjson[default] is <%= @o["default"].inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/loadjson\[default\] is "value"/)
+      end
+    end
+  end
+  describe 'failure' do
+    it 'fails with no arguments'
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadyaml_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadyaml_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/loadyaml_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -4,5 +4,5 @@
 tmpdir = default.tmpdir('stdlib')
 
-describe 'loadyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'loadyaml function' do
   describe 'success' do
     it 'loadyamls array of values' do
@@ -27,4 +27,27 @@
       end
     end
+
+    it 'returns the default value if there is no file to load' do
+      pp = <<-EOS
+      $o = loadyaml('#{tmpdir}/no-file.yaml', {'default' => 'value'})
+      notice(inline_template('loadyaml[default] is <%= @o["default"].inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/loadyaml\[default\] is "value"/)
+      end
+    end
+
+    it 'returns the default value if the file was parsed with an error' do
+      shell("echo '!' > #{tmpdir}/testyaml.yaml")
+      pp = <<-EOS
+      $o = loadyaml('#{tmpdir}/testyaml.yaml', {'default' => 'value'})
+      notice(inline_template('loadyaml[default] is <%= @o["default"].inspect %>'))
+      EOS
+
+      apply_manifest(pp, :catch_failures => true) do |r|
+        expect(r.stdout).to match(/loadyaml\[default\] is "value"/)
+      end
+    end
   end
   describe 'failure' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/lstrip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/lstrip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/lstrip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'lstrip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'lstrip function' do
   describe 'success' do
     it 'lstrips arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/max_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/max_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/max_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'max function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'max function' do
   describe 'success' do
     it 'maxs arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/member_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/member_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/member_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'member function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'member function' do
   shared_examples 'item found' do
     it 'should output correctly' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/merge_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/merge_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/merge_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'merge function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'merge function' do
   describe 'success' do
     it 'should merge two hashes' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/min_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/min_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/min_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'min function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'min function' do
   describe 'success' do
     it 'mins arrays' do
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-59-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-59-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  centos-59-x64:
-    roles:
-      - master
-    platform: el-5-x86_64
-    box : centos-59-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: git
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-6-vcloud.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-6-vcloud.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,15 +1,0 @@
-HOSTS:
-  'centos-6-vcloud':
-    roles:
-      - master
-    platform: el-6-x86_64
-    hypervisor: vcloud
-    template: centos-6-x86_64
-CONFIG:
-  type: foss
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-64-x64-pe.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-64-x64-pe.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,12 +1,0 @@
-HOSTS:
-  centos-64-x64:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: el-6-x86_64
-    box : centos-64-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: pe
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-64-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-64-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  centos-64-x64:
-    roles:
-      - master
-    platform: el-6-x86_64
-    box : centos-64-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-65-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-65-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  centos-65-x64:
-    roles:
-      - master
-    platform: el-6-x86_64
-    box : centos-65-x64-vbox436-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-7-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-7-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/centos-7-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,10 @@
+HOSTS:
+  centos-7-x64:
+    roles:
+      - agent
+      - default
+    platform: el-7-x86_64
+    hypervisor: vagrant
+    box: puppetlabs/centos-7.2-64-nocm
+CONFIG:
+  type: foss
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/debian-8-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/debian-8-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/debian-8-x64.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,10 @@
+HOSTS:
+  debian-8-x64:
+    roles:
+      - agent
+      - default
+    platform: debian-8-amd64
+    hypervisor: vagrant
+    box: puppetlabs/debian-8.2-64-nocm
+CONFIG:
+  type: foss
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/default.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/default.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/default.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,10 +1,10 @@
 HOSTS:
-  centos-65-x64:
+  ubuntu-1404-x64:
     roles:
-      - master
-    platform: el-6-x86_64
-    box : centos-65-x64-vbox436-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box
-    hypervisor : vagrant
+      - agent
+      - default
+    platform: ubuntu-14.04-amd64
+    hypervisor: vagrant
+    box: puppetlabs/ubuntu-14.04-64-nocm
 CONFIG:
   type: foss
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/centos-7.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/centos-7.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/centos-7.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,12 @@
+HOSTS:
+  centos-7-x64:
+    platform: el-7-x86_64
+    hypervisor: docker
+    image: centos:7
+    docker_preserve_image: true
+    docker_cmd: '["/usr/sbin/init"]'
+    # install various tools required to get the image up to usable levels
+    docker_image_commands:
+      - 'yum install -y crontabs tar wget openssl sysvinit-tools iproute which initscripts'
+CONFIG:
+  trace_limit: 200
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/debian-8.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/debian-8.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/debian-8.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,11 @@
+HOSTS:
+  debian-8-x64:
+    platform: debian-8-amd64
+    hypervisor: docker
+    image: debian:8
+    docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get update && apt-get install -y net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
+CONFIG:
+  trace_limit: 200
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/ubuntu-14.04.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/ubuntu-14.04.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/docker/ubuntu-14.04.yml	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,12 @@
+HOSTS:
+  ubuntu-1404-x64:
+    platform: ubuntu-14.04-amd64
+    hypervisor: docker
+    image: ubuntu:14.04
+    docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      # ensure that upstart is booting correctly in the container
+      - 'rm /usr/sbin/policy-rc.d && rm /sbin/initctl && dpkg-divert --rename --remove /sbin/initctl && apt-get update && apt-get install -y net-tools wget && locale-gen en_US.UTF-8'
+CONFIG:
+  trace_limit: 200
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/fedora-18-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/fedora-18-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  fedora-18-x64:
-    roles:
-      - master
-    platform: fedora-18-x86_64
-    box : fedora-18-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/sles-11-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/sles-11-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  sles-11-x64.local:
-    roles:
-      - master
-    platform: sles-11-x64
-    box : sles-11sp1-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-    type: foss
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  ubuntu-server-10044-x64:
-    roles:
-      - master
-    platform: ubuntu-10.04-amd64
-    box : ubuntu-server-10044-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,10 +1,0 @@
-HOSTS:
-  ubuntu-server-12042-x64:
-    roles:
-      - master
-    platform: ubuntu-12.04-amd64
-    box : ubuntu-server-12042-x64-vbox4210-nocm
-    box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
-    hypervisor : vagrant
-CONFIG:
-  type: foss
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,11 +1,0 @@
-HOSTS:
-  ubuntu-server-1404-x64:
-    roles:
-      - master
-    platform: ubuntu-14.04-amd64
-    box : puppetlabs/ubuntu-14.04-64-nocm
-    box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
-    hypervisor : vagrant
-CONFIG:
-  log_level   : debug
-  type: git
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2003-i386.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2003-i386.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2003_i386:
-    roles:
-      - agent
-      - default
-    platform: windows-2003-i386
-    template: win-2003-i386
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2003-x86_64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2003-x86_64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2003_x86_64:
-    roles:
-      - agent
-      - default
-    platform: windows-2003-x86_64
-    template: win-2003-x86_64
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2008-x86_64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2008-x86_64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2008_x86_64:
-    roles:
-      - agent
-      - default
-    platform: windows-2008-x86_64
-    template: win-2008-x86_64
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2008r2-x86_64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2008r2-x86_64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2008r2:
-    roles:
-      - agent
-      - default
-    platform: windows-2008r2-x86_64
-    template: win-2008r2-x86_64
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2012-x86_64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2012-x86_64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2012:
-    roles:
-      - agent
-      - default
-    platform: windows-2012-x86_64
-    template: win-2012-x86_64
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2012r2-x86_64.yml
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/nodesets/windows-2012r2-x86_64.yml	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,26 +1,0 @@
-HOSTS:
-  ubuntu1204:
-    roles:
-      - master
-      - database
-      - dashboard
-    platform: ubuntu-12.04-amd64
-    template: ubuntu-1204-x86_64
-    hypervisor: vcloud
-  win2012r2:
-    roles:
-      - agent
-      - default
-    platform: windows-2012r2-x86_64
-    template: win-2012r2-x86_64
-    hypervisor: vcloud
-CONFIG:
-  nfs_server: none
-  ssh:
-    keys: "~/.ssh/id_rsa-acceptance"
-  consoleport: 443
-  datastore: instance0
-  folder: Delivery/Quality Assurance/Enterprise/Dynamic
-  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
-  pooling_api: http://vcloud.delivery.puppetlabs.net/
-  pe_dir: http://neptune.puppetlabs.lan/3.2/ci-ready/
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/num2bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/num2bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/num2bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'num2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'num2bool function' do
   describe 'success' do
     it 'bools positive numbers and numeric strings as true' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parsejson_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parsejson_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parsejson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'parsejson function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'parsejson function' do
   describe 'success' do
     it 'parses valid json' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parseyaml_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parseyaml_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/parseyaml_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'parseyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'parseyaml function' do
   describe 'success' do
     it 'parses valid yaml' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_default_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_default_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_default_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'pick_default function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'pick_default function' do
   describe 'success' do
     it 'pick_defaults a default value' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pick_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'pick function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'pick function' do
   describe 'success' do
     it 'picks a default value' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/prefix_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/prefix_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/prefix_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'prefix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'prefix function' do
   describe 'success' do
     it 'prefixes array of values' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pw_hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pw_hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/pw_hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,5 +3,5 @@
 
 # Windows and OS X do not have useful implementations of crypt(3)
-describe 'pw_hash function', :unless => (UNSUPPORTED_PLATFORMS + ['windows', 'Darwin', 'SLES']).include?(fact('operatingsystem')) do
+describe 'pw_hash function', :unless => (['windows', 'Darwin', 'SLES']).include?(fact('operatingsystem')) do
   describe 'success' do
     it 'hashes passwords' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/range_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/range_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/range_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'range function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'range function' do
   describe 'success' do
     it 'ranges letters' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reject_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reject_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reject_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'reject function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'reject function' do
   describe 'success' do
     it 'rejects array of values' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reverse_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reverse_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/reverse_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'reverse function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'reverse function' do
   describe 'success' do
     it 'reverses strings' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/rstrip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/rstrip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/rstrip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'rstrip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'rstrip function' do
   describe 'success' do
     it 'rstrips arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/shuffle_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/shuffle_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/shuffle_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'shuffle function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'shuffle function' do
   describe 'success' do
     it 'shuffles arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/size_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/size_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/size_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'size function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'size function' do
   describe 'success' do
     it 'single string size' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/sort_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/sort_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/sort_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'sort function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'sort function' do
   describe 'success' do
     it 'sorts arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/squeeze_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/squeeze_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/squeeze_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'squeeze function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'squeeze function' do
   describe 'success' do
     it 'squeezes arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'str2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'str2bool function' do
   describe 'success' do
     it 'works with "y"' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'str2saltedsha512 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'str2saltedsha512 function' do
   describe 'success' do
     it 'works with "y"' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strftime_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strftime_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strftime_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'strftime function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'strftime function' do
   describe 'success' do
     it 'gives the Century' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/strip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'strip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'strip function' do
   describe 'success' do
     it 'strips arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/suffix_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/suffix_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/suffix_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'suffix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'suffix function' do
   describe 'success' do
     it 'suffixes array of values' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/swapcase_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/swapcase_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/swapcase_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'swapcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'swapcase function' do
   describe 'success' do
     it 'works with strings' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/time_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/time_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/time_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'time function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'time function' do
   describe 'success' do
     it 'gives the time' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/to_bytes_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/to_bytes_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/to_bytes_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'to_bytes function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'to_bytes function' do
   describe 'success' do
     it 'converts kB to B' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/try_get_value_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/try_get_value_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/try_get_value_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'try_get_value function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'try_get_value function' do
   describe 'success' do
     it 'gets a value' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/type_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/type_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/type_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'type function', :unless => (UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) || is_future_parser_enabled?) do
+describe 'type function' do
   describe 'success' do
     it 'types arrays' do
@@ -9,9 +9,9 @@
       # Anagram: Large picture halls, I bet
       $o = type($a)
-      notice(inline_template('type is <%= @o.inspect %>'))
+      notice(inline_template('type is <%= @o.to_s %>'))
       EOS
 
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to match(/type is "array"/)
+        expect(r.stdout).to match(/type is Tuple\[String.*, String.*, String.*, String.*\]/)
       end
     end
@@ -20,9 +20,9 @@
       $a = "blowzy night-frumps vex'd jack q"
       $o = type($a)
-      notice(inline_template('type is <%= @o.inspect %>'))
+      notice(inline_template('type is <%= @o.to_s %>'))
       EOS
 
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to match(/type is "string"/)
+        expect(r.stdout).to match(/type is String/)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/union_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/union_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/union_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'union function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'union function' do
   describe 'success' do
     it 'unions arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/unique_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/unique_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/unique_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'unique function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'unique function' do
   describe 'success' do
     it 'uniques arrays' do
Index: c/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/unsupported_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/unsupported_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ 	(revision )
@@ -1,11 +1,0 @@
-#! /usr/bin/env ruby -S rspec
-require 'spec_helper_acceptance'
-
-describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
-  it 'should fail' do
-    pp = <<-EOS
-    class { 'mysql::server': }
-    EOS
-    expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported osfamily/i)
-  end
-end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/upcase_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/upcase_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/upcase_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'upcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'upcase function' do
   describe 'success' do
     it 'upcases arrays' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/uriescape_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/uriescape_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/uriescape_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'uriescape function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'uriescape function' do
   describe 'success' do
     it 'uriescape strings' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_absolute_path_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_absolute_path_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_absolute_path_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_absolute_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_absolute_path function' do
   describe 'success' do
     %w{
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_array function' do
   describe 'success' do
     it 'validates a single argument' do
@@ -21,12 +21,12 @@
       apply_manifest(pp, :catch_failures => true)
     end
-    it 'validates a non-array' do
-      {
-        %{validate_array({'a' => 'hash' })} => "Hash",
-        %{validate_array('string')}         => "String",
-        %{validate_array(false)}            => "FalseClass",
-        %{validate_array(undef)}            => "String"
-      }.each do |pp,type|
-        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/a #{type}/)
+    [
+      %{validate_array({'a' => 'hash' })},
+      %{validate_array('string')},
+      %{validate_array(false)},
+      %{validate_array(undef)}
+    ].each do |pp|
+      it "rejects #{pp.inspect}" do
+        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/is not an Array\.  It looks to be a/)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_augeas_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_augeas_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_augeas_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_augeas function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows')) do
+describe 'validate_augeas function', :unless => (fact('osfamily') == 'windows') do
   describe 'prep' do
     it 'installs augeas for tests'
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_bool function' do
   describe 'success' do
     it 'validates a single argument' do
@@ -21,12 +21,12 @@
       apply_manifest(pp, :catch_failures => true)
     end
-    it 'validates a non-bool' do
-      {
-        %{validate_bool('true')}  => "String",
-        %{validate_bool('false')} => "String",
-        %{validate_bool([true])}  => "Array",
-        %{validate_bool(undef)}   => "String",
-      }.each do |pp,type|
-        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/a #{type}/)
+    [
+      %{validate_bool('true')},
+      %{validate_bool('false')},
+      %{validate_bool([true])},
+      %{validate_bool(undef)}
+    ].each do |pp|
+      it "rejects #{pp.inspect}" do
+        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/is not a boolean\.  It looks to be a/)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_cmd_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_cmd_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_cmd_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_cmd function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_cmd function' do
   describe 'success' do
     it 'validates a true command' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_hash function' do
   describe 'success' do
     it 'validates a single argument' do
@@ -21,12 +21,12 @@
       apply_manifest(pp, :catch_failures => true)
     end
-    it 'validates a non-hash' do
-      {
-        %{validate_hash('{ "not" => "hash" }')} => "String",
-        %{validate_hash('string')}              => "String",
-        %{validate_hash(["array"])}             => "Array",
-        %{validate_hash(undef)}                 => "String",
-      }.each do |pp,type|
-        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/a #{type}/)
+    [
+      %{validate_hash('{ "not" => "hash" }')},
+      %{validate_hash('string')},
+      %{validate_hash(["array"])},
+      %{validate_hash(undef)}
+    ].each do |pp|
+      it "rejects #{pp.inspect}" do
+        expect(apply_manifest(pp, :expect_failures => true).stderr).to match(//)
       end
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv4_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv4_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv4_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_ipv4_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_ipv4_address function' do
   describe 'success' do
     it 'validates a single argument' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv6_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv6_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_ipv6_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_ipv6_address function' do
   describe 'success' do
     it 'validates a single argument' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_re_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_re_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_re_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_re function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_re function' do
   describe 'success' do
     it 'validates a string' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_slength_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_slength_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_slength_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_slength function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_slength function' do
   describe 'success' do
     it 'validates a single string max' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/validate_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'validate_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'validate_string function' do
   describe 'success' do
     it 'validates a single argument' do
@@ -21,4 +21,11 @@
       apply_manifest(pp, :catch_failures => true)
     end
+    it 'validates undef' do
+      pp = <<-EOS
+      validate_string(undef)
+      EOS
+
+      apply_manifest(pp, :catch_failures => true)
+    end
     it 'validates a non-string' do
       {
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_at_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_at_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_at_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'values_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'values_at function' do
   describe 'success' do
     it 'returns a specific value' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,5 @@
 require 'spec_helper_acceptance'
 
-describe 'values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'values function' do
   describe 'success' do
     it 'returns an array of values' do
@@ -14,10 +14,5 @@
       notice(inline_template('<%= @output.sort.inspect %>'))
       EOS
-      if is_future_parser_enabled?
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[1, 2, 3\]/)
-      else
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\["1", "2", "3"\]/)
-      end
-
+      expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[1, 2, 3\]/)
     end
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/zip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/zip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/acceptance/zip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,7 +1,6 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
-require 'puppet'
 
-describe 'zip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'zip function' do
   describe 'success' do
     it 'zips two arrays of numbers together' do
@@ -12,9 +11,5 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-      if is_future_parser_enabled?
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, 5\], \[2, 6\], \[3, 7\], \[4, 8\]\]/)
-      else
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\["1", "5"\], \["2", "6"\], \["3", "7"\], \["4", "8"\]\]/)
-      end
+      expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, 5\], \[2, 6\], \[3, 7\], \[4, 8\]\]/)
     end
     it 'zips two arrays of numbers & bools together' do
@@ -25,9 +20,5 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-      if is_future_parser_enabled?
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, true\], \[2, true\], \["three", false\], \[4, false\]\]/)
-      else
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\["1", true\], \["2", true\], \["three", false\], \["4", false\]\]/)
-      end
+      expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, true\], \[2, true\], \["three", false\], \[4, false\]\]/)
     end
     it 'zips two arrays of numbers together and flattens them' do
@@ -42,9 +33,5 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-      if is_future_parser_enabled?
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[1, 5, 2, 6, 3, 7, 4, 8\]/)
-      else
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\["1", "5", "2", "6", "3", "7", "4", "8"\]/)
-      end
+      expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[1, 5, 2, 6, 3, 7, 4, 8\]/)
     end
     it 'handles unmatched length' do
@@ -56,9 +43,5 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-      if is_future_parser_enabled?
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, 5\], \[2, 6\]\]/)
-      else
-        expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\["1", "5"\], \["2", "6"\]\]/)
-      end
+      expect(apply_manifest(pp, :catch_failures => true).stdout).to match(/\[\[1, 5\], \[2, 6\]\]/)
     end
   end
@@ -70,5 +53,4 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-
       expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/Wrong number of arguments/)
     end
@@ -80,5 +62,4 @@
       notice(inline_template('<%= @output.inspect %>'))
       EOS
-
       expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/Requires array/)
     end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolute_path_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolute_path_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolute_path_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,67 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::absolute_path', type: :class do
+    describe 'valid paths handling' do
+      %w{
+        C:/
+        C:\\
+        C:\\WINDOWS\\System32
+        C:/windows/system32
+        X:/foo/bar
+        X:\\foo\\bar
+        \\\\host\\windows
+        //host/windows
+        /
+        /var/tmp
+        /var/opt/../lib/puppet
+        /var/opt//lib/puppet
+        /var/ůťƒ8
+        /var/ネット
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Compat::Absolute_path/) }
+          end
+        end
+      end
+
+      context 'relative paths' do
+        %w{
+          relative1
+          .
+          ..
+          ./foo
+          ../foo
+          etc/puppetlabs/puppet
+          opt/puppet/bin
+          relative\\windows
+          \var\ůťƒ8
+          \var\ネット
+        }.each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Compat::Absolute_path/) }
+          end
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolutepath_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolutepath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/absolutepath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,50 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::absolutepath', type: :class do
+    describe 'valid handling' do
+      %w{
+        /usr2/username/bin:/usr/local/bin:/usr/bin:.
+        C:/
+        C:\\
+        C:\\WINDOWS\\System32
+        C:/windows/system32
+        X:/foo/bar
+        X:\\foo\\bar
+        \\\\host\\windows
+        //host/windows
+        /var/tmp
+        /var/opt/../lib/puppet
+        /var/opt//lib/puppet
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+          "*/Users//nope",
+          "\\Users/hc/wksp/stdlib",
+          "C:noslashes",
+          "\\var\\tmp"
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Variant/) }
+          end
+        end
+      end
+
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,34 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::array', type: :class do
+    describe 'accepts arrays' do
+      [
+        [],
+        ['one'],
+        [1],
+        [{}],
+        [[]],
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [
+        '',
+        'one',
+        '1',
+        {},
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a Stdlib::Compat::Array/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,32 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::bool', type: :class do
+    describe 'accepts booleans' do
+      [
+        true,
+        false,
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [
+        [1],
+        [{}],
+        [true],
+        'true',
+        'false',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a Stdlib::Compat::Bool/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/float_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/float_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/float_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,28 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::float', type: :class do
+    describe 'accepts floats' do
+      [
+        3.7,
+        '3.7',
+        -3.7,
+        '-342.2315e-12',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [ true, 'true', false, 'false', 'iAmAString', '1test', '1 test', 'test 1', 'test 1 test', {}, { 'key' => 'value' }, { 1=> 2 }, '', :undef , 'x', 3, '3', -3, '-3'].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a value of type Float or Pattern(\[.*\]+)?/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,32 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::hash', type: :class do
+    describe 'accepts hashes' do
+      [
+        {},
+        {'one' => "two"},
+        {'wan' => 3},
+        {'001' => "helly"},
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+    describe 'rejects other values' do
+      [
+        '',
+        'one',
+        '1',
+        [],
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a Stdlib::Compat::Hash/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpsurl_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpsurl_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpsurl_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,44 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::httpsurl', type: :class do
+    describe 'valid handling' do
+      %w{
+        https://hello.com
+        https://notcreative.org
+        https://notexciting.co.uk
+        https://graphemica.com/❤
+        https://graphemica.com/緩
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+          "httds://notquiteright.org",
+          "hptts:/nah",
+          "https;//notrightbutclose.org",
+          "http://graphemica.com/❤",
+           "http://graphemica.com/緩"
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::HTTPSUrl/) }
+          end
+        end
+      end
+
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpurl_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpurl_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/httpurl_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,47 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::httpurl', type: :class do
+    describe 'valid handling' do
+      %w{
+        https://hello.com
+        https://notcreative.org
+        https://canstillaccepthttps.co.uk
+        http://anhttp.com
+        http://runningoutofideas.gov
+        http://
+        http://graphemica.com/❤
+        http://graphemica.com/緩
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+          "httds://notquiteright.org",
+          "hptts:/nah",
+          "https;//notrightbutclose.org",
+          "hts://graphemica.com/❤",
+          "https:graphemica.com/緩"
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::HTTPUrl/) }
+          end
+        end
+      end
+
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/integer_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/integer_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/integer_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,28 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::integer', type: :class do
+    describe 'accepts integers' do
+      [
+        3,
+        '3',
+        -3,
+        '-3',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [ true, 'true', false, 'false', 'iAmAString', '1test', '1 test', 'test 1', 'test 1 test', {}, { 'key' => 'value' }, { 1=> 2 }, '', :undef , 'x', 3.7, '3.7',-3.7, '-342.2315e-12' ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a value of type Integer, Pattern(\[.*\]+)?, or Array/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ip_address.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ip_address.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,34 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::ip_address', type: :class do
+    describe 'accepts ipv4 and ipv6 addresses' do
+      [
+        '224.0.0.0',
+        '255.255.255.255',
+        '0.0.0.0',
+        '192.88.99.0',
+        '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
+        'fa76:8765:34ac:0823:ab76:eee9:0987:1111'
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+    describe 'rejects other values' do
+      [
+        'nope',
+        '77',
+        '4.4.4',
+        '2001:0db8:85a3:000000:0000:8a2e:0370:7334'
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv4_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv4_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv4_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,22 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::ipv4', type: :class do
+    describe 'accepts ipv4 addresses' do
+      SharedData::IPV4_PATTERNS.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+    describe 'rejects other values' do
+      SharedData::IPV4_NEGATIVE_PATTERNS.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Compat::Ipv4/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv6_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv6_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/ipv6_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,40 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::ipv6', type: :class do
+    describe 'accepts ipv6 addresses' do
+      [
+        '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
+        'fa76:8765:34ac:0823:ab76:eee9:0987:1111',
+        'fe80:0000:0000:0000:0204:61ff:fe9d:f156',
+        'fe80:0:0:0:204:61ff:fe9d:f156',
+        'fe80::204:61ff:fe9d:f156',
+        'fe80:0:0:0:0204:61ff:254.157.241.86',
+        '::1',
+        'fe80::',
+        '2001::',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+    describe 'rejects other values' do
+      [
+        'nope',
+        '77',
+        '4.4.4',
+        '2000:7334',
+        '::ffff:2.3.4',
+        '::ffff:257.1.2.3',
+        '::ffff:12345678901234567890.1.26',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Compat::Ipv6/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/numeric_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/numeric_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/numeric_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,32 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::numeric', type: :class do
+    describe 'accepts numerics' do
+      [
+        3,
+        '3',
+        -3,
+        '-3',
+        3.7,
+        '3.7',
+        -3.7,
+        '-342.2315e-12',
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [ true, 'true', false, 'false', 'iAmAString', '1test', '1 test', 'test 1', 'test 1 test', {}, { 'key' => 'value' }, { 1=> 2 }, '', :undef , 'x' ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a value of type Numeric, Pattern(\[.*\]+)?, or Array/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,32 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::string', type: :class do
+    describe 'accepts strings' do
+      [
+        '',
+        'one',
+        nil,
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'rejects other values' do
+      [
+        [],
+        {},
+        1,
+        true,
+      ].each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile.and_raise_error(/parameter 'value' expects a (?:value of type Undef or )?String/) }
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/unixpath_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/unixpath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/unixpath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,47 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::unixpath', type: :class do
+    describe 'valid handling' do
+      %w{
+        /usr2/username/bin:/usr/local/bin:/usr/bin:.
+        /var/tmp
+        /Users/helencampbell/workspace/puppetlabs-stdlib
+        /var/ůťƒ8
+        /var/ネット
+        /var//tmp
+        /var/../tmp
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+          "C:/whatever",
+          "\\var\\tmp",
+          "\\Users/hc/wksp/stdlib",
+          "*/Users//nope",
+          "var\ůťƒ8",
+          "var\ネット"
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Unixpath/) }
+          end
+        end
+      end
+
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/windowspath_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/windowspath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/aliases/windowspath_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,47 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'test::windowspath', type: :class do
+    describe 'valid handling' do
+      %w{
+        C:\\
+        C:\\WINDOWS\\System32
+        C:/windows/system32
+        X:/foo/bar
+        X:\\foo\\bar
+        \\\\host\\windows
+        X:/var/ůťƒ8
+        X:/var/ネット
+      }.each do |value|
+        describe value.inspect do
+          let(:params) {{ value: value }}
+          it { is_expected.to compile }
+        end
+      end
+    end
+
+    describe 'invalid path handling' do
+      context 'garbage inputs' do
+        [
+          nil,
+          [ nil ],
+          [ nil, nil ],
+          { 'foo' => 'bar' },
+          { },
+          '',
+          "httds://notquiteright.org",
+          "/usr2/username/bin:/usr/local/bin:/usr/bin:.",
+          "C;//notright/here",
+          "C:noslashes",
+          "C:ネット",
+          "C:ůťƒ8"
+        ].each do |value|
+          describe value.inspect do
+            let(:params) {{ value: value }}
+            it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Windowspath/) }
+          end
+        end
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/dscacheutil/root
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/dscacheutil/root	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/dscacheutil/root	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+name: root
+password: *
+uid: 0
+gid: 0
+dir: /var/root
+shell: /bin/bash
+gecos: rawr Root
+
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/lsuser/root
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/lsuser/root	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/lsuser/root	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+#name:home
+root:/root
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolute_path.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolute_path.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolute_path.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Compat::Absolute_path type alias
+class test::absolute_path(
+  Stdlib::Compat::Absolute_path $value,
+  ) {
+    notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolutepath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolutepath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/absolutepath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Absolutepath type. Not to be confused with Stdlib::Compat::Absolute_path.
+class test::absolutepath(
+    Stdlib::Absolutepath $value,
+    ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/array.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/array.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/array.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Array type alias
+class test::array(
+  Stdlib::Compat::Array $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/bool.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/bool.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/bool.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Bool type alias
+class test::bool(
+  Stdlib::Compat::Bool $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/deftype.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/deftype.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/deftype.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,3 @@
+define test::deftype($param = 'foo') {
+  notify { "deftype: $title": }
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ensure_resources.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ensure_resources.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ensure_resources.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,4 @@
+# A helper class to test the ensure_resources function
+class test::ensure_resources($resource_type, $title_hash, $attributes_hash) {
+  ensure_resources($resource_type, $title_hash, $attributes_hash)
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/float.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/float.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/float.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Float type alias
+class test::float(
+  Stdlib::Compat::Float $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/hash.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/hash.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/hash.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Hash type alias
+class test::hash(
+    Stdlib::Compat::Hash $value,
+    ) {
+
+  notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpsurl.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpsurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpsurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::HTTPSUrl type alias
+class test::httpsurl(
+    Stdlib::HTTPSUrl $value,
+    ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpurl.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/httpurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::HTTPUrl type alias
+class test::httpurl(
+    Stdlib::HTTPUrl $value,
+    ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/integer.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/integer.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/integer.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Integer type alias
+class test::integer(
+  Stdlib::Compat::Integer $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ip_address.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ip_address.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ip_address.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Compat::Ip_address type alias
+class test::ip_address(
+  Stdlib::Compat::Ip_address $value,
+  ) {
+    notice("Success")
+  }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv4.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv4.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv4.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Compat::Ipv4 type alias
+class test::ipv4(
+  Stdlib::Compat::Ipv4 $value,
+  ) {
+    notice("Success")
+  }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv6.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv6.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/ipv6.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Compat::Ipv6 type alias
+class test::ipv6(
+  Stdlib::Compat::Ipv6 $value,
+  ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/numeric.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/numeric.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/numeric.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Numeric type alias
+class test::numeric(
+  Stdlib::Compat::Numeric $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/string.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/string.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/string.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::String type alias
+class test::string(
+  Stdlib::Compat::String $value,
+  ) {
+
+    notice("Success")
+
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/unixpath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/unixpath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/unixpath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Unixpath type alias
+class test::unixpath(
+    Stdlib::Unixpath $value,
+    ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/windowspath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/windowspath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/fixtures/test/manifests/windowspath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Windowspath type alias
+class test::windowspath(
+    Stdlib::Windowspath $value,
+    ) {
+  notice("Success")
+}
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,3 +13,9 @@
   it { is_expected.to run.with_params({ 'key' => 'value' }).and_return(['key', 'value']) }
   it { is_expected.to run.with_params({ 'key' => 'value' }).and_return(['key', 'value']) }
+
+  it { is_expected.to run.with_params('‰').and_return(['‰']) }
+  it { is_expected.to run.with_params('竹').and_return(['竹']) }
+  it { is_expected.to run.with_params('Ü').and_return(['Ü']) }
+  it { is_expected.to run.with_params('∇').and_return(['∇']) }
+  it { is_expected.to run.with_params('€', '万', 'Ö', '♥', '割').and_return(['€', '万', 'Ö', '♥', '割']) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/any2bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,42 @@
+require 'spec_helper'
+
+describe 'any2bool' do
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+
+  it { is_expected.to run.with_params(true).and_return(true) }
+  it { is_expected.to run.with_params(false).and_return(false) }
+
+  it { is_expected.to run.with_params('1.5').and_return(true) }
+
+  describe 'when testing stringy values that mean "true"' do
+    [ 'TRUE','1', 't', 'y', 'true', 'yes'].each do |value|
+      it { is_expected.to run.with_params(value).and_return(true) }
+    end
+  end
+
+  describe 'when testing stringy values that mean "false"' do
+    [ 'FALSE','', '0', 'f', 'n', 'false', 'no', 'undef', 'undefined', nil, :undef ].each do |value|
+      it { is_expected.to run.with_params(value).and_return(false) }
+    end
+  end
+
+  describe 'when testing numeric values that mean "true"' do
+    [ 1,'1',1.5, '1.5'].each do |value|
+      it { is_expected.to run.with_params(value).and_return(true) }
+    end
+  end
+
+  describe 'when testing numeric that mean "false"' do
+    [ -1, '-1', -1.5, '-1.5', '0', 0 ].each do |value|
+      it { is_expected.to run.with_params(value).and_return(false) }
+    end
+  end
+
+  describe 'everything else returns true' do
+    [ [], {}, ['1'], [1], {:one => 1} ].each do |value|
+      it { is_expected.to run.with_params(value).and_return(true) }
+    end
+  end
+
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/assert_private_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/assert_private_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/assert_private_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,29 +6,24 @@
       scope.expects(:lookupvar).with('module_name').returns('foo')
       scope.expects(:lookupvar).with('caller_module_name').returns('foo')
-      expect {
-        subject.call []
-      }.not_to raise_error
-    end
-  end
 
-  context "with an explicit failure message" do
-    it "prints the failure message on error" do
-      scope.expects(:lookupvar).with('module_name').returns('foo')
-      scope.expects(:lookupvar).with('caller_module_name').returns('bar')
-      expect {
-        subject.call ['failure message!']
-      }.to raise_error Puppet::ParseError, /failure message!/
+      is_expected.to run.with_params()
     end
   end
 
   context "when called from private class" do
-    it "should fail with a class error message" do
+    before :each do
       scope.expects(:lookupvar).with('module_name').returns('foo')
       scope.expects(:lookupvar).with('caller_module_name').returns('bar')
+    end
+
+    it "should fail with a class error message" do
       scope.source.expects(:name).returns('foo::baz')
       scope.source.expects(:type).returns('hostclass')
-      expect {
-        subject.call []
-      }.to raise_error Puppet::ParseError, /Class foo::baz is private/
+
+      is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /Class foo::baz is private/)
+    end
+
+    context "with an explicit failure message" do
+      it { is_expected.to run.with_params('failure message!').and_raise_error(Puppet::ParseError, /failure message!/) }
     end
   end
@@ -40,7 +35,6 @@
       scope.source.expects(:name).returns('foo::baz')
       scope.source.expects(:type).returns('definition')
-      expect {
-        subject.call []
-      }.to raise_error Puppet::ParseError, /Definition foo::baz is private/
+
+      is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /Definition foo::baz is private/)
     end
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/basename_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/basename_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/basename_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,3 +12,8 @@
   it { is_expected.to run.with_params('relative_path/to/a/file.ext', '.ext').and_return('file') }
   it { is_expected.to run.with_params('scheme:///path/to/a/file.ext').and_return('file.ext') }
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params('scheme:///√ạĺűē/竹.ext').and_return('竹.ext') }
+    it { is_expected.to run.with_params('ҝẽγ:/√ạĺűē/竹.ㄘ', '.ㄘ').and_return('竹') }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chomp_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chomp_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chomp_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,3 +18,8 @@
   it { is_expected.to run.with_params(AlsoString.new("one\n\n")).and_return("one\n") }
   it { is_expected.to run.with_params([AlsoString.new("one\n"), AlsoString.new("two"), "three\n"]).and_return(["one", "two", "three"]) }
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params("ůťƒ8\n\n").and_return("ůťƒ8\n") }
+    it { is_expected.to run.with_params("ネット\n\n").and_return("ネット\n") }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chop_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chop_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/chop_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,3 +18,8 @@
   it { is_expected.to run.with_params(AlsoString.new("one\n\n")).and_return("one\n") }
   it { is_expected.to run.with_params([AlsoString.new("one\n"), AlsoString.new("two"), "three\n"]).and_return(["one", "tw", "three"]) }
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params("ůťƒ8\n\n").and_return("ůťƒ8\n") }
+    it { is_expected.to run.with_params("ネット\n\n").and_return("ネット\n") }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/concat_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/concat_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/concat_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,5 +12,9 @@
   it { is_expected.to run.with_params(['1','2'],['3','4'],['5','6']).and_return(['1','2','3','4','5','6']) }
   it { is_expected.to run.with_params(['1','2'],'3','4',['5','6']).and_return(['1','2','3','4','5','6']) }
+
+context 'should run with UTF8 and double byte characters' do
   it { is_expected.to run.with_params([{"a" => "b"}], {"c" => "d", "e" => "f"}).and_return([{"a" => "b"}, {"c" => "d", "e" => "f"}]) }
+  it { is_expected.to run.with_params(['ấ','β','©'],['đ','ể','文字列']).and_return(['ấ','β','©','đ','ể','文字列']) }
+end
 
   it "should leave the original array intact" do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/count_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/count_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/count_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,3 +16,8 @@
   it { is_expected.to run.with_params(["one", "", "two"]).and_return(2) }
   it { is_expected.to run.with_params(["one", :undef, "two"]).and_return(2) }
+
+  it { is_expected.to run.with_params(["ổņ℮", "ŧщộ", "three"]).and_return(3) }
+  it { is_expected.to run.with_params(["ổņ℮", "ŧщộ", "ŧщộ"], "ŧщộ").and_return(2) }
+  it { is_expected.to run.with_params(["ổņ℮", nil, "ŧщộ"]).and_return(2) }
+  it { is_expected.to run.with_params(["ổņ℮", :undef, "ŧщộ"]).and_return(2) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deep_merge_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deep_merge_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deep_merge_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -53,3 +53,7 @@
     expect(argument2).to eq(original2)
   end
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params({'ĸέỹ1' => 'ϋǻļủë1'}, {'この文字列' => '万' }).and_return({'ĸέỹ1' => 'ϋǻļủë1', 'この文字列' => '万'}) }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/defined_with_params_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/defined_with_params_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/defined_with_params_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,4 +12,9 @@
     it { is_expected.to run.with_params('User[bob]', {}).and_return(false) }
     it { is_expected.to run.with_params('User[dan]', {'foo' => 'bar'}).and_return(false) }
+
+    context 'should run with UTF8 and double byte characters' do
+      it { is_expected.to run.with_params('User[ĵĭмოү]', {}).and_return(false) }
+      it { is_expected.to run.with_params('User[ポーラ]', {}).and_return(false) }
+    end
   end
 
@@ -24,3 +29,40 @@
     it { is_expected.to run.with_params('User[dan]', {'ensure' => 'absent', 'managehome' => false}).and_return(false) }
   end
+
+  describe 'when passing undef values' do
+    let :pre_condition do
+      'file { "/tmp/a": ensure => present }'
+    end
+
+    it { is_expected.to run.with_params('File[/tmp/a]', {}).and_return(true) }
+    it { is_expected.to run.with_params('File[/tmp/a]', { 'ensure' => 'present', 'owner' => :undef }).and_return(true) }
+  end
+
+  describe 'when the reference is a' do
+    let :pre_condition do
+      'user { "dan": }'
+    end
+    context 'reference' do
+      it { is_expected.to run.with_params(Puppet::Resource.new('User[dan]'), {}).and_return(true) }
+    end
+    if Puppet::Util::Package.versioncmp(Puppet.version, '4.6.0') >= 0
+      context 'array' do
+        it 'fails' do
+          expect {
+            subject.call([['User[dan]'], {}])
+          }.to raise_error ArgumentError, /not understood: 'Array'/
+        end
+      end
+    end
+  end
+
+  describe 'when passed a defined type' do
+    let :pre_condition do
+      'test::deftype { "foo": }'
+    end
+    it { is_expected.to run.with_params('Test::Deftype[foo]', {}).and_return(true) }
+    it { is_expected.to run.with_params('Test::Deftype[bar]', {}).and_return(false) }
+    it { is_expected.to run.with_params(Puppet::Resource.new('Test::Deftype[foo]'), {}).and_return(true) }
+    it { is_expected.to run.with_params(Puppet::Resource.new('Test::Deftype[bar]'), {}).and_return(false) }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_at_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_at_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_at_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,4 +19,6 @@
   it { is_expected.to run.with_params([0, 1, 2], -1).and_return([0, 1]) }
   it { is_expected.to run.with_params([0, 1, 2], -4).and_return([0, 1, 2]) }
+  it { is_expected.to run.with_params(["ƒờở", "βāř", "ьầż"], 1).and_return(["ƒờở", "ьầż"]) }
+
 
   it "should leave the original array intact" do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_regex_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_regex_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_regex_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,54 @@
+require 'spec_helper'
+
+describe 'delete_regex' do
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params([], 'two') }
+  it { is_expected.to run.with_params({}, 'two') }
+  it { is_expected.to run.with_params([], 'two', 'three').and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params([], 'two', 'three', 'four').and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params(1, 'two').and_raise_error(TypeError) }
+
+  describe 'deleting from an array' do
+    it { is_expected.to run.with_params([], '').and_return([]) }
+    it { is_expected.to run.with_params([], 'two').and_return([]) }
+    it { is_expected.to run.with_params(['two'], 'two').and_return([]) }
+    it { is_expected.to run.with_params(['two', 'two'], 'two').and_return([]) }
+    it { is_expected.to run.with_params(['one', 'two', 'three'], '^t.*').and_return(['one']) }
+    it { is_expected.to run.with_params(['ab', 'b', 'c', 'b'], 'b').and_return(['ab', 'c']) }
+    it { is_expected.to run.with_params(['one', 'two', 'three'], 'four').and_return(['one', 'two', 'three']) }
+    it { is_expected.to run.with_params(['one', 'two', 'three'], 'e').and_return(['one', 'two', 'three']) }
+    it { is_expected.to run.with_params(['one', 'two', 'three'], 'two').and_return(['one', 'three']) }
+    it { is_expected.to run.with_params(['two', 'one', 'two', 'three', 'two'], 'two').and_return(['one', 'three']) }
+    it { is_expected.to run.with_params(['abracadabra'], 'abr').and_return(['abracadabra']) }
+    it { is_expected.to run.with_params(['abracadabra'], '^.*jimbob.*$').and_return(['abracadabra']) }
+  end
+
+  describe 'deleting from an array' do
+    it { is_expected.to run.with_params({}, '').and_return({}) }
+    it { is_expected.to run.with_params({}, 'key').and_return({}) }
+    it { is_expected.to run.with_params({'key' => 'value'}, 'key').and_return({}) }
+    it { is_expected.to run \
+      .with_params({'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'}, 'key2') \
+      .and_return( {'key1' => 'value1', 'key3' => 'value3'})
+    }
+    it { is_expected.to run \
+      .with_params({'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'}, ['key1', 'key2']) \
+      .and_return( {'key3' => 'value3'})
+    }
+  end
+
+  it "should leave the original array intact" do
+    argument1 = ['one','two','three']
+    original1 = argument1.dup
+    subject.call([argument1,'two'])
+    expect(argument1).to eq(original1)
+  end
+  it "should leave the original hash intact" do
+    argument1 = {'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'}
+    original1 = argument1.dup
+    subject.call([argument1,'key2'])
+    expect(argument1).to eq(original1)
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,4 +5,5 @@
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
   it { is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params([], 'two') }
   it { is_expected.to run.with_params([], 'two', 'three').and_raise_error(Puppet::ParseError) }
   it { is_expected.to run.with_params(1, 'two').and_raise_error(TypeError) }
@@ -13,4 +14,5 @@
     it { is_expected.to run.with_params(['two'], 'two').and_return([]) }
     it { is_expected.to run.with_params(['two', 'two'], 'two').and_return([]) }
+    it { is_expected.to run.with_params(['ab', 'b', 'c', 'b'], 'b').and_return(['ab', 'c']) }
     it { is_expected.to run.with_params(['one', 'two', 'three'], 'four').and_return(['one', 'two', 'three']) }
     it { is_expected.to run.with_params(['one', 'two', 'three'], 'e').and_return(['one', 'two', 'three']) }
@@ -18,4 +20,5 @@
     it { is_expected.to run.with_params(['two', 'one', 'two', 'three', 'two'], 'two').and_return(['one', 'three']) }
     it { is_expected.to run.with_params(['one', 'two', 'three', 'two'], ['one', 'two']).and_return(['three']) }
+    it { is_expected.to run.with_params(['ồאּẻ', 'ŧẅơ', 'ŧңŗё℮', 'ŧẅơ'], ['ồאּẻ', 'ŧẅơ']).and_return(['ŧңŗё℮']) }
   end
 
@@ -29,5 +32,6 @@
     it { is_expected.to run.with_params('foobarbabarz', 'bar').and_return('foobaz') }
     it { is_expected.to run.with_params('foobarbabarz', ['foo', 'bar']).and_return('baz') }
-    # this is so sick
+    it { is_expected.to run.with_params('ƒōōβậяβậβậяź', ['ƒōō', 'βậя']).and_return('βậź') }
+
     it { is_expected.to run.with_params('barfoobar', ['barbar', 'foo']).and_return('barbar') }
     it { is_expected.to run.with_params('barfoobar', ['foo', 'barbar']).and_return('') }
@@ -45,4 +49,8 @@
       .with_params({'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'}, ['key1', 'key2']) \
       .and_return( {'key3' => 'value3'})
+    }
+    it { is_expected.to run \
+      .with_params({'ĸəұ1' => 'νãŀủĕ1', 'ĸəұ2' => 'νãŀủĕ2', 'ĸəұ3' => 'νãŀủĕ3'}, ['ĸəұ1', 'ĸəұ2']) \
+      .and_return( {'ĸəұ3' => 'νãŀủĕ3'})
     }
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_undef_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_undef_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_undef_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,4 +17,5 @@
         it { is_expected.to run.with_params([undef_value]).and_return([]) }
         it { is_expected.to run.with_params(['one',undef_value,'two','three']).and_return(['one','two','three']) }
+        it { is_expected.to run.with_params(['ớņέ',undef_value,'ŧשּׁō','ŧħґëə']).and_return(['ớņέ','ŧשּׁō','ŧħґëə']) }
       end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/delete_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -20,5 +20,9 @@
     }
     it { is_expected.to run \
-      .with_params({'key1' => 'value1', 'key2' => 'value to delete'}, 'value to delete') \
+      .with_params({'ҝếỵ1 ' => 'νâĺūẹ1', 'ҝếỵ2' => 'value to delete'}, 'value to delete') \
+      .and_return({'ҝếỵ1 ' => 'νâĺūẹ1'})
+    }
+    it { is_expected.to run \
+      .with_params({'key1' => 'value1', 'key2' => 'νǎŀữ℮ ťớ đêłểťė'}, 'νǎŀữ℮ ťớ đêłểťė') \
       .and_return({'key1' => 'value1'})
     }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deprecation_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deprecation_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/deprecation_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,60 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
+  describe 'deprecation' do
+    before(:each) {
+      # this is to reset the strict variable to default
+      Puppet.settings[:strict] = :warning
+    }
+
+    it { is_expected.not_to eq(nil) }
+    it { is_expected.to run.with_params().and_raise_error(ArgumentError) }
+
+    it 'should display a single warning' do
+      Puppet.expects(:warning).with(includes('heelo'))
+      is_expected.to run.with_params('key', 'heelo')
+    end
+
+    it 'should display a single warning, despite multiple calls' do
+      Puppet.expects(:warning).with(includes('heelo')).once
+      is_expected.to run.with_params('key', 'heelo')
+      is_expected.to run.with_params('key', 'heelo')
+    end
+
+    it 'should fail twice with message, with multiple calls. when strict= :error' do
+      Puppet.settings[:strict] = :error
+      Puppet.expects(:warning).with(includes('heelo')).never
+      is_expected.to run.with_params('key', 'heelo').and_raise_error(RuntimeError, /deprecation. key. heelo/)
+      is_expected.to run.with_params('key', 'heelo').and_raise_error(RuntimeError, /deprecation. key. heelo/)
+    end
+
+    it 'should display nothing, despite multiple calls. strict= :off' do
+      Puppet.settings[:strict] = :off
+      Puppet.expects(:warning).with(includes('heelo')).never
+      is_expected.to run.with_params('key', 'heelo')
+      is_expected.to run.with_params('key', 'heelo')
+    end
+
+    after(:all) {
+      # this is to reset the strict variable to default
+      Puppet.settings[:strict] = :warning
+    }
+  end
+elsif Puppet.version.to_f < 4.0
+  # Puppet version < 4 will use these tests.
+  describe 'deprecation' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    before(:all) do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    end
+    it { is_expected.not_to eq(nil) }
+    it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+
+    it 'should display a single warning' do
+      scope.expects(:warning).with(includes('heelo'))
+      is_expected.to run.with_params('key', 'heelo')
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/difference_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/difference_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/difference_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,6 +13,8 @@
   it { is_expected.to run.with_params([], ['one']).and_return([]) }
   it { is_expected.to run.with_params(['one'], ['one']).and_return([]) }
+  it { is_expected.to run.with_params(['ớņέ'], ['']).and_return(['ớņέ']) }
   it { is_expected.to run.with_params(['one'], []).and_return(['one']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'three']).and_return(['one']) }
+  it { is_expected.to run.with_params(['ớņέ', 'ŧשּׁō', 'ŧħґëə', 2], ['ŧשּׁō', 'ŧħґëə']).and_return(['ớņέ', 2]) }
   it { is_expected.to run.with_params(['one', 'two', 'two', 'three'], ['two', 'three']).and_return(['one']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'two', 'three']).and_return(['one']) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig44_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig44_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig44_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,131 @@
+require 'spec_helper'
+
+describe 'dig44' do
+
+  let(:data) do
+    {
+        'a' => {
+            'g' => '2',
+            'e' => [
+                'f0',
+                'f1',
+                {
+                    'x' => {
+                        'y' => 'z'
+                    }
+                },
+                'f3',
+            ]
+        },
+        'b' => true,
+        'c' => false,
+        'd' => '1',
+        'e' => :undef,
+        'f' => nil,
+    }
+  end
+
+  let(:utf8_data) do
+    {
+        'ẵ' => {
+            'в' => [
+                '©',
+                'ĝ',
+                'に',
+            ]
+        }
+    }
+  end
+
+  context 'single values' do
+    it 'should exist' do
+      is_expected.not_to be_nil
+    end
+
+    it 'should require two arguments' do
+      is_expected.to run.with_params().and_raise_error(ArgumentError)
+    end
+
+    it 'should fail if the data is not a structure' do
+      is_expected.to run.with_params('test', []).and_raise_error(Puppet::Error)
+    end
+
+    it 'should fail if the path is not an array' do
+      is_expected.to run.with_params({}, '').and_raise_error(Puppet::Error)
+    end
+
+    it 'should return the value if the value is string' do
+      is_expected.to run.with_params(data, ['d'], 'default').and_return('1')
+    end
+
+    it 'should return true if the value is true' do
+      is_expected.to run.with_params(data, ['b'], 'default').and_return(true)
+    end
+
+    it 'should return false if the value is false' do
+      is_expected.to run.with_params(data, ['c'], 'default').and_return(false)
+    end
+
+    it 'should return the default if the value is nil' do
+      is_expected.to run.with_params(data, ['f'], 'default').and_return('default')
+    end
+
+    it 'should return the default if the value is :undef (same as nil)' do
+      is_expected.to run.with_params(data, ['e'], 'default').and_return('default')
+    end
+
+    it 'should return the default if the path is not found' do
+      is_expected.to run.with_params(data, ['missing'], 'default').and_return('default')
+    end
+  end
+
+  context 'structure values' do
+
+    it 'should be able to extract a deeply nested hash value' do
+      is_expected.to run.with_params(data, %w(a g), 'default').and_return('2')
+    end
+
+    it 'should return the default value if the path is too long' do
+      is_expected.to run.with_params(data, %w(a g c d), 'default').and_return('default')
+    end
+
+    it 'should support an array index (number) in the path' do
+      is_expected.to run.with_params(data, ['a', 'e', 1], 'default').and_return('f1')
+    end
+
+    it 'should support an array index (string) in the path' do
+      is_expected.to run.with_params(data, %w(a e 1), 'default').and_return('f1')
+    end
+
+    it 'should return the default value if an array index is not a number' do
+      is_expected.to run.with_params(data, %w(a b c), 'default').and_return('default')
+    end
+
+    it 'should return the default value if and index is out of array length' do
+      is_expected.to run.with_params(data, %w(a e 5), 'default').and_return('default')
+    end
+
+    it 'should be able to path though both arrays and hashes' do
+      is_expected.to run.with_params(data, %w(a e 2 x y), 'default').and_return('z')
+    end
+
+    it 'should return "nil" if value is not found and no default value is provided' do
+      is_expected.to run.with_params(data, %w(a 1)).and_return(nil)
+    end
+  end
+
+  context 'Internationalization (i18N) values' do
+
+    it 'should be able to return a unicode character' do
+      is_expected.to run.with_params(utf8_data, ['ẵ', 'в', 0]).and_return('©')
+    end
+
+    it 'should be able to return a utf8 character' do
+      is_expected.to run.with_params(utf8_data, ['ẵ', 'в', 1]).and_return('ĝ')
+    end
+
+    it 'should be able to return a double byte character' do
+      is_expected.to run.with_params(utf8_data, ['ẵ', 'в', 2]).and_return('に')
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dig_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,12 +2,12 @@
 
 describe 'dig' do
-  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
-  it { is_expected.to run.with_params('bad', []).and_raise_error(Puppet::ParseError) }
-  it { is_expected.to run.with_params({}, 'bad').and_raise_error(Puppet::ParseError) }
 
-  it { is_expected.to run.with_params({}, []).and_return({}) }
-  it { is_expected.to run.with_params({"a" => "b"}, ["a"]).and_return("b") }
-  it { is_expected.to run.with_params({"a" => {"b" => "c"}}, ["a", "b"]).and_return("c") }
-  it { is_expected.to run.with_params({}, ["a", "b"], "d").and_return("d") }
-  it { is_expected.to run.with_params({"a" => false}, ["a"]).and_return(false) }
+  it "should exist" do
+    expect(Puppet::Parser::Functions.function("dig")).to eq("function_dig")
+  end
+
+  it "should give a deprecation warning when called" do
+    scope.expects(:warning).with("dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.")
+    scope.function_dig([{}, []])
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dirname_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dirname_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dirname_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,3 +11,8 @@
   it { is_expected.to run.with_params('/path/to/a/file.ext').and_return('/path/to/a') }
   it { is_expected.to run.with_params('relative_path/to/a/file.ext').and_return('relative_path/to/a') }
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params('scheme:///√ạĺűē/竹.ext').and_return('scheme:///√ạĺűē') }
+    it { is_expected.to run.with_params('ҝẽγ:/√ạĺűē/竹.ㄘ').and_return('ҝẽγ:/√ạĺűē') }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dos2unix_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dos2unix_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/dos2unix_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -30,10 +30,17 @@
   end
 
-  context 'Converting from unix to unix format' do
-    sample_text    = "Hello\nWorld\n"
-    desired_output = "Hello\nWorld\n"
+  context 'Internationalization (i18N) values' do
+    sample_text_utf8    = "Ħ℮ļłǿ\r\nשׁөŕłđ\r\n"
+    desired_output_utf8 = "Ħ℮ļłǿ\nשׁөŕłđ\n"
 
-    it 'should output unix format' do
-      should run.with_params(sample_text).and_return(desired_output)
+    sample_text_doublebyte    = "こんにちは\r\n世界\r\n"
+    desired_output_doublebyte = "こんにちは\n世界\n"
+
+    it 'should output uft8 string' do
+      should run.with_params(sample_text_utf8).and_return(desired_output_utf8)
+    end
+
+    it 'should output double byte string' do
+      should run.with_params(sample_text_doublebyte).and_return(desired_output_doublebyte)
     end
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_packages_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_packages_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_packages_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -34,3 +34,26 @@
     end
   end
+
+  context 'given an empty packages array' do
+    let(:pre_condition) { 'notify { "hi": } -> Package <| |>; $somearray = ["vim",""]; ensure_packages($somearray)' }
+
+    describe 'after running ensure_package(["vim", ""])' do
+      it { expect { catalogue }.to raise_error(Puppet::ParseError, /Empty String provided/) }
+    end
+  end
+
+  context 'given hash of packages' do
+    before { subject.call([{"foo" => { "provider" => "rpm" }, "bar" => { "provider" => "gem" }}, { "ensure" => "present"}]) }
+    before { subject.call([{"パッケージ" => { "ensure" => "absent"}}]) }
+    before { subject.call([{"ρǻ¢κầģẻ" => { "ensure" => "absent"}}]) }
+
+    # this lambda is required due to strangeness within rspec-puppet's expectation handling
+    it { expect(lambda { catalogue }).to contain_package('foo').with({'provider' => 'rpm', 'ensure' => 'present'}) }
+    it { expect(lambda { catalogue }).to contain_package('bar').with({'provider' => 'gem', 'ensure' => 'present'}) }
+
+    context 'should run with UTF8 and double byte characters' do
+    it { expect(lambda { catalogue }).to contain_package('パッケージ').with({'ensure' => 'absent'}) }
+    it { expect(lambda { catalogue }).to contain_package('ρǻ¢κầģẻ').with({'ensure' => 'absent'}) }
+    end
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_resource_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_resource_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/ensure_resource_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,9 +5,71 @@
   it { is_expected.to run.with_params().and_raise_error(ArgumentError, /Must specify a type/) }
   it { is_expected.to run.with_params('type').and_raise_error(ArgumentError, /Must specify a title/) }
-  it { is_expected.to run.with_params('type', 'title', {}, 'extras').and_raise_error(Puppet::ParseError) }
+  if Puppet::Util::Package.versioncmp(Puppet.version, '4.6.0') >= 0
+    it { is_expected.to run.with_params('type', 'title', {}, 'extras').and_raise_error(ArgumentError) }
+  else
+    it { is_expected.to run.with_params('type', 'title', {}, 'extras').and_raise_error(Puppet::ParseError) }
+  end
+
   it {
     pending("should not accept numbers as arguments")
     is_expected.to run.with_params(1,2,3).and_raise_error(Puppet::ParseError)
   }
+
+  context 'given an empty catalog' do
+    describe 'after running ensure_resource("user", "username1", {})' do
+      before { subject.call(['User', 'username1', {}]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('username1').without_ensure }
+    end
+
+    describe 'after running ensure_resource("user", "username1", { gid => undef })' do
+      before { subject.call(['User', 'username1', { 'gid' => :undef }]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('username1').without_ensure }
+      it { expect(lambda { catalogue }).to contain_user('username1').without_gid }
+    end
+
+    describe 'after running ensure_resource("user", "username1", { ensure => present, gid => undef })' do
+      before { subject.call(['User', 'username1', { 'ensure' => 'present', 'gid' => :undef }]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('username1').with_ensure('present') }
+      it { expect(lambda { catalogue }).to contain_user('username1').without_gid }
+    end
+
+    describe 'after running ensure_resource("test::deftype", "foo", {})' do
+      before { subject.call(['test::deftype', 'foo', {}]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_test__deftype('foo').without_ensure }
+    end
+  end
+
+  context 'given a catalog with UTF8 chars' do
+    describe 'after running ensure_resource("user", "Şắოрŀễ Ţë×ť", {})' do
+      before { subject.call(['User', 'Şắოрŀễ Ţë×ť', {}]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('Şắოрŀễ Ţë×ť').without_ensure }
+    end
+
+    describe 'after running ensure_resource("user", "Şắოрŀễ Ţë×ť", { gid => undef })' do
+      before { subject.call(['User', 'Şắოрŀễ Ţë×ť', { 'gid' => :undef }]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('Şắოрŀễ Ţë×ť').without_ensure }
+      it { expect(lambda { catalogue }).to contain_user('Şắოрŀễ Ţë×ť').without_gid }
+    end
+
+    describe 'after running ensure_resource("user", "Şắოрŀễ Ţë×ť", { ensure => present, gid => undef })' do
+      before { subject.call(['User', 'Şắოрŀễ Ţë×ť', { 'ensure' => 'present', 'gid' => :undef }]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('Şắოрŀễ Ţë×ť').with_ensure('present') }
+      it { expect(lambda { catalogue }).to contain_user('Şắოрŀễ Ţë×ť').without_gid }
+    end
+  end
 
   context 'given a catalog with "user { username1: ensure => present }"' do
@@ -27,4 +89,11 @@
       it { expect(lambda { catalogue }).to contain_user('username1').with_ensure('present') }
       it { expect(lambda { catalogue }).to contain_user('username2').without_ensure }
+    end
+
+    describe 'after running ensure_resource("user", "username1", { gid => undef })' do
+      before { subject.call(['User', 'username1', { 'gid' => :undef }]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_user('username1').with_ensure('present') }
     end
 
@@ -53,3 +122,14 @@
     end
   end
+
+  context 'given a catalog with "test::deftype { foo: }"' do
+    let(:pre_condition) { 'test::deftype { "foo": }' }
+
+    describe 'after running ensure_resource("test::deftype", "foo", {})' do
+      before { subject.call(['test::deftype', 'foo', {}]) }
+
+      # this lambda is required due to strangeness within rspec-puppet's expectation handling
+      it { expect(lambda { catalogue }).to contain_test__deftype('foo').without_ensure }
+    end
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/flatten_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/flatten_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/flatten_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,3 +12,4 @@
   it { is_expected.to run.with_params(["a","b","c","d","e","f","g"]).and_return(["a","b","c","d","e","f","g"]) }
   it { is_expected.to run.with_params([["a","b",["c",["d","e"],"f","g"]]]).and_return(["a","b","c","d","e","f","g"]) }
+  it { is_expected.to run.with_params(["ã","β",["ĉ",["đ","ẽ","ƒ","ġ"]]]).and_return(["ã","β","ĉ","đ","ẽ","ƒ","ġ"]) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rand_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rand_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rand_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,4 +21,5 @@
   it { is_expected.to run.with_params(100, 'a').and_return(/\Aa{100}\z/) }
   it { is_expected.to run.with_params(100, 'ab').and_return(/\A[ab]{100}\z/) }
+  it { is_expected.to run.with_params(100, 'ãβ').and_return(/\A[ãβ]{100}\z/) }
 
   it "provides the same 'random' value on subsequent calls for the same host" do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rotate_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rotate_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_rotate_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -8,4 +8,5 @@
   it { is_expected.to run.with_params('').and_return('') }
   it { is_expected.to run.with_params('a').and_return('a') }
+  it { is_expected.to run.with_params('ã').and_return('ã') }
 
   it { is_expected.to run.with_params([]).and_return([]) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_uuid_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_uuid_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/fqdn_uuid_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+describe 'fqdn_uuid' do
+
+  context "Invalid parameters" do
+    it { should run.with_params().and_raise_error(ArgumentError, /No arguments given$/) }
+  end
+
+  context "given string" do
+    it { should run.with_params('puppetlabs.com').and_return('9c70320f-6815-5fc5-ab0f-debe68bf764c') }
+    it { should run.with_params('google.com').and_return('64ee70a4-8cc1-5d25-abf2-dea6c79a09c8') }
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getparam_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getparam_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getparam_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -23,8 +23,13 @@
     it { is_expected.to run.with_params('User[two]', 'ensure').and_return('') }
     it { is_expected.to run.with_params('User[one]', 'shell').and_return('/bin/sh') }
-    it {
-      pending("both rspec-puppet as well as the function do the wrong thing here.")
-      is_expected.to run.with_params('User[one]', 'managehome').and_return(false)
-    }
+    it { is_expected.to run.with_params('User[one]', 'managehome').and_return(false) }
+  end
+
+  describe 'when compared against a user resource with UTF8 and double byte params' do
+    let(:pre_condition) { 'user { ["三", "ƒốưř"]: ensure => present }' }
+
+    it { is_expected.to run.with_params('User[三]', 'ensure').and_return('present') }
+    it { is_expected.to run.with_params('User[ƒốưř]', 'ensure').and_return('present') }
+
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getvar_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getvar_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/getvar_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,4 +6,6 @@
   it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+
+  it { is_expected.to run.with_params('$::foo').and_return(nil) }
 
   context 'given variables in namespaces' do
@@ -19,3 +21,18 @@
     it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
   end
+
+  context 'given variables in namespaces' do
+    let(:pre_condition) {
+      <<-'ENDofPUPPETcode'
+      class site::info { $lock = 'ŧҺîš íš ắ śţřĭŋĝ' }
+      class site::new { $item = '万Ü€‰' }
+      include site::info
+      include site::new
+      ENDofPUPPETcode
+    }
+
+    it { is_expected.to run.with_params('site::info::lock').and_return('ŧҺîš íš ắ śţřĭŋĝ') }
+    it { is_expected.to run.with_params('::site::new::item').and_return('万Ü€‰') }
+  end
 end
+
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/glob_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/glob_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/glob_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe 'glob' do
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) }
+  it { is_expected.to run.with_params('').and_return([]) }
+  it { is_expected.to run.with_params(['']).and_return([]) }
+  it { is_expected.to run.with_params(['', '']).and_return([]) }
+  it { is_expected.to run.with_params(['/etc/xyzxyzxyz', '/etcxyzxyzxyz']).and_return([]) }
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/grep_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/grep_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/grep_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,3 +17,4 @@
   it { is_expected.to run.with_params(['one', 'two', 'three'], 'two').and_return(['two']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], 't(wo|hree)').and_return(['two', 'three']) }
+  it { is_expected.to run.with_params(['ờאּê', 'ţשּׂỡ', 'ţһŗəè'], 'ţ(שּׂỡ|һŗəè)').and_return(['ţשּׂỡ', 'ţһŗəè']) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_ip_network_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_ip_network_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_ip_network_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,5 +10,4 @@
       {
         :interfaces => 'eth0,lo',
-        :network => :undefined,
         :network_lo => '127.0.0.0',
         :network_eth0 => '10.0.0.0',
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_key_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_key_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/has_key_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,3 +13,8 @@
   it { is_expected.to run.with_params({}, "key").and_return(false) }
   it { is_expected.to run.with_params({ 'key' => 'value'}, "not a key").and_return(false) }
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params({ 'κéỳ ' => '٧ậļųể' }, "κéỳ ").and_return(true) }
+    it { is_expected.to run.with_params({ 'キー' => '٧ậļųể' }, "キー").and_return(true) }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -11,4 +11,5 @@
   it { is_expected.to run.with_params([]).and_return({}) }
   it { is_expected.to run.with_params(['key1', 'value1']).and_return({ 'key1' => 'value1' }) }
+  it { is_expected.to run.with_params(['κ℮ұ1', '√āĺűẻ1']).and_return({ 'κ℮ұ1' => '√āĺűẻ1' }) }
   it { is_expected.to run.with_params(['key1', 'value1', 'key2', 'value2']).and_return({ 'key1' => 'value1', 'key2' => 'value2' }) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/intersection_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/intersection_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/intersection_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -15,4 +15,5 @@
   it { is_expected.to run.with_params(['one'], ['one']).and_return(['one']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'three']).and_return(['two', 'three']) }
+  it { is_expected.to run.with_params(['ōŋể', 'ŧשợ', 'ţђŕẽё'], ['ŧשợ', 'ţђŕẽё']).and_return(['ŧשợ', 'ţђŕẽё']) }
   it { is_expected.to run.with_params(['one', 'two', 'two', 'three'], ['two', 'three']).and_return(['two', 'three']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'two', 'three']).and_return(['two', 'three']) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_a_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_a_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_a_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -22,4 +22,9 @@
       is_expected.to run.with_params(5, String).and_return(false)
     end
+
+    it 'suceeds when comparing an UTF8 and double byte characters' do
+      is_expected.to run.with_params('このテキスト', String).and_return(true)
+      is_expected.to run.with_params('ŧћịś ŧêχŧ', String).and_return(true)
+    end
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,5 @@
 
 describe 'is_array' do
+  
   it { is_expected.not_to eq(nil) }
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -17,3 +18,19 @@
   it { is_expected.to run.with_params(1).and_return(false) }
   it { is_expected.to run.with_params({}).and_return(false) }
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end 
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(['1.2.3.4']).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(['1.2.3.4']).and_return(true)
+    end
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,5 @@
 
 describe 'is_bool' do
+  
   it { is_expected.not_to eq(nil) }
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -13,3 +14,20 @@
   it { is_expected.to run.with_params('true').and_return(false) }
   it { is_expected.to run.with_params('false').and_return(false) }
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end 
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(true).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(false).and_return(true)
+    end
+  end 
 end
+
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_float_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_float_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_float_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,7 @@
 
 describe 'is_float' do
+
   it { is_expected.not_to eq(nil) }
+
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
   it { is_expected.to run.with_params(0.1, 0.2).and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -20,3 +22,21 @@
     it { is_expected.to run.with_params(1).and_return(false) }
   end
+
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(2.2).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(1.0).and_return(true)
+    end
+  end
+
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_integer_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_integer_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_integer_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,7 @@
 
 describe 'is_integer' do
+  
   it { is_expected.not_to eq(nil) }
+
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
   it { is_expected.to run.with_params(1, 2).and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -10,5 +12,5 @@
   it { is_expected.to run.with_params(-3).and_return(true) }
   it { is_expected.to run.with_params('-3').and_return(true) }
-  
+
   it { is_expected.to run.with_params(3.7).and_return(false) }
   it { is_expected.to run.with_params('3.7').and_return(false) }
@@ -23,3 +25,21 @@
   it { is_expected.to run.with_params(false).and_return(false) }
   it { is_expected.to run.with_params('0001234').and_return(false) }
+
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(50).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(50).and_return(true)
+    end
+  end 
+
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ip_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ip_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ip_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,3 +21,20 @@
   it { is_expected.to run.with_params({}).and_return(false) }
   it { is_expected.to run.with_params([]).and_return(false) }
+
+  context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params('1.2.3.4').and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params('1.2.3.4').and_return(true)
+    end
+    after(:all) do 
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv4_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv4_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv4_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,32 @@
+require 'spec_helper'
+
+describe 'is_ipv4_address' do
+
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+
+  SharedData::IPV4_PATTERNS.each do |value|
+    it { is_expected.to run.with_params(value).and_return(true) }
+  end
+
+  SharedData::IPV4_NEGATIVE_PATTERNS.each do |value|
+    it { is_expected.to run.with_params(value).and_return(false) }
+  end
+
+  context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(SharedData::IPV4_PATTERNS.first).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(SharedData::IPV4_PATTERNS.first).and_return(true)
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv6_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv6_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_ipv6_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,30 @@
+require 'spec_helper'
+
+describe 'is_ipv6_address' do
+  
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  it { is_expected.to run.with_params('2001:0db8:85a3:0000:0000:8a2e:0370:7334').and_return(true) }
+  it { is_expected.to run.with_params('85a3:0000:0000:8a2e:0370:7334:100.100.100.100').and_return(true) }
+  it { is_expected.to run.with_params('1.2.3').and_return(false) }
+  it { is_expected.to run.with_params('1.2.3.4.5').and_return(false) }
+  it { is_expected.to run.with_params('').and_return(false) }
+  it { is_expected.to run.with_params('one').and_return(false) }
+
+  context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params('2001:0db8:85a3:0000:0000:8a2e:0370:7334').and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params('2001:0db8:85a3:0000:0000:8a2e:0370:7334').and_return(true)
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_mac_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_mac_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_mac_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,4 +10,10 @@
   it { is_expected.to run.with_params('').and_return(false) }
   it { is_expected.to run.with_params('one').and_return(false) }
+
+  context 'function can handle UTF8 and double byte characters' do
+    it { is_expected.to run.with_params('ƒốưř').and_return(false) }
+    it { is_expected.to run.with_params('三+').and_return(false) }
+  end
+
   it {
     pending "should properly typecheck its arguments"
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_numeric_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_numeric_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_numeric_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,5 +2,7 @@
 
 describe 'is_numeric' do
+  
   it { is_expected.not_to eq(nil) }
+
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
   it { is_expected.to run.with_params(1, 2).and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -26,3 +28,21 @@
   it { is_expected.to run.with_params('0001234').and_return(false) }
   it { is_expected.to run.with_params(' - 1234').and_return(false) }
+
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(7).and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(7).and_return(true)
+    end
+  end
+
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/is_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,5 @@
 
 describe 'is_string' do
+
   it { is_expected.not_to eq(nil) }
   it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
@@ -26,3 +27,21 @@
   it { is_expected.to run.with_params('one').and_return(true) }
   it { is_expected.to run.with_params('0001234').and_return(true) }
+
+  context 'Checking for deprecation warning' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params('sponge').and_return(true)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params('bob').and_return(true)
+    end
+  end 
+
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_keys_to_values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_keys_to_values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_keys_to_values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,4 +12,10 @@
   it { is_expected.to run.with_params({ 'key' => 'value' }, '').and_return(['keyvalue']) }
   it { is_expected.to run.with_params({ 'key' => 'value' }, ':').and_return(['key:value']) }
+
+  context 'should run with UTF8 and double byte characters' do 
+    it { is_expected.to run.with_params({ 'ҝẽγ' => '√ạĺűē' }, ':').and_return(['ҝẽγ:√ạĺűē']) }
+    it  { is_expected.to run.with_params({ 'ҝẽγ' => '√ạĺűē' }, '万').and_return(['ҝẽγ万√ạĺűē']) }
+  end
+
   it { is_expected.to run.with_params({ 'key' => nil }, ':').and_return(['key:']) }
   it 'should run join_keys_to_values(<hash with multiple keys>, ":") and return the proper array' do
@@ -17,3 +23,8 @@
     expect(result.sort).to eq(['key1:value1', 'key2:value2'].sort)
   end
+  it 'should run join_keys_to_values(<hash with array value>, " ") and return the proper array' do
+    result = subject.call([{ 'key1' => 'value1', 'key2' => ['value2', 'value3'] }, ' '])
+    expect(result.sort).to eq(['key1 value1', 'key2 value2', 'key2 value3'].sort)
+  end
 end
+
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/join_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,3 +17,4 @@
   it { is_expected.to run.with_params(['one', 'two', 'three']).and_return('onetwothree') }
   it { is_expected.to run.with_params(['one', 'two', 'three'], ':').and_return('one:two:three') }
+  it { is_expected.to run.with_params(['ōŋể', 'ŧשợ', 'ţђŕẽё'], ':').and_return('ōŋể:ŧשợ:ţђŕẽё') }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/keys_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/keys_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/keys_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,3 +17,8 @@
     expect(result).to match_array(['key1', 'key2'])
   end
+
+  it 'should run with UTF8 and double byte characters' do
+    result = subject.call([{ 'ҝểү' => '√ẳŀμệ', 'キー' => '値' }])
+    expect(result).to match_array(['ҝểү', 'キー'])
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/length.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/length.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/length.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,35 @@
+require 'spec_helper'
+
+describe 'length' do
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(ArgumentError, /'length' expects 1 argument, got none/) }
+  it { is_expected.to run.with_params([], 'extra').and_raise_error(ArgumentError, /'length' expects 1 argument, got 2/) }
+  it { is_expected.to run.with_params(1).and_raise_error(ArgumentError, /expects a value of type String, Array, or Hash, got Integer/) }
+  it { is_expected.to run.with_params(true).and_raise_error(ArgumentError, /expects a value of type String, Array, or Hash, got Boolean/) }
+  it { is_expected.to run.with_params('1').and_return(1) }
+  it { is_expected.to run.with_params('1.0').and_return(3) }
+  it { is_expected.to run.with_params([]).and_return(0) }
+  it { is_expected.to run.with_params(['a']).and_return(1) }
+  it { is_expected.to run.with_params(['one', 'two', 'three']).and_return(3) }
+  it { is_expected.to run.with_params(['one', 'two', 'three', 'four']).and_return(4) }
+
+  it { is_expected.to run.with_params({}).and_return(0) }
+  it { is_expected.to run.with_params({'1' => '2'}).and_return(1) }
+  it { is_expected.to run.with_params({'1' => '2', '4' => '4'}).and_return(2) }
+  it { is_expected.to run.with_params({'€' => '@', '竹' => 'ǿňè'}).and_return(2) }
+
+  it { is_expected.to run.with_params('').and_return(0) }
+  it { is_expected.to run.with_params('a').and_return(1) }
+  it { is_expected.to run.with_params('abc').and_return(3) }
+  it { is_expected.to run.with_params('abcd').and_return(4) }
+  it { is_expected.to run.with_params('万').and_return(1) }
+  it { is_expected.to run.with_params('āβćđ').and_return(4) }
+
+  context 'when using a class extending String' do
+    it 'should call its size method' do
+      value = AlsoString.new('asdfghjkl')
+      value.expects(:length).returns('foo')
+      expect(subject).to run.with_params(value).and_return('foo')
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/load_module_metadata_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/load_module_metadata_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/load_module_metadata_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,24 +6,56 @@
   it { is_expected.to run.with_params("one", "two", "three").and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
 
-  it "should json parse the file" do
-     allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
-     allow(File).to receive(:exists?).with(/metadata.json/).and_return(true)
-     allow(File).to receive(:read).with(/metadata.json/).and_return('{"name": "spencer-science"}')
+  describe "when calling with valid arguments" do
+    before :each do
+      allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/, {:encoding=>"utf-8"}).and_return('{"name": "puppetlabs-stdlib"}')
+      allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/).and_return('{"name": "puppetlabs-stdlib"}')
+    end
 
-     result = subject.call(['science'])
-     expect(result['name']).to eq('spencer-science')
-  end
+    context "when calling with valid utf8 and double byte character arguments" do
+      before :each do
+        allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/, {:encoding=>"utf-8"}).and_return('{"ĭďèŉţĩƒіểя": "ċơņťęאּť ỡƒ ţħíš -
+この文字"}')
+        allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/).and_return('{"ĭďèŉţĩƒіểя": "ċơņťęאּť ỡƒ ţħíš -
+この文字"}')
+      end
 
-  it "should fail by default if there is no metadata.json" do
-     allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
-     allow(File).to receive(:exists?).with(/metadata.json/).and_return(false)
-     expect {subject.call(['science'])}.to raise_error(Puppet::ParseError)
-  end
+    it "should json parse the file" do
+      if Puppet::Util::Platform.windows?
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('C:/path/to/module/')
+        allow(File).to receive(:exists?).with('C:/path/to/module/metadata.json').and_return(true)
+        allow(File).to receive(:read).with('C:/path/to/module/metadata.json').and_return('{"name": "spencer-science"}')
+      else
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
+        allow(File).to receive(:exists?).with('/path/to/module/metadata.json').and_return(true)
+        allow(File).to receive(:read).with('/path/to/module/metadata.json').and_return('{"name": "spencer-science"}')
+      end
 
-  it "should return nil if user allows empty metadata.json" do
-     allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
-     allow(File).to receive(:exists?).with(/metadata.json/).and_return(false)
-     result = subject.call(['science', true])
-     expect(result).to eq({})
+      result = subject.call(['science'])
+      expect(result['name']).to eq('spencer-science')
+    end
+
+    it "should fail by default if there is no metadata.json" do
+      if Puppet::Util::Platform.windows?
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('C:/path/to/module/')
+        allow(File).to receive(:exists?).with('C:/path/to/module/metadata.json').and_return(false)
+      else
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
+        allow(File).to receive(:exists?).with('/path/to/module/metadata.json').and_return(false)
+      end
+      expect {subject.call(['science'])}.to raise_error(Puppet::ParseError)
+    end
+
+    it "should return nil if user allows empty metadata.json" do
+      if Puppet::Util::Platform.windows?
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('C:/path/to/module/')
+        allow(File).to receive(:exists?).with('C:/path/to/module/metadata.json').and_return(false)
+      else
+        allow(scope).to receive(:function_get_module_path).with(['science']).and_return('/path/to/module/')
+        allow(File).to receive(:exists?).with('/path/to/module/metadata.json').and_return(false)
+      end
+      result = subject.call(['science', true])
+      expect(result).to eq({})
+    end
+    end
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadjson_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadjson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadjson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,66 @@
+require 'spec_helper'
+
+describe 'loadjson' do
+  it { is_expected.not_to eq(nil) }
+  it { is_expected.to run.with_params().and_raise_error(ArgumentError, /wrong number of arguments/i) }
+
+  describe "when calling with valid arguments" do
+    before :each do
+      allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/, {:encoding=>"utf-8"}).and_return('{"name": "puppetlabs-stdlib"}')
+      allow(File).to receive(:read).with(/\/(stdlib|test)\/metadata.json/).and_return('{"name": "puppetlabs-stdlib"}')
+    end
+
+    context 'when a non-existing file is specified' do
+      let(:filename) {
+        if Puppet::Util::Platform.windows?
+          'C:/tmp/doesnotexist'
+        else
+          '/tmp/doesnotexist'
+        end
+      }
+      before {
+        allow(File).to receive(:exists?).with(filename).and_return(false).once
+        allow(PSON).to receive(:load).never
+      }
+      it { is_expected.to run.with_params(filename, {'default' => 'value'}).and_return({'default' => 'value'}) }
+      it { is_expected.to run.with_params(filename, {'đẽƒằưļŧ' => '٧ẵłựέ'}).and_return({'đẽƒằưļŧ' => '٧ẵłựέ'}) }
+      it { is_expected.to run.with_params(filename, {'デフォルト' => '値'}).and_return({'デフォルト' => '値'}) }
+    end
+
+    context 'when an existing file is specified' do
+      let(:filename) {
+        if Puppet::Util::Platform.windows?
+          'C:/tmp/doesexist'
+        else
+          '/tmp/doesexist'
+        end
+      }
+      let(:data) { { 'key' => 'value', 'ķęŷ' => 'νậŀųề', 'キー' => '値'} }
+      let(:json) { '{"key":"value", {"ķęŷ":"νậŀųề" }, {"キー":"値" }' }
+      before {
+        allow(File).to receive(:exists?).with(filename).and_return(true).once
+        allow(File).to receive(:read).with(filename).and_return(json).once
+        allow(File).to receive(:read).with(filename).and_return(json).once
+        allow(PSON).to receive(:load).with(json).and_return(data).once
+      }
+      it { is_expected.to run.with_params(filename).and_return(data) }
+    end
+
+    context 'when the file could not be parsed' do
+      let(:filename) {
+        if Puppet::Util::Platform.windows?
+          'C:/tmp/doesexist'
+        else
+          '/tmp/doesexist'
+        end
+      }
+      let(:json) { '{"key":"value"}' }
+      before {
+        allow(File).to receive(:exists?).with(filename).and_return(true).once
+        allow(File).to receive(:read).with(filename).and_return(json).once
+        allow(PSON).to receive(:load).with(json).once.and_raise StandardError, 'Something terrible have happened!'
+      }
+      it { is_expected.to run.with_params(filename, {'default' => 'value'}).and_return({'default' => 'value'}) }
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadyaml_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadyaml_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/loadyaml_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,6 +3,6 @@
 describe 'loadyaml' do
   it { is_expected.not_to eq(nil) }
-  it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
-  it { is_expected.to run.with_params('', '').and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  it { is_expected.to run.with_params().and_raise_error(ArgumentError, /wrong number of arguments/i) }
+
   context 'when a non-existing file is specified' do
     let(:filename) { '/tmp/doesnotexist' }
@@ -11,9 +11,12 @@
       YAML.expects(:load_file).never
     }
-    it { is_expected.to run.with_params(filename).and_return(nil) }
+    it { is_expected.to run.with_params(filename, {'default' => 'value'}).and_return({'default' => 'value'}) }
+    it { is_expected.to run.with_params(filename, {'đẽƒằưļŧ' => '٧ẵłựέ'}).and_return({'đẽƒằưļŧ' => '٧ẵłựέ'}) }
+    it { is_expected.to run.with_params(filename, {'デフォルト' => '値'}).and_return({'デフォルト' => '値'}) }
   end
+
   context 'when an existing file is specified' do
     let(:filename) { '/tmp/doesexist' }
-    let(:data) { { 'key' => 'value' } }
+    let(:data) { { 'key' => 'value', 'ķęŷ' => 'νậŀųề', 'キー' => '値'} }
     before {
       File.expects(:exists?).with(filename).returns(true).once
@@ -22,3 +25,12 @@
     it { is_expected.to run.with_params(filename).and_return(data) }
   end
+
+  context 'when the file could not be parsed' do
+    let(:filename) { '/tmp/doesexist' }
+    before {
+      File.expects(:exists?).with(filename).returns(true).once
+      YAML.stubs(:load_file).with(filename).once.raises StandardError, 'Something terrible have happened!'
+    }
+    it { is_expected.to run.with_params(filename, {'default' => 'value'}).and_return({'default' => 'value'}) }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/lstrip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/lstrip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/lstrip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -23,4 +23,5 @@
   it { is_expected.to run.with_params(' one ').and_return('one ') }
   it { is_expected.to run.with_params('     one ').and_return('one ') }
+  it { is_expected.to run.with_params('     ǿňè ').and_return('ǿňè ') }
   it { is_expected.to run.with_params("\tone ").and_return('one ') }
   it { is_expected.to run.with_params("\t one ").and_return('one ') }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/member_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/member_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/member_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,4 +18,6 @@
   it { is_expected.to run.with_params(['one'], ['one']).and_return(true) }
   it { is_expected.to run.with_params(['one', 'two', 'three', 'four'], ['four', 'two']).and_return(true) }
+  it { is_expected.to run.with_params(['ọאּẹ', 'ŧẅồ', 'ţҺŗęē', 'ƒơџŕ'], ['ƒơџŕ', 'ŧẅồ']).and_return(true) }
   it { is_expected.to run.with_params(['one', 'two', 'three', 'four'], ['four', 'five']).and_return(false) }
+  it { is_expected.to run.with_params(['ọאּẹ', 'ŧẅồ', 'ţҺŗęē', 'ƒơџŕ'], ['ƒơџŕ', 'ƒί√ə']).and_return(false) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parsejson_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parsejson_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parsejson_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,10 +13,10 @@
   context 'with correct JSON data' do
 
-    it 'should be able to parse a JSON data with a Hash' do
+    it 'should be able to parse JSON data with a Hash' do
       is_expected.to run.with_params('{"a":"1","b":"2"}').
                          and_return({'a'=>'1', 'b'=>'2'})
     end
 
-    it 'should be able to parse a JSON data with an Array' do
+    it 'should be able to parse JSON data with an Array' do
       is_expected.to run.with_params('["a","b","c"]').
                          and_return(['a', 'b', 'c'])
@@ -30,7 +30,12 @@
     end
 
-    it 'should be able to parse a JSON data with a mixed structure' do
+    it 'should be able to parse JSON data with a mixed structure' do
       is_expected.to run.with_params('{"a":"1","b":2,"c":{"d":[true,false]}}').
                          and_return({'a' =>'1', 'b' => 2, 'c' => { 'd' => [true, false] } })
+    end
+
+    it 'should be able to parse JSON data with a UTF8 and double byte characters' do
+      is_expected.to run.with_params('{"×":"これ","ý":"記号","です":{"©":["Á","ß"]}}').
+          and_return({'×' =>'これ', 'ý' => '記号', 'です' => { '©' => ['Á', 'ß'] } })
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parseyaml_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parseyaml_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/parseyaml_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -19,17 +19,22 @@
     end
 
-    it 'should be able to parse a YAML data with a Hash' do
+    it 'should be able to parse YAML data with a Hash' do
       is_expected.to run.with_params("---\na: '1'\nb: '2'\n").
                          and_return({'a' => '1', 'b' => '2'})
     end
 
-    it 'should be able to parse a YAML data with an Array' do
+    it 'should be able to parse YAML data with an Array' do
       is_expected.to run.with_params("---\n- a\n- b\n- c\n").
                          and_return(['a', 'b', 'c'])
     end
 
-    it 'should be able to parse a YAML data with a mixed structure' do
+    it 'should be able to parse YAML data with a mixed structure' do
       is_expected.to run.with_params("---\na: '1'\nb: 2\nc:\n  d:\n  - :a\n  - true\n  - false\n").
                          and_return({'a' => '1', 'b' => 2, 'c' => {'d' => [:a, true, false]}})
+    end
+
+    it 'should be able to parse YAML data with a UTF8 and double byte characters' do
+      is_expected.to run.with_params("---\na: ×\nこれ: 記号\nです:\n  ©:\n  - Á\n  - ß\n").
+          and_return({"a"=>"×", "これ"=>"記号", "です"=>{"©"=>["Á", "ß"]} })
     end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_default_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_default_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_default_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -6,4 +6,5 @@
 
   it { is_expected.to run.with_params('one', 'two').and_return('one') }
+  it { is_expected.to run.with_params('ớņệ', 'ťωơ').and_return('ớņệ') }
   it { is_expected.to run.with_params('', 'two').and_return('two') }
   it { is_expected.to run.with_params(:undef, 'two').and_return('two') }
@@ -14,4 +15,5 @@
     describe "when providing #{value.inspect} as default" do
       it { is_expected.to run.with_params('one', value).and_return('one') }
+      it { is_expected.to run.with_params('ớņệ', value).and_return('ớņệ') }
       it { is_expected.to run.with_params([], value).and_return([]) }
       it { is_expected.to run.with_params({}, value).and_return({}) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/pick_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -10,3 +10,8 @@
   it { is_expected.to run.with_params(:undefined, 'two').and_return('two') }
   it { is_expected.to run.with_params(nil, 'two').and_return('two') }
+
+  context 'should run with UTF8 and double byte characters' do
+  it { is_expected.to run.with_params(nil, 'このテキスト').and_return('このテキスト') }
+  it { is_expected.to run.with_params('', 'ŝẳмрłề џţƒ8 ţẽ×ť', 'このテキスト').and_return('ŝẳмрłề џţƒ8 ţẽ×ť') }
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/prefix_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/prefix_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/prefix_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -12,4 +12,5 @@
   it { is_expected.to run.with_params([]).and_return([]) }
   it { is_expected.to run.with_params(['one', 2]).and_return(['one', '2']) }
+  it { is_expected.to run.with_params(['ớņệ', 2]).and_return(['ớņệ', '2']) }
   it { is_expected.to run.with_params([], '').and_return([]) }
   it { is_expected.to run.with_params([''], '').and_return(['']) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/range_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/range_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/range_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -80,4 +80,12 @@
   end
 
+  context 'with prefixed numbers as utf8 strings as bounds' do
+    it { is_expected.to run.with_params('ħөŝŧ01', 'ħөŝŧ04').and_return(['ħөŝŧ01', 'ħөŝŧ02', 'ħөŝŧ03', 'ħөŝŧ04']) }
+  end
+
+  context 'with prefixed numbers as double byte character strings as bounds' do
+    it { is_expected.to run.with_params('ホスト01', 'ホスト04').and_return(['ホスト01', 'ホスト02', 'ホスト03', 'ホスト04']) }
+  end
+
   context 'with dash-range syntax' do
     it { is_expected.to run.with_params('4-1').and_return([]) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/regexpescape_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/regexpescape_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/regexpescape_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,41 @@
+require 'spec_helper'
+
+describe 'regexpescape' do
+  describe 'signature validation' do
+    it { is_expected.not_to eq(nil) }
+    it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+    it {
+      pending("Current implementation ignores parameters after the first.")
+      is_expected.to run.with_params('', '').and_raise_error(Puppet::ParseError, /wrong number of arguments/i)
+    }
+    it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /Requires either array or string to work/) }
+    it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, /Requires either array or string to work/) }
+    it { is_expected.to run.with_params(true).and_raise_error(Puppet::ParseError, /Requires either array or string to work/) }
+  end
+
+  describe 'handling normal strings' do
+    it 'should call ruby\'s Regexp.escape function' do
+      Regexp.expects(:escape).with('regexp_string').returns('escaped_regexp_string').once
+      is_expected.to run.with_params('regexp_string').and_return('escaped_regexp_string')
+    end
+  end
+
+  describe 'handling classes derived from String' do
+    it 'should call ruby\'s Regexp.escape function' do
+      regexp_string = AlsoString.new('regexp_string')
+      Regexp.expects(:escape).with(regexp_string).returns('escaped_regexp_string').once
+      is_expected.to run.with_params(regexp_string).and_return("escaped_regexp_string")
+    end
+  end
+
+  describe 'strings in arrays handling' do
+    it { is_expected.to run.with_params([]).and_return([]) }
+    it { is_expected.to run.with_params(['one*', "two"]).and_return(['one\*', "two"]) }
+    it { is_expected.to run.with_params(['one*', 1, true, {}, "two"]).and_return(['one\*', 1, true, {}, "two"]) }
+
+    context 'should run with UTF8 and double byte characters' do
+      it { is_expected.to run.with_params(['ŏŉε*']).and_return(['ŏŉε\*']) }
+      it { is_expected.to run.with_params(['インターネット*']).and_return(['インターネット\*']) }
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reject_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reject_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reject_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,3 +17,4 @@
   it { is_expected.to run.with_params(['one', 'two', 'three'], 'two').and_return(['one', 'three']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], 't(wo|hree)').and_return(['one']) }
+  it { is_expected.to run.with_params(['όŉệ', 'ţщồ', 'ţңяέέ'], 'ţ(щồ|ңяέέ)').and_return(['όŉệ']) }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reverse_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reverse_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/reverse_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,4 +16,5 @@
   it { is_expected.to run.with_params(['one', 'two', 'three']).and_return(['three', 'two', 'one']) }
   it { is_expected.to run.with_params(['one', 'two', 'three', 'four']).and_return(['four', 'three', 'two', 'one']) }
+  it { is_expected.to run.with_params(['ổňë', 'ťŵọ', 'ŧңяəė', 'ƒŏůŗ']).and_return(['ƒŏůŗ', 'ŧңяəė', 'ťŵọ', 'ổňë']) }
 
   it { is_expected.to run.with_params('').and_return('') }
@@ -21,4 +22,5 @@
   it { is_expected.to run.with_params('abc').and_return('cba') }
   it { is_expected.to run.with_params('abcd').and_return('dcba') }
+  it { is_expected.to run.with_params('āβćđ').and_return('đćβā') }
 
   context 'when using a class extending String' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/rstrip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/rstrip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/rstrip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -23,4 +23,5 @@
   it { is_expected.to run.with_params(' one ').and_return(' one') }
   it { is_expected.to run.with_params('     one ').and_return('     one') }
+  it { is_expected.to run.with_params(' ǿňè    ').and_return(' ǿňè') }
   it { is_expected.to run.with_params("\tone ").and_return("\tone") }
   it { is_expected.to run.with_params("\t one ").and_return("\t one") }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/seeded_rand_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/seeded_rand_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/seeded_rand_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -51,3 +51,8 @@
     scope.function_seeded_rand([max, seed])
   end
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params(1000, 'ǿňè')}
+    it { is_expected.to run.with_params(1000, '文字列')}
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_escape_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_escape_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_escape_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,27 @@
+require 'spec_helper'
+
+describe 'shell_escape' do
+  it { is_expected.not_to eq(nil) }
+
+  describe 'signature validation' do
+    it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+    it { is_expected.to run.with_params('foo', 'bar').and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  end
+
+  describe 'stringification' do
+    it { is_expected.to run.with_params(10).and_return('10') }
+    it { is_expected.to run.with_params(false).and_return('false') }
+  end
+
+  describe 'escaping' do
+    it { is_expected.to run.with_params('foo').and_return('foo') }
+    it { is_expected.to run.with_params('foo bar').and_return('foo\ bar') }
+    it { is_expected.to run.with_params('~`!@#$%^&*()_+-=[]\{}|;\':",./<>?')
+           .and_return('\~\`\!@\#\$\%\^\&\*\(\)_\+-\=\[\]\\\\\{\}\|\;\\\':\",./\<\>\?') }
+  end
+
+  context 'should run with UTF8 and double byte characters' do
+      it { is_expected.to run.with_params('スペー スを含むテ  キスト').and_return('\\ス\\ペ\\ー\\ \\ス\\を\\含\\む\\テ\\ \\ \\キ\\ス\\ト') }
+      it { is_expected.to run.with_params('μťƒ 8  ŧĕχť').and_return('\\μ\\ť\\ƒ\\ 8\\ \\ \\ŧ\\ĕ\\χ\\ť') }
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_join_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_join_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_join_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,28 @@
+require 'spec_helper'
+
+describe 'shell_join' do
+  it { is_expected.not_to eq(nil) }
+
+  describe 'signature validation' do
+    it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+    it { is_expected.to run.with_params(['foo'], ['bar']).and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+    it { is_expected.to run.with_params('foo').and_raise_error(Puppet::ParseError, /is not an Array/i) }
+  end
+
+  describe 'shell argument joining' do
+    it { is_expected.to run.with_params(['foo']).and_return('foo') }
+    it { is_expected.to run.with_params(['foo', 'bar']).and_return('foo bar') }
+    it { is_expected.to run.with_params(['foo', 'bar baz']).and_return('foo bar\ baz') }
+    it { is_expected.to run.with_params(['~`!@#$', '%^&*()_+-=', '[]\{}|;\':"', ',./<>?'])
+                            .and_return('\~\`\!@\#\$ \%\^\&\*\(\)_\+-\= \[\]\\\\\{\}\|\;\\\':\" ,./\<\>\?') }
+
+  context 'should run with UTF8 and double byte characters' do
+      it { is_expected.to run.with_params(['μťƒ', '8',  'ŧĕχť']).and_return('\\μ\\ť\\ƒ 8 \\ŧ\\ĕ\\χ\\ť') }
+      it { is_expected.to run.with_params(['スペー', 'スを含むテ', ' キスト']).and_return('\\ス\\ペ\\ー \\ス\\を\\含\\む\\テ \\ \\キ\\ス\\ト') }
+    end
+  end
+
+  describe 'stringification' do
+    it { is_expected.to run.with_params([10, false, 'foo']).and_return('10 false foo') }
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_split_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_split_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shell_split_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,29 @@
+require 'spec_helper'
+
+describe 'shell_split' do
+  it { is_expected.not_to eq(nil) }
+
+  describe 'signature validation' do
+    it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+    it { is_expected.to run.with_params('foo', 'bar').and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  end
+
+  describe 'stringification' do
+    it { is_expected.to run.with_params(10).and_return(['10']) }
+    it { is_expected.to run.with_params(false).and_return(['false']) }
+  end
+
+  describe 'shell line spliting' do
+    it { is_expected.to run.with_params('foo').and_return(['foo']) }
+    it { is_expected.to run.with_params('foo bar').and_return(['foo', 'bar']) }
+    it { is_expected.to run.with_params('\~\`\!@\#\$\%\^\&\*\(\)_\+-\=\[\]\\\\\{\}\|\;\\\':\",./\<\>\?')
+         .and_return(['~`!@#$%^&*()_+-=[]\{}|;\':",./<>?']) }
+    it { is_expected.to run.with_params('\~\`\!@\#\$ \%\^\&\*\(\)_\+-\= \[\]\\\\\{\}\|\;\\\':\" ,./\<\>\?')
+         .and_return(['~`!@#$', '%^&*()_+-=', '[]\{}|;\':"', ',./<>?']) }
+
+     context 'should run with UTF8 and double byte characters' do
+        it { is_expected.to run.with_params('\\μ\\ť\\ƒ 8 \\ŧ\\ĕ\\χ\\ť').and_return(['μťƒ', '8',  'ŧĕχť']) }
+        it { is_expected.to run.with_params('\\ス\\ペ\\ー \\ス\\を\\含\\む\\テ \\ \\キ\\ス\\ト').and_return(['スペー', 'スを含むテ', ' キスト']) }
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shuffle_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shuffle_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/shuffle_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -27,4 +27,9 @@
     it { is_expected.to run.with_params('abcd').and_return('dcba') }
 
+    context 'should run with UTF8 and double byte characters' do
+      it { is_expected.to run.with_params('ůţƒ8 ŧέχŧ şŧґíńģ').and_return('ģńş ůχţέƒŧí8ґŧŧ ') }
+      it { is_expected.to run.with_params('日本語の文字列').and_return('字本日語文列の') }
+    end
+
     context 'when using a class extending String' do
       it { is_expected.to run.with_params(AlsoString.new('asdfghjkl')).and_return('lkhdsfajg') }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/size_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/size_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/size_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -20,4 +20,5 @@
   it { is_expected.to run.with_params({'1' => '2'}).and_return(1) }
   it { is_expected.to run.with_params({'1' => '2', '4' => '4'}).and_return(2) }
+  it { is_expected.to run.with_params({'€' => '@', '竹' => 'ǿňè'}).and_return(2) }
 
   it { is_expected.to run.with_params('').and_return(0) }
@@ -25,4 +26,6 @@
   it { is_expected.to run.with_params('abc').and_return(3) }
   it { is_expected.to run.with_params('abcd').and_return(4) }
+  it { is_expected.to run.with_params('万').and_return(1) }
+  it { is_expected.to run.with_params('āβćđ').and_return(4) }
 
   context 'when using a class extending String' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/squeeze_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/squeeze_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/squeeze_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -15,4 +15,10 @@
     it { is_expected.to run.with_params('aaaaaaaaa', 'a').and_return('a') }
     it { is_expected.to run.with_params('aaaaaaaaabbbbbbbbbbcccccccccc', 'b-c').and_return('aaaaaaaaabc') }
+  end
+
+  context 'should run with UTF8 and double byte characters' do
+    it { is_expected.to run.with_params('ậậậậậậậậậậậậậậậậậậậậ').and_return('ậ') }
+    it { is_expected.to run.with_params('語語語語語語語', '語').and_return('語') }
+    it { is_expected.to run.with_params('ậậậậậậậậậậậậậậậậậ語語語語©©©©©', '©').and_return('ậậậậậậậậậậậậậậậậậ語語語語©') }
   end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/strip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/strip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/strip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -31,4 +31,5 @@
   it { is_expected.to run.with_params("\t one \t").and_return('one') }
   it { is_expected.to run.with_params(' o n e ').and_return('o n e') }
+  it { is_expected.to run.with_params('      ỏŋέ  ').and_return('ỏŋέ') }
   it { is_expected.to run.with_params(AlsoString.new(' one ')).and_return('one') }
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/suffix_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/suffix_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/suffix_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -16,4 +16,6 @@
   it { is_expected.to run.with_params(['one'], 'post').and_return(['onepost']) }
   it { is_expected.to run.with_params(['one', 'two', 'three'], 'post').and_return(['onepost', 'twopost', 'threepost']) }
+  it { is_expected.to run.with_params(['ỗńέ', 'ťשׂǿ', 'ŧҺř℮ə'], 'рổŝţ').and_return(['ỗńέрổŝţ', 'ťשׂǿрổŝţ', 'ŧҺř℮əрổŝţ']) }
+
   it {
     is_expected.to run.with_params({}).and_return({})
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/union_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/union_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/union_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -21,4 +21,5 @@
   it { is_expected.to run.with_params(['one', 'two'], ['two', 'three'], ['one', 'three']).and_return(['one', 'two', 'three']) }
   it { is_expected.to run.with_params(['one', 'two'], ['three', 'four'], ['one', 'two', 'three'], ['four']).and_return(['one', 'two', 'three', 'four']) }
+  it { is_expected.to run.with_params(['ốńə', 'ţשׂợ'], ['ŧĥяếệ', 'ƒởųŗ'], ['ốńə', 'ţשׂợ', 'ŧĥяếệ'], ['ƒởųŗ']).and_return(['ốńə', 'ţשׂợ', 'ŧĥяếệ', 'ƒởųŗ']) }
   it 'should not confuse types' do is_expected.to run.with_params(['1', '2', '3'], [1, 2]).and_return(['1', '2', '3', 1, 2]) end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/unique_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/unique_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/unique_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -18,4 +18,5 @@
     it { is_expected.to run.with_params(['a']).and_return(['a']) }
     it { is_expected.to run.with_params(['a', 'b', 'a']).and_return(['a', 'b']) }
+    it { is_expected.to run.with_params(['ã', 'ъ', 'ã']).and_return(['ã', 'ъ']) }
   end
 
@@ -24,4 +25,5 @@
     it { is_expected.to run.with_params('a').and_return('a') }
     it { is_expected.to run.with_params('aaba').and_return('ab') }
+    it { is_expected.to run.with_params('ããъã').and_return('ãъ') }
   end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_absolute_path_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_absolute_path_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_absolute_path_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_absolute_path' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params('c:/')
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_array_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_array_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_array_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,6 +2,16 @@
 
 describe 'validate_array' do
+
   describe 'signature validation' do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
+    end
     it { is_expected.not_to eq(nil) }
+    # Checking for deprecation warning
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params([])
+    end
     it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_bool_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_bool_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_bool_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_bool' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params(true)
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_cmd_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_cmd_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_cmd_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,5 +1,5 @@
 require 'spec_helper'
 
-describe 'validate_cmd' do
+describe 'validate_cmd', :unless => Puppet::Util::Platform.windows? do
   let(:touch) { File.exists?('/usr/bin/touch') ? '/usr/bin/touch' : '/bin/touch' }
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_hash_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_hash_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_hash_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -5,4 +5,16 @@
     it { is_expected.not_to eq(nil) }
     it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+
+    describe 'check for deprecation warning' do
+      after(:all) do
+        ENV.delete('STDLIB_LOG_DEPRECATIONS')
+      end
+      # Checking for deprecation warning
+      it 'should display a single deprecation' do
+        ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+        scope.expects(:warning).with(includes('This method is deprecated'))
+        is_expected.to run.with_params({'key' => 'value'})
+      end
+    end
 
     describe 'valid inputs' do
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_integer_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_integer_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_integer_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_integer' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params(3)
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ip_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ip_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ip_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,5 @@
 
 describe 'validate_ip_address' do
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
@@ -20,4 +21,22 @@
     it { is_expected.to run.with_params('::1/64') }
     it { is_expected.to run.with_params('fe80::a00:27ff:fe94:44d6/64') }
+
+    context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+      after(:all) do
+        ENV.delete('STDLIB_LOG_DEPRECATIONS')
+      end
+      # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+      it 'should display a single deprecation' do
+        ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+        scope.expects(:warning).with(includes('This method is deprecated'))
+        is_expected.to run.with_params('1.2.3.4')
+      end
+      it 'should display no warning for deprecation' do
+        ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+        scope.expects(:warning).with(includes('This method is deprecated')).never
+        is_expected.to run.with_params('1.2.3.4')
+      end
+    end
+    
     context 'with netmasks' do
       it { is_expected.to run.with_params('8.8.8.8/0') }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv4_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv4_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv4_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,38 +2,39 @@
 
 describe 'validate_ipv4_address' do
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
     it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  end
 
-    describe 'valid inputs' do
-      it { is_expected.to run.with_params('0.0.0.0') }
-      it { is_expected.to run.with_params('8.8.8.8') }
-      it { is_expected.to run.with_params('127.0.0.1') }
-      it { is_expected.to run.with_params('10.10.10.10') }
-      it { is_expected.to run.with_params('194.232.104.150') }
-      it { is_expected.to run.with_params('244.24.24.24') }
-      it { is_expected.to run.with_params('255.255.255.255') }
-      it { is_expected.to run.with_params('1.2.3.4', '5.6.7.8') }
-      context 'with netmasks' do
-        it { is_expected.to run.with_params('8.8.8.8/0') }
-        it { is_expected.to run.with_params('8.8.8.8/16') }
-        it { is_expected.to run.with_params('8.8.8.8/32') }
-        it { is_expected.to run.with_params('8.8.8.8/255.255.0.0') }
-      end
+  context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
     end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params(SharedData::IPV4_PATTERNS.first)
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params(SharedData::IPV4_PATTERNS.first)
+    end
+  end
 
-    describe 'invalid inputs' do
-      it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params(true).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
-      it { is_expected.to run.with_params('0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
-      it { is_expected.to run.with_params('0.0.0.256').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
-      it { is_expected.to run.with_params('0.0.0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
-      it { is_expected.to run.with_params('affe::beef').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
-      it { is_expected.to run.with_params('1.2.3.4', {}).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('1.2.3.4', 1).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('1.2.3.4', true).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('1.2.3.4', 'one').and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
+  SharedData::IPV4_PATTERNS.each do |value|
+    it { is_expected.to run.with_params(value) }
+  end
+
+  SharedData::IPV4_NEGATIVE_PATTERNS.each do |value|
+    it { is_expected.to run.with_params(value).and_raise_error(Puppet::ParseError, /is not a valid IPv4/) }
+  end
+
+  describe 'invalid inputs' do
+    [ {}, [], 1, true ].each do |invalid|
+      it { is_expected.to run.with_params(invalid).and_raise_error(Puppet::ParseError, /is not a string/) }
+      it { is_expected.to run.with_params(SharedData::IPV4_PATTERNS.first, invalid).and_raise_error(Puppet::ParseError, /is not a string/) }
     end
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv6_address_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv6_address_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_ipv6_address_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,30 +2,58 @@
 
 describe 'validate_ipv6_address' do
+  
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
     it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) }
+  end
 
-    describe 'valid inputs' do
-      it { is_expected.to run.with_params('3ffe:0505:0002::') }
-      it { is_expected.to run.with_params('3ffe:0505:0002::', '3ffe:0505:0002::2') }
-      it { is_expected.to run.with_params('::1/64') }
-      it { is_expected.to run.with_params('fe80::a00:27ff:fe94:44d6/64') }
+  context 'Checking for deprecation warning', if: Puppet.version.to_f < 4.0 do
+    after(:all) do
+      ENV.delete('STDLIB_LOG_DEPRECATIONS')
     end
+    # Checking for deprecation warning, which should only be provoked when the env variable for it is set.
+    it 'should display a single deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+      scope.expects(:warning).with(includes('This method is deprecated'))
+      is_expected.to run.with_params('3ffe:0505:0002::')
+    end
+    it 'should display no warning for deprecation' do
+      ENV['STDLIB_LOG_DEPRECATIONS'] = "false"
+      scope.expects(:warning).with(includes('This method is deprecated')).never
+      is_expected.to run.with_params('3ffe:0505:0002::')
+    end
+  end 
 
-    describe 'invalid inputs' do
-      it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params(true).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      it { is_expected.to run.with_params('0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      it { is_expected.to run.with_params('0.0.0.256').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      it { is_expected.to run.with_params('0.0.0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      it { is_expected.to run.with_params('affe:beef').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      it { is_expected.to run.with_params('::1', {}).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('::1', true).and_raise_error(Puppet::ParseError, /is not a string/) }
-      it { is_expected.to run.with_params('::1', 'one').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
-      context 'unless running on ruby 1.8.7', :if => RUBY_VERSION != '1.8.7' do
-        it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /is not a string/) }
-        it { is_expected.to run.with_params('::1', 1).and_raise_error(Puppet::ParseError, /is not a string/) }
-      end
+  describe 'valid inputs' do
+    it { is_expected.to run.with_params('3ffe:0505:0002::') }
+    it { is_expected.to run.with_params('3ffe:0505:0002::', '3ffe:0505:0002::2') }
+    it { is_expected.to run.with_params('::1/64') }
+    it { is_expected.to run.with_params('fe80::a00:27ff:fe94:44d6/64') }
+    it { is_expected.to run.with_params('fe80:0000:0000:0000:0204:61ff:fe9d:f156') }
+    it { is_expected.to run.with_params('fe80:0:0:0:204:61ff:fe9d:f156') }
+    it { is_expected.to run.with_params('fe80::204:61ff:fe9d:f156') }
+    it { is_expected.to run.with_params('fe80:0:0:0:0204:61ff:254.157.241.86') }
+    it { is_expected.to run.with_params('::1') }
+    it { is_expected.to run.with_params('fe80::') }
+    it { is_expected.to run.with_params('2001::') }
+  end
+
+  describe 'invalid inputs' do
+    it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, /is not a string/) }
+    it { is_expected.to run.with_params(true).and_raise_error(Puppet::ParseError, /is not a string/) }
+    it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('0.0.0.256').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('0.0.0.0.0').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('::ffff:2.3.4').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('::ffff:257.1.2.3').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('::ffff:12345678901234567890.1.26').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('affe:beef').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    it { is_expected.to run.with_params('::1', {}).and_raise_error(Puppet::ParseError, /is not a string/) }
+    it { is_expected.to run.with_params('::1', true).and_raise_error(Puppet::ParseError, /is not a string/) }
+    it { is_expected.to run.with_params('::1', 'one').and_raise_error(Puppet::ParseError, /is not a valid IPv6/) }
+    context 'unless running on ruby 1.8.7', :if => RUBY_VERSION != '1.8.7' do
+      it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /is not a string/) }
+      it { is_expected.to run.with_params('::1', 1).and_raise_error(Puppet::ParseError, /is not a string/) }
     end
   end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_legacy_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_legacy_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_legacy_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,68 @@
+require 'spec_helper'
+
+if Puppet::Util::Package.versioncmp(Puppet.version, '4.4.0') >= 0
+  describe 'validate_legacy' do
+    it { is_expected.not_to eq(nil) }
+    it { is_expected.to run.with_params.and_raise_error(ArgumentError) }
+
+    describe 'when passing the type assertion and passing the previous validation' do
+      before do
+        scope.expects(:function_validate_foo).with([5]).once
+        Puppet.expects(:notice).never
+      end
+      it 'passes without notice' do
+        is_expected.to run.with_params('Integer', 'validate_foo', 5)
+      end
+    end
+
+    describe 'when passing the type assertion and failing the previous validation' do
+      before do
+        scope.expects(:function_validate_foo).with([5]).raises(Puppet::ParseError, 'foo').once
+        Puppet.expects(:notice).with(includes('Accepting previously invalid value for target type'))
+      end
+      it 'passes with a notice about newly accepted value' do
+        is_expected.to run.with_params('Integer', 'validate_foo', 5)
+      end
+    end
+
+    describe 'when failing the type assertion and passing the previous validation' do
+      before do
+        scope.expects(:function_validate_foo).with(['5']).once
+        subject.func.expects(:call_function).with('deprecation', 'validate_legacy', includes('Integer')).once
+      end
+      it 'passes with a deprecation message' do
+        is_expected.to run.with_params('Integer', 'validate_foo', '5')
+      end
+    end
+
+    describe 'when failing the type assertion and failing the previous validation' do
+      before do
+        scope.expects(:function_validate_foo).with(['5']).raises(Puppet::ParseError, 'foo').once
+        subject.func.expects(:call_function).with('fail', includes('Integer')).once
+      end
+      it 'fails with a helpful message' do
+        is_expected.to run.with_params('Integer', 'validate_foo', '5')
+      end
+    end
+
+    describe 'when passing in undef' do
+      before do
+        scope.expects(:function_validate_foo).with([:undef]).once
+        Puppet.expects(:notice).never
+      end
+      it 'works' do
+        is_expected.to run.with_params('Optional[Integer]', 'validate_foo', :undef)
+      end
+    end
+
+    describe 'when passing in multiple arguments' do
+      before do
+        scope.expects(:function_validate_foo).with([:undef, 1, 'foo']).once
+        Puppet.expects(:notice).never
+      end
+      it 'passes with a deprecation message' do
+        is_expected.to run.with_params('Optional[Integer]', 'validate_foo', :undef, 1, 'foo')
+      end
+    end
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_numeric_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_numeric_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_numeric_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_numeric' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+  
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params(3)
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_re_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_re_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_re_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_re' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params('', '')
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
@@ -18,20 +29,4 @@
 
     describe 'invalid inputs' do
-      it {
-        pending('should implement stricter type checking')
-        is_expected.to run.with_params([], '').and_raise_error(Puppet::ParseError, /is not a String/)
-      }
-      it {
-        pending('should implement stricter type checking')
-        is_expected.to run.with_params('', {}).and_raise_error(Puppet::ParseError, /is not an Array/)
-      }
-      it {
-        pending('should implement stricter type checking')
-        is_expected.to run.with_params('', '', []).and_raise_error(Puppet::ParseError, /is not a String/)
-      }
-      it {
-        pending('should implement stricter type checking')
-        is_expected.to run.with_params(nil, nil).and_raise_error(Puppet::ParseError, /is not a String/)
-      }
       it { is_expected.to run.with_params('', []).and_raise_error(Puppet::ParseError, /does not match/) }
       it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /does not match/) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_slength_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_slength_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_slength_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_slength' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params('1234567890', 10)
+  end
+  
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_string_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_string_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_string_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -2,4 +2,15 @@
 
 describe 'validate_string' do
+  after(:all) do
+    ENV.delete('STDLIB_LOG_DEPRECATIONS')
+  end
+  
+  # Checking for deprecation warning
+  it 'should display a single deprecation' do
+    ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
+    scope.expects(:warning).with(includes('This method is deprecated'))
+    is_expected.to run.with_params('', '')
+  end
+
   describe 'signature validation' do
     it { is_expected.not_to eq(nil) }
@@ -8,4 +19,5 @@
     describe 'valid inputs' do
       it { is_expected.to run.with_params('') }
+      it { is_expected.to run.with_params(nil) }
       it { is_expected.to run.with_params('one') }
       it { is_expected.to run.with_params('one', 'two') }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_at_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_at_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_at_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -31,4 +31,9 @@
   end
 
+  context 'when requesting a single item using UTF8 and double byte characters' do
+    it { is_expected.to run.with_params(['ẩ', 'β', 'с', 'ď'], 0).and_return(['ẩ']) }
+    it { is_expected.to run.with_params(['文', '字', 'の', '値'], 2).and_return(['の']) }
+  end
+
   context 'when requesting multiple items' do
     it { is_expected.to run.with_params([0, 1, 2], [1, -1]).and_raise_error(Puppet::ParseError, /Unknown format of given index/) }
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/values_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -17,3 +17,8 @@
     expect(result).to match_array(['value1', 'value2', 'value2'])
   end
+
+  it 'should run with UTF8 and double byte characters' do
+    result = subject.call([{ 'かぎ' => '使用', 'ҝĕұ' => '√ẩŀứệ', 'ҝĕұďŭрļǐçằťè' => '√ẩŀứệ' }])
+    expect(result).to match_array(['使用', '√ẩŀứệ', '√ẩŀứệ'])
+  end
 end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/zip_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/zip_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/zip_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -13,3 +13,9 @@
   it { is_expected.to run.with_params([1,2,3], [4,5,6], false).and_return([[1,4], [2,5], [3,6]]) }
   it { is_expected.to run.with_params([1,2,3], [4,5,6], true).and_return([1, 4, 2, 5, 3, 6]) }
+
+  context 'should run with UTF8 and double byte characters' do
+   it { is_expected.to run.with_params(['ầ', 'ь', 'ć'], ['đ', 'ề', 'ƒ']).and_return([['ầ','đ'], ['ь','ề'], ['ć', 'ƒ']]) }
+   it { is_expected.to run.with_params(['ペ', '含', '値'], ['ッ', '文', 'イ']).and_return([['ペ','ッ'], ['含','文'], ['値', 'イ']]) }
+  end
 end
+
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_acceptance.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_acceptance.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_acceptance.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,14 +1,14 @@
 #! /usr/bin/env ruby -S rspec
+require 'puppet'
 require 'beaker-rspec'
 require 'beaker/puppet_install_helper'
-
-UNSUPPORTED_PLATFORMS = []
+require 'beaker/module_install_helper'
 
 run_puppet_install_helper
+install_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ /pe/i
+install_module_on(hosts)
+install_module_dependencies_on(hosts)
 
 RSpec.configure do |c|
-  # Project root
-  proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
-
   # Readable test descriptions
   c.formatter = :documentation
@@ -16,20 +16,5 @@
   # Configure all nodes in nodeset
   c.before :suite do
-    if ENV['FUTURE_PARSER'] == 'yes'
-      default[:default_apply_opts] ||= {}
-      default[:default_apply_opts].merge!({:parser => 'future'})
-    end
-
-    copy_root_module_to(default, :source => proj_root, :module_name => 'stdlib')
   end
-end
-
-def is_future_parser_enabled?
-  if default[:type] == 'aio'
-    return true
-  elsif default[:default_apply_opts]
-    return default[:default_apply_opts][:parser] == 'future'
-  end
-  return false
 end
 
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_local.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_local.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/spec_helper_local.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -1,2 +1,4 @@
+# automatically load any shared examples or contexts
+Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
 
 # hack to enable all the expect syntax (like allow_any_instance_of) in rspec-puppet examples
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/support/shared_data.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/support/shared_data.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/support/shared_data.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,38 @@
+module SharedData
+  IPV4_PATTERNS = [
+    '0.0.0.0',
+    '1.2.3.4',
+    '10.10.10.10',
+    '127.0.0.1',
+    '192.88.99.0',
+    '194.232.104.150',
+    '224.0.0.0',
+    '244.24.24.24',
+    '255.255.255.255',
+    '8.8.8.8',
+    '8.8.8.8/0',
+    '8.8.8.8/16',
+    '8.8.8.8/255.255.0.0',
+    '8.8.8.8/32',
+  ]
+  IPV4_NEGATIVE_PATTERNS = [
+    '',
+    '0000',
+    '0.0.0.0.',
+    '0.0.0.0./0.0.0.0.',
+    '0.0.0.0./1',
+    '0.0.0.0.0',
+    '0.0.0.0/0.0.0.0.',
+    '0.0.0.256',
+    '0.0.0',
+    '1.2.3.4.5',
+    '1.2.3',
+    '10.010.10.10',
+    '2001:0db8:85a3:0000:0000:8a2e:0370:73342001:0db8:85a3:0000:0000:8a2e:0370:7334',
+    '4.4.4',
+    '77',
+    '9999.9999.9999.9999',
+    'affe::beef',
+    'nope',
+  ]
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/ensure_resources_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/ensure_resources_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/ensure_resources_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,22 @@
+require 'spec_helper'
+
+describe 'test::ensure_resources', type: :class do
+  let(:params) {{ resource_type: 'user', title_hash: title_param, attributes_hash: {'ensure' => 'present'} }}
+
+  describe 'given a title hash of multiple resources' do
+
+    let(:title_param) { {'dan' => { 'gid' => 'mygroup', 'uid' => '600' }, 'alex' => { 'gid' => 'mygroup', 'uid' => '700'}} }
+
+    it { is_expected.to compile }
+    it { is_expected.to contain_user('dan').with({ 'gid' => 'mygroup', 'uid' => '600', 'ensure' => 'present'}) }
+    it { is_expected.to contain_user('alex').with({ 'gid' => 'mygroup', 'uid' => '700', 'ensure' => 'present'}) }
+  end
+
+  describe 'given a title hash of a single resource' do
+
+    let(:title_param) { {'dan' => { 'gid' => 'mygroup', 'uid' => '600' }} }
+
+    it { is_expected.to compile }
+    it { is_expected.to contain_user('dan').with({ 'gid' => 'mygroup', 'uid' => '600', 'ensure' => 'present'}) }
+  end
+end
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/provider/file_line/ruby_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/provider/file_line/ruby_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/provider/file_line/ruby_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -364,4 +364,11 @@
     end
 
+    it 'should find a line to match' do
+      File.open(@tmpfile, 'w') do |fh|
+        fh.write("foo1\nfoo\nfoo2")
+      end
+      expect(@provider.exists?).to be_truthy
+    end
+
     it 'should remove one line if it matches' do
       File.open(@tmpfile, 'w') do |fh|
Index: src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/type/file_line_spec.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/type/file_line_spec.rb	(revision eb1ccd6cce07006440a5536f148b0deb27f8193b)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/spec/unit/puppet/type/file_line_spec.rb	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -3,12 +3,26 @@
 require 'tempfile'
 describe Puppet::Type.type(:file_line) do
+  let :tmp_path do
+    if Puppet::Util::Platform.windows?
+      'C:\tmp\path'
+    else
+      '/tmp/path'
+    end
+  end
+  let :my_path do
+    if Puppet::Util::Platform.windows?
+      'C:\my\path'
+    else
+      '/my/path'
+    end
+  end
   let :file_line do
-    Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'line', :path => '/tmp/path')
+    Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'line', :path => tmp_path)
   end
   it 'should accept a line and path' do
     file_line[:line] = 'my_line'
     expect(file_line[:line]).to eq('my_line')
-    file_line[:path] = '/my/path'
-    expect(file_line[:path]).to eq('/my/path')
+    file_line[:path] = my_path
+    expect(file_line[:path]).to eq(my_path)
   end
   it 'should accept a match regex' do
@@ -20,5 +34,5 @@
       Puppet::Type.type(:file_line).new(
           :name   => 'foo',
-          :path   => '/my/path',
+          :path   => my_path,
           :line   => 'foo=bar',
           :match  => '^bar=blah$'
@@ -29,12 +43,30 @@
       Puppet::Type.type(:file_line).new(
           :name   => 'foo',
-          :path   => '/my/path',
+          :path   => my_path,
           :line   => 'foo=bar',
           :match  => '^\s*foo=.*$'
       )}.not_to raise_error
   end
+  it 'should accept utf8 characters' do
+    expect {
+      Puppet::Type.type(:file_line).new(
+          :name   => 'ƒồỗ',
+          :path   => my_path,
+          :line   => 'ƒồỗ=ьåя',
+          :match  => '^ьåя=βļάħ$'
+      )}.not_to raise_error
+  end
+  it 'should accept double byte characters' do
+    expect {
+      Puppet::Type.type(:file_line).new(
+          :name   => 'フーバー',
+          :path   => my_path,
+          :line   => 'この=それ',
+          :match  => '^この=ああ$'
+      )}.not_to raise_error
+  end
   it 'should accept posix filenames' do
-    file_line[:path] = '/tmp/path'
-    expect(file_line[:path]).to eq('/tmp/path')
+    file_line[:path] = tmp_path
+    expect(file_line[:path]).to eq(tmp_path)
   end
   it 'should not accept unqualified path' do
@@ -42,8 +74,8 @@
   end
   it 'should require that a line is specified' do
-    expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => '/tmp/file') }.to raise_error(Puppet::Error, /line is a required attribute/)
+    expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => tmp_path) }.to raise_error(Puppet::Error, /line is a required attribute/)
   end
   it 'should not require that a line is specified when matching for absence' do
-    expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => '/tmp/file', :ensure => :absent, :match_for_absence => :true, :match => 'match') }.not_to raise_error
+    expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => tmp_path, :ensure => :absent, :match_for_absence => :true, :match => 'match') }.not_to raise_error
   end
   it 'should require that a file is specified' do
@@ -56,13 +88,18 @@
     expect(file_line[:replace]).to eq :true
   end
-
+  it 'should default to encoding => UTF-8' do
+    expect(file_line[:encoding]).to eq 'UTF-8'
+  end
+  it 'should accept encoding => iso-8859-1' do
+    expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => tmp_path, :ensure => :present, :encoding => 'iso-8859-1', :line => 'bar') }.not_to raise_error
+  end
   it "should autorequire the file it manages" do
     catalog = Puppet::Resource::Catalog.new
-    file = Puppet::Type.type(:file).new(:name => "/tmp/path")
+    file = Puppet::Type.type(:file).new(:name => tmp_path)
     catalog.add_resource file
     catalog.add_resource file_line
 
     relationship = file_line.autorequire.find do |rel|
-      (rel.source.to_s == "File[/tmp/path]") and (rel.target.to_s == file_line.to_s)
+      (rel.source.to_s == "File[#{tmp_path}]") and (rel.target.to_s == file_line.to_s)
     end
     expect(relationship).to be_a Puppet::Relationship
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/absolutepath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/absolutepath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/absolutepath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# A strict absolutepath type
+type Stdlib::Absolutepath = Variant[Stdlib::Windowspath, Stdlib::Unixpath]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/absolute_path.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/absolute_path.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/absolute_path.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,7 @@
+# Emulate the is_absolute_path and validate_absolute_path functions
+#
+# The first pattern is originally from is_absolute_path, which had it from 2.7.x's lib/puppet/util.rb Puppet::Util.absolute_path?
+# slash = '[\\\\/]'
+# name = '[^\\\\/]+'
+# %r!^(([A-Z]:#{slash})|(#{slash}#{slash}#{name}#{slash}#{name})|(#{slash}#{slash}\?#{slash}#{name}))!i,
+type Stdlib::Compat::Absolute_path = Variant[Pattern[/^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/], Pattern[/^\//]]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/array.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/array.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/array.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# Emulate the is_array and validate_array functions
+type Stdlib::Compat::Array = Array[Any]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/bool.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/bool.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/bool.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# Emulate the is_bool and validate_bool functions
+type Stdlib::Compat::Bool = Boolean
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/float.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/float.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/float.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,19 @@
+# Emulate the is_float function
+# The regex is what's currently used in is_float
+# To keep your development moving forward, you can also add a deprecation warning using the Integer type:
+#
+# ```class example($value) { validate_float($value,) }```
+#
+# would turn into
+#
+# ```
+# class example(Stdlib::Compat::Float $value) {
+#   validate_float($value, 10, 0)
+#   assert_type(Integer[0, 10], $value) |$expected, $actual| {
+#     warning("The 'value' parameter for the 'ntp' class has type ${actual}, but should be ${expected}.")
+#   }
+# }
+# ```
+#
+# This allows you to find all places where a consumers of your code call it with unexpected values.
+type Stdlib::Compat::Float = Variant[Float, Pattern[/^-?(?:(?:[1-9]\d*)|0)(?:\.\d+)(?:[eE]-?\d+)?$/]]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/hash.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/hash.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/hash.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# Emulate the is_hash and validate_hash functions
+type Stdlib::Compat::Hash = Hash[Any, Any]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/integer.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/integer.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/integer.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,23 @@
+# Emulate the is_integer and validate_integer functions
+# The regex is what's currently used in is_integer
+# validate_numeric also allows range checking, which cannot be mapped to the string parsing inside the function.
+# For full backwards compatibility, you will need to keep the validate_numeric call around to catch everything.
+# To keep your development moving forward, you can also add a deprecation warning using the Integer type:
+#
+# ```class example($value) { validate_integer($value, 10, 0) }```
+#
+# would turn into
+#
+# ```
+# class example(Stdlib::Compat::Integer $value) {
+#   validate_numeric($value, 10, 0)
+#   assert_type(Integer[0, 10], $value) |$expected, $actual| {
+#     warning("The 'value' parameter for the 'ntp' class has type ${actual}, but should be ${expected}.")
+#   }
+# }
+# ```
+#
+# > Note that you need to use Variant[Integer[0, 10], Float[0, 10]] if you want to match both integers and floating point numbers.
+#
+# This allows you to find all places where a consumers of your code call it with unexpected values.
+type Stdlib::Compat::Integer = Variant[Integer, Pattern[/^-?(?:(?:[1-9]\d*)|0)$/], Array[Variant[Integer, Pattern[/^-?(?:(?:[1-9]\d*)|0)$/]]]]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ip_address.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ip_address.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ip_address.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+type Stdlib::Compat::Ip_address = Variant[Stdlib::Compat::Ipv4, Stdlib::Compat::Ipv6]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv4.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv4.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv4.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# Emulate the validate_ipv4_address and is_ipv4_address functions
+type Stdlib::Compat::Ipv4 = Pattern[/^((([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))[.]){3}([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d)))(\/((([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))[.]){3}([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))|[0-9]+))?$/]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv6.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv6.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/ipv6.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+type Stdlib::Compat::Ipv6 = Pattern[/\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/numeric.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/numeric.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/numeric.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,23 @@
+# Emulate the is_numeric and validate_numeric functions
+# The regex is what's currently used in is_numeric
+# validate_numeric also allows range checking, which cannot be mapped to the string parsing inside the function.
+# For full backwards compatibility, you will need to keep the validate_numeric call around to catch everything.
+# To keep your development moving forward, you can also add a deprecation warning using the Integer type:
+#
+# ```class example($value) { validate_numeric($value, 10, 0) }```
+#
+# would turn into
+#
+# ```
+# class example(Stdlib::Compat::Numeric $value) {
+#   validate_numeric($value, 10, 0)
+#   assert_type(Integer[0, 10], $value) |$expected, $actual| {
+#     warning("The 'value' parameter for the 'ntp' class has type ${actual}, but should be ${expected}.")
+#   }
+# }
+# ```
+#
+# > Note that you need to use Variant[Integer[0, 10], Float[0, 10]] if you want to match both integers and floating point numbers.
+#
+# This allows you to find all places where a consumers of your code call it with unexpected values.
+type Stdlib::Compat::Numeric = Variant[Numeric, Pattern[/^-?(?:(?:[1-9]\d*)|0)(?:\.\d+)?(?:[eE]-?\d+)?$/], Array[Variant[Numeric, Pattern[/^-?(?:(?:[1-9]\d*)|0)(?:\.\d+)?(?:[eE]-?\d+)?$/]]]]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/re.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/re.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/re.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,3 @@
+# Emulate the validate_re function
+# validate_re(value, re) translates to Pattern[re], which is not directly mappable as a type alias, but can be specified as Pattern[re].
+# Therefore this needs to be translated directly.
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/string.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/string.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/compat/string.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# Emulate the is_string and validate_string functions
+type Stdlib::Compat::String = Optional[String]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/httpsurl.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/httpsurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/httpsurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+type Stdlib::HTTPSUrl = Pattern[/^https:\/\//]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/httpurl.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/httpurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/httpurl.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+type Stdlib::HTTPUrl = Pattern[/^https?:\/\//]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/unixpath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/unixpath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/unixpath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,2 @@
+# this regex rejects any path component that is a / or a NUL
+type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)+$/]
Index: src/puppetcode/environments/gnuboat/modules/stdlib/types/windowspath.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/stdlib/types/windowspath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
+++ src/puppetcode/environments/gnuboat/modules/stdlib/types/windowspath.pp	(revision be0859f1b3931511afdf8cbe4eb62a8743aff020)
@@ -0,0 +1,1 @@
+type Stdlib::Windowspath = Pattern[/^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/]
