<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
## Table of Contents
### Classes
*[`stdlib`](#stdlib): This module manages stdlib.
*[`stdlib::stages`](#stdlibstages): This class manages a standard set of run stages for Puppet. It is managed by
the stdlib class, and should not be declared independently.
### Resource types
*[`anchor`](#anchor): A simple resource type intended to be used as an anchor in a composite class.
*[`file_line`](#file_line): Ensures that a given line is contained within a file.
### Functions
*[`abs`](#abs): **Deprecated:** Returns the absolute value of a number
*[`any2array`](#any2array): This converts any object to an array containing that object.
*[`any2bool`](#any2bool): Converts 'anything' to a boolean.
*[`assert_private`](#assert_private): Sets the current class or definition as private.
*[`base64`](#base64): Base64 encode or decode a string based on the command and the string submitted
*[`basename`](#basename): Strips directory (and optional suffix) from a filename
*[`bool2num`](#bool2num): Converts a boolean to a number.
*[`bool2str`](#bool2str): Converts a boolean to a string using optionally supplied arguments.
*[`camelcase`](#camelcase): **Deprecated** Converts the case of a string or all strings in an array to camel case.
*[`capitalize`](#capitalize): **Deprecated** Capitalizes the first letter of a string or array of strings.
*[`ceiling`](#ceiling): **Deprecated** Returns the smallest integer greater or equal to the argument.
*[`chomp`](#chomp): **Deprecated** Removes the record separator from the end of a string or an array of strings.
*[`chop`](#chop): **Deprecated** Returns a new string with the last character removed.
*[`clamp`](#clamp): Keeps value within the range [Min, X, Max] by sort based on integer value
(parameter order doesn't matter).
*[`concat`](#concat): Appends the contents of multiple arrays into array 1.
*[`convert_base`](#convert_base): Converts a given integer or base 10 string representing an integer to a
specified base, as a string.
*[`count`](#count): Counts the number of elements in array.
*[`deep_merge`](#deep_merge): Recursively merges two or more hashes together and returns the resulting hash.
*[`defined_with_params`](#defined_with_params)
*[`delete`](#delete): Deletes all instances of a given element from an array, substring from a
string, or key from a hash.
*[`delete_at`](#delete_at): Deletes a determined indexed value from an array.
*[`delete_regex`](#delete_regex): Deletes all instances of a given element that match a regular expression
from an array or key from a hash.
*[`delete_undef_values`](#delete_undef_values): Returns a copy of input hash or array with all undefs deleted.
*[`delete_values`](#delete_values): Deletes all instances of a given value from a hash.
*[`deprecation`](#deprecation): Function to print deprecation warnings, Logs a warning once for a given key. The uniqueness key - can appear once. The msg is the message te
*[`deprecation`](#deprecation): Function to print deprecation warnings (this is the 3.X version of it).
*[`difference`](#difference): This function returns the difference between two arrays.
*[`dig`](#dig): **DEPRECATED** Retrieves a value within multiple layers of hashes and arrays via an
array of keys containing a path.
*[`dig44`](#dig44)
*[`dirname`](#dirname): Returns the dirname of a path.
*[`dos2unix`](#dos2unix): Returns the Unix version of the given string.
*[`downcase`](#downcase): **Deprecated:** Converts the case of a string or all strings in an array to lower case.
*[`empty`](#empty): **Deprecated:** Returns true if the variable is empty.
*[`enclose_ipv6`](#enclose_ipv6): Takes an array of ip addresses and encloses the ipv6 addresses with square brackets.
*[`ensure_packages`](#ensure_packages): Takes a list of packages and only installs them if they don't already exist.
*[`ensure_resource`](#ensure_resource)
*[`ensure_resources`](#ensure_resources)
*[`fact`](#fact): Digs into the facts hash using dot-notation
*[`flatten`](#flatten): This function flattens any deeply nested arrays and returns a single flat array
as a result.
*[`floor`](#floor): Returns the largest integer less or equal to the argument.
*[`fqdn_rand_string`](#fqdn_rand_string)
*[`fqdn_rotate`](#fqdn_rotate): fqdn_rotate.rb
*[`fqdn_uuid`](#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
*[`get_module_path`](#get_module_path): Returns the absolute path of the specified module for the current
environment.
*[`getparam`](#getparam)
*[`getvar`](#getvar): Lookup a variable in a given namespace.
*[`glob`](#glob): Uses same patterns as Dir#glob.
*[`grep`](#grep): This function searches through an array and returns any elements that match
the provided regular expression.
*[`has_interface_with`](#has_interface_with): Returns boolean based on kind and value.
*[`has_ip_address`](#has_ip_address): Returns true if the client has the requested IP address on some interface.
*[`has_ip_network`](#has_ip_network): Returns true if the client has an IP address within the requested network.
*[`has_key`](#has_key): **Deprecated:** Determine if a hash has a certain key value.
*[`hash`](#hash): **Deprecated:** This function converts an array into a hash.
*[`intersection`](#intersection): This function returns an array of the intersection of two.
*[`is_a`](#is_a): Boolean check to determine whether a variable is of a given data type.
This is equivalent to the `=~` type checks.
*[`is_absolute_path`](#is_absolute_path): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_absolute_path`](#is_absolute_path): **Deprecated:** Returns boolean true if the string represents an absolute path in the filesystem.
*[`is_array`](#is_array): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_array`](#is_array): **Deprecated:** Returns true if the variable passed to this function is an array.
*[`is_bool`](#is_bool): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_bool`](#is_bool): **Deprecated:** Returns true if the variable passed to this function is a boolean.
*[`is_domain_name`](#is_domain_name): **Deprecated:** Returns true if the string passed to this function is
a syntactically correct domain name.
*[`is_email_address`](#is_email_address): **Deprecated:** Returns true if the string passed to this function is a valid email address.
*[`is_float`](#is_float): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_float`](#is_float): **Deprecated:** Returns true if the variable passed to this function is a float.
*[`is_function_available`](#is_function_available): **Deprecated:** Determines whether the Puppet runtime has access to a function by that name.
*[`is_hash`](#is_hash): **Deprecated:** Returns true if the variable passed to this function is a hash.
*[`is_integer`](#is_integer): **Deprecated:** Returns true if the variable passed to this function is an Integer or
a decimal (base 10) integer in String form.
*[`is_ip_address`](#is_ip_address): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_ip_address`](#is_ip_address): **Deprecated:** Returns true if the string passed to this function is a valid IP address.
*[`is_ipv4_address`](#is_ipv4_address): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_ipv4_address`](#is_ipv4_address): **Deprecated:** Returns true if the string passed to this function is a valid IPv4 address.
*[`is_ipv6_address`](#is_ipv6_address): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_ipv6_address`](#is_ipv6_address): **Deprecated:** Returns true if the string passed to this function is a valid IPv6 address.
*[`is_mac_address`](#is_mac_address): **Deprecated:** Returns true if the string passed to this function is a valid mac address.
*[`is_numeric`](#is_numeric): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_numeric`](#is_numeric): **Deprecated:** Returns true if the given value is numeric.
*[`is_string`](#is_string): Wrapper that calls the Puppet 3.x function of the same name.
*[`is_string`](#is_string): **Deprecated:** Returns true if the variable passed to this function is a string.
*[`join`](#join): **Deprecated:** This function joins an array into a string using a separator.
*[`join_keys_to_values`](#join_keys_to_values): This function joins each key of a hash to that key's corresponding value with a
separator.
*[`keys`](#keys): **Deprecated:** Returns the keys of a hash as an array.
*[`length`](#length): **Deprecated:** A function to eventually replace the old size() function for stdlib
*[`load_module_metadata`](#load_module_metadata): This function loads the metadata of a given module.
*[`loadjson`](#loadjson): Load a JSON file containing an array, string, or hash, and return the data
in the corresponding native data type.
*[`loadyaml`](#loadyaml): Load a YAML file containing an array, string, or hash, and return the data
in the corresponding native data type.
*[`lstrip`](#lstrip): **Deprecated:** Strips leading spaces to the left of a string.
*[`max`](#max): **Deprecated:** Returns the highest value of all arguments.
*[`member`](#member): This function determines if a variable is a member of an array.
*[`merge`](#merge): Merges two or more hashes together or hashes resulting from iteration, and returns
the resulting hash.
*[`merge`](#merge): Merges two or more hashes together and returns the resulting hash.
*[`min`](#min): **Deprecated:** Returns the lowest value of all arguments.
*[`num2bool`](#num2bool): This function converts a number or a string representation of a number into a
true boolean.
*[`os_version_gte`](#os_version_gte): Checks if the OS version is at least a certain version.
*[`parsehocon`](#parsehocon): This function accepts HOCON as a string and converts it into the correct
Puppet structure
*[`parsejson`](#parsejson): This function accepts JSON as a string and converts it into the correct
Puppet structure.
*[`parseyaml`](#parseyaml): This function accepts YAML as a string and converts it into the correct
Puppet structure.
*[`pick`](#pick): This function is similar to a coalesce function in SQL in that it will return
the first value in a list of values that is not undefined or an empty string.
*[`pick_default`](#pick_default): This function will return the first value in a list of values that is not undefined or an empty string.
*[`prefix`](#prefix): This function applies a prefix to all elements in an array or a hash.
*[`private`](#private): **Deprecated:** Sets the current class or definition as private.
Calling the class or definition from outside the current module will fail.
*[`pry`](#pry): This function invokes a pry debugging session in the current scope object.
*[`pw_hash`](#pw_hash): Please note: This function is an implementation of a Ruby class and as such may not be entirely UTF8 compatible. To ensure compatibility ple
*[`range`](#range): When given range in the form of (start, stop) it will extrapolate a range as
an array.
*[`regexpescape`](#regexpescape): Regexp escape a string or array of strings.
Requires either a single string or an array as an input.
*[`reject`](#reject): This function searches through an array and rejects all elements that match
the provided regular expression.
*[`reverse`](#reverse): Reverses the order of a string or array.
*[`round`](#round): Rounds a number to the nearest integer
*[`rstrip`](#rstrip): Strips leading spaces to the right of the string.
*[`seeded_rand`](#seeded_rand): seeded_rand.rb
*[`seeded_rand_string`](#seeded_rand_string): Generates a consistent random string of specific length based on provided seed.
*[`shell_escape`](#shell_escape): Escapes a string so that it can be safely used in a Bourne shell command line.
*[`shell_join`](#shell_join): 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
*[`shell_split`](#shell_split): Splits a string into an array of tokens in the same way the Bourne shell does.
*[`shuffle`](#shuffle): @summary Randomizes the order of a string or array elements.
*[`size`](#size): Returns the number of elements in a string, an array or a hash
*[`sort`](#sort): Sorts strings and arrays lexically.
*[`sprintf_hash`](#sprintf_hash): Uses sprintf with named references.
*[`squeeze`](#squeeze): Returns a new string where runs of the same character that occur in this set are replaced by a single character.
*[`stdlib::end_with`](#stdlibend_with): Returns true if str ends with one of the prefixes given. Each of the prefixes should be a String.
*[`stdlib::ensure`](#stdlibensure): function to cast ensure parameter to resource specific value
*[`stdlib::extname`](#stdlibextname): Returns the Extension (the Portion of Filename in Path starting from the
last Period).
*[`stdlib::ip_in_range`](#stdlibip_in_range): Returns true if the ipaddress is within the given CIDRs
*[`stdlib::start_with`](#stdlibstart_with): Returns true if str starts with one of the prefixes given. Each of the prefixes should be a String.
*[`str2bool`](#str2bool): This converts a string to a boolean.
*[`str2saltedpbkdf2`](#str2saltedpbkdf2): Convert a string into a salted SHA512 PBKDF2 password hash like requred for OS X / macOS 10.8+
*[`str2saltedsha512`](#str2saltedsha512): This converts a string to a salted-SHA512 password hash (which is used for
OS X versions >= 10.7).
*[`strip`](#strip): This function removes leading and trailing whitespace from a string or from
every string inside an array.
*[`suffix`](#suffix): This function applies a suffix to all elements in an array, or to the keys
in a hash.
*[`swapcase`](#swapcase): This function will swap the existing case of a string.
*[`time`](#time): This function will return the current time since epoch as an integer.
*[`to_bytes`](#to_bytes): Converts the argument into bytes, for example 4 kB becomes 4096.
*[`to_json`](#to_json): }
*[`to_json_pretty`](#to_json_pretty): Convert data structure and output to pretty JSON
*[`to_yaml`](#to_yaml): }
*[`try_get_value`](#try_get_value)
*[`type`](#type): **DEPRECATED:** This function will cease to function on Puppet 4;
*[`type3x`](#type3x): **DEPRECATED:** This function will be removed when Puppet 3 support is dropped; please migrate to the new parser's typing system.
*[`type_of`](#type_of): Returns the type of the passed value.
*[`union`](#union): This function returns a union of two or more arrays.
*[`unique`](#unique): This function will remove duplicates from strings and arrays.
*[`unix2dos`](#unix2dos): Returns the DOS version of the given string.
*[`upcase`](#upcase): Converts a string or an array of strings to uppercase.
*[`uriescape`](#uriescape): Urlencodes a string or array of strings.
Requires either a single string or an array as an input.
*[`validate_absolute_path`](#validate_absolute_path): Validate the string represents an absolute path in the filesystem.
*[`validate_absolute_path`](#validate_absolute_path): Validate the string represents an absolute path in the filesystem. This function works
for windows and unix style paths.
*[`validate_array`](#validate_array): Validate the passed value represents an array.
*[`validate_array`](#validate_array): Validate that all passed values are array data structures. Abort catalog
compilation if any value fails this check.
*[`validate_augeas`](#validate_augeas): Perform validation of a string using an Augeas lens
*[`validate_bool`](#validate_bool): Validate the passed value represents a boolean.
*[`validate_bool`](#validate_bool): Validate that all passed values are either true or false. Abort catalog
compilation if any value fails this check.
*[`validate_cmd`](#validate_cmd): Perform validation of a string with an external command.
*[`validate_domain_name`](#validate_domain_name): Validate that all values passed are syntactically correct domain names.
Fail compilation if any value fails this check.
*[`validate_email_address`](#validate_email_address): Validate that all values passed are valid email addresses.
Fail compilation if any value fails this check.
*[`validate_hash`](#validate_hash): Validate the passed value represents a hash.
*[`validate_hash`](#validate_hash): Validate that all passed values are hash data structures. Abort catalog
compilation if any value fails this check.
*[`validate_integer`](#validate_integer): Validate the passed value represents an integer.
*[`validate_integer`](#validate_integer): Validate that the first argument is an integer (or an array of integers). Abort catalog compilation if any of the checks fail.
*[`validate_ip_address`](#validate_ip_address): Validate the passed value represents an ip_address.
*[`validate_ip_address`](#validate_ip_address): Validate that all values passed are valid IP addresses,
regardless they are IPv4 or IPv6
Fail compilation if any value fails this check.
*[`validate_ipv4_address`](#validate_ipv4_address): Validate the passed value represents an ipv4_address.
*[`validate_ipv4_address`](#validate_ipv4_address): Validate that all values passed are valid IPv4 addresses.
Fail compilation if any value fails this check.
*[`validate_ipv6_address`](#validate_ipv6_address): Validate the passed value represents an ipv6_address.
*[`validate_ipv6_address`](#validate_ipv6_address): Validate that all values passed are valid IPv6 addresses.
Fail compilation if any value fails this check.
*[`validate_legacy`](#validate_legacy): Validate a value against both the target_type (new) and the previous_validation function (old).
*[`validate_numeric`](#validate_numeric): Validate the passed value represents a numeric value.
*[`validate_numeric`](#validate_numeric): Validate that the first argument is a numeric value (or an array of numeric values). Abort catalog compilation if any of the checks fail.
*[`validate_re`](#validate_re): Perform validation of a string against one or more regular
expressions.
*[`validate_re`](#validate_re): Perform simple validation of a string against one or more regular
expressions.
*[`validate_slength`](#validate_slength): Validate that a passed string has length less/equal with the passed value
*[`validate_slength`](#validate_slength): Validate that the first argument is a string (or an array of strings), and less/equal to than the length of the second argument.
An optional third parameter can be given the minimum length. It fails if the first argument is not a string or array of strings,
and if arg 2 and arg 3 are not convertable to a number.
*[`validate_string`](#validate_string): Validate that all passed values are string data structures.
*[`validate_string`](#validate_string): Validate that all passed values are string data structures
*[`validate_x509_rsa_key_pair`](#validate_x509_rsa_key_pair): Validates a PEM-formatted X.509 certificate and RSA private key using
OpenSSL. Verifies that the certficate's signature was created from the
supplied key.
*[`values`](#values): When given a hash this function will return the values of that hash.
*[`values_at`](#values_at): Finds value inside an array based on location.
*[`zip`](#zip): Takes one element from first array and merges corresponding elements from second array.
### Data types
*[`Stdlib::Absolutepath`](#stdlibabsolutepath): A strict absolutepath type
*[`Stdlib::Base32`](#stdlibbase32): Type to match base32 String
*[`Stdlib::Base64`](#stdlibbase64): Type to match base64 String
*[`Stdlib::Compat::Absolute_path`](#stdlibcompatabsolute_path): Emulate the is_absolute_path and validate_absolute_path functions The first pattern is originally from is_absolute_path, which had it from 2
*[`Stdlib::Compat::Array`](#stdlibcompatarray): Emulate the is_array and validate_array functions
*[`Stdlib::Compat::Bool`](#stdlibcompatbool): Emulate the is_bool and validate_bool functions
*[`Stdlib::Compat::Float`](#stdlibcompatfloat): 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 depr
*[`Stdlib::Compat::Hash`](#stdlibcompathash): Emulate the is_hash and validate_hash functions
*[`Stdlib::Compat::Integer`](#stdlibcompatinteger): Emulate the is_integer and validate_integer functions The regex is what's currently used in is_integer validate_numeric also allows range che
*[`Stdlib::Compat::Ipv4`](#stdlibcompatipv4): Emulate the validate_ipv4_address and is_ipv4_address functions
*[`Stdlib::Compat::Ipv6`](#stdlibcompatipv6)
*[`Stdlib::Compat::Numeric`](#stdlibcompatnumeric): Emulate the is_numeric and validate_numeric functions The regex is what's currently used in is_numeric validate_numeric also allows range che
*[`Stdlib::Compat::String`](#stdlibcompatstring): Emulate the is_string and validate_string functions
*[`Stdlib::Unixpath`](#stdlibunixpath): this regex rejects any path component that does not start with "/" or is NUL
*[`Stdlib::Windowspath`](#stdlibwindowspath)
*[`Stdlib::Yes_no`](#stdlibyes_no)
## Classes
### <a name="stdlib"></a>`stdlib`
Most of stdlib's features are automatically loaded by Puppet, but this class should be
declared in order to use the standardized run stages.
Declares all other classes in the stdlib module. Currently, this consists
of stdlib::stages.
### <a name="stdlibstages"></a>`stdlib::stages`
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
#### Examples
#####
```puppet
nodedefault{
include::stdlib
class{java:stage=>'runtime'}
}
```
## Resource types
### <a name="anchor"></a>`anchor`
> Note: this has been replaced by core puppet `contain()` method. Please see https://puppet.com/docs/puppet/latest/lang_containment.html for more information.
In Puppet 2.6, when a class declares another class, the resources in the
interior class are not contained by the exterior class. This interacts badly
with the pattern of composing complex modules from smaller classes, as it
makes it impossible for end users to specify order relationships between the
exterior class and other modules.
The anchor type lets you work around this. By sandwiching any interior
classes between two no-op resources that _are_ contained by the exterior
class, you can ensure that all resources in the module are contained.
```
class ntp {
# These classes will have the correct order relationship with each
# other. However, without anchors, they won't have any order
# relationship to Class['ntp'].
class { 'ntp::package': }
-> class { 'ntp::config': }
-> class { 'ntp::service': }
# These two resources "anchor" the composed classes within the ntp
# class.
anchor { 'ntp::begin': } -> Class['ntp::package']
Class['ntp::service'] -> anchor { 'ntp::end': }
}
```
This allows the end user of the ntp module to establish require and before
relationships with Class['ntp']:
```
class { 'ntp': } -> class { 'mcollective': }
class { 'mcollective': } -> class { 'ntp': }
```
#### Parameters
The following parameters are available in the `anchor` type.
*[`name`](#name)
##### <a name="name"></a>`name`
namevar
The name of the anchor resource.
### <a name="file_line"></a>`file_line`
The implementation matches the full line, including whitespace at the
beginning and end. If the line is not contained in the given file, Puppet
will append the line to the end of the file to ensure the desired state.
Multiple resources may be declared to manage multiple lines in the same file.
* Ensure 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 will ensure 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 will look for a line beginning with export
followed by HTTP_PROXY and replace it with the value in line.
* Examples With `ensure => absent`:
This type has two behaviors when `ensure => absent` is set.
One possibility is to set `match => ...` and `match_for_absence => true`,
as in the following example:
```
file_line { 'bashrc_proxy':
ensure => absent,
path => '/etc/bashrc',
match => '^export\ HTTP_PROXY\=',
match_for_absence => true,
}
```
In this code example match will look 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.
Note that the `line => ...` parameter would be accepted BUT IGNORED in
the above example.
The second way of using `ensure => absent` is to specify a `line => ...`,
and no match:
```
file_line { 'bashrc_proxy':
ensure => absent,
path => '/etc/bashrc',
line => 'export HTTP_PROXY=http://squid.puppetlabs.vm:3128',
}
```
> *Note:*
When ensuring lines are absent this way, the default behavior
this time is to always remove all lines matching, and this behavior
can't be disabled.
* 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.
#### Properties
The following properties are available in the `file_line` type.
##### `ensure`
Valid values: `present`, `absent`
Manage the state of this type.
Default value: `present`
##### `line`
The line to be appended to the file or used to replace matches found by the match attribute.
#### Parameters
The following parameters are available in the `file_line` type.
Returns: `Any` validate that the first argument is a string (or an array of strings), and less/equal to than the length of the second argument. Fail compilation if any of the checks fail.
# Boolean check to determine whether a variable is of a given data type.
# This is equivalent to the `=~` type checks.
#
# @example Example Usage:
# # check a data type
# 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 documentation for "The Puppet Type System" for more information about types.
# See the `assert_type()` function for flexible ways to assert the type of a value.
#
Puppet::Functions.create_function(:is_a)do
# @param value
# The value to be checked
#
# @param type
# The expected type
#
# @return [Boolean]
# Return's `true` or `false`.
dispatch:is_ado
param'Any',:value
param'Type',:type
end
defis_a(value,type)# rubocop:disable Naming/PredicateName : Used in to many other places to rename at this time, attempting to refactor caused Rubocop to crash.
# See puppet's lib/puppet/pops/evaluator/evaluator_impl.rb eval_MatchExpression
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.')