Age | Commit message (Collapse) | Author |
|
|
|
use properly encoded characters
|
|
This is more severe than it sounds. These characters make puppet fail with the following message :
> Error 400 on SERVER: "\xC3" on US-ASCII
|
|
Fix capitalize docs
|
|
Capitalize lower-cases the remaining characters (due to the Ruby function having this behavior); document this, and make minor wording tweaks.
|
|
(#2183) updated str2bool readme wording
|
|
|
|
add functionality to bool2str function
|
|
|
|
Add check to ensure regex does not throw for none type.
|
|
Add a quick check to ensure puppetversion value is not nil and supporting test.
|
|
Fix load module metadata
|
|
Some modules or module versions don't have a metadata.json file, but we
might still want to use the load_module_metadata function on them. The
lack of a file can still give us important information. For example, it
might tell us that the version of the module installed is "very old"
even if we can't read the version number directly. This patch adds a
parameter to let the user specify if an empty file is acceptable. To
preserve backwards compatibility it does not change the current default
behavior, which is to raise an error if metadata.json does not exist.
|
|
`rake spec` only finds test files that end in _spec.rb, so this test
was not being run. Correct the path name so that the test runs
properly.
|
|
(MODULES-2421) improve description of file_line
|
|
This mostly needed extraction of the existing doc strings from
the type.
|
|
prevent deprecation warning about the allow_virtual parameter
|
|
|
|
Add package_provider fact
|
|
Modules 2614 improved numeric value handling on empty function
|
|
|
|
|
|
(FM-3701) Update README for is_a
|
|
|
|
fixup-PR#506 Speed improvements in facter resolution
|
|
This is to improve speed on Facter resolution of service_provider fact
that was just introduced in PR# 506. The improvements go from 280ms
resolution time approx. down to 2ms resolution time approx. by adding
requires statements.
|
|
This adds a package_provider fact for situations where we need to be
able to know the client's package provider in a simple way. Situations
such as: package { 'name': install_options => [] } As those tend to be
package provider specific options.
|
|
Add a service_provider fact
|
|
Adding update to empty function readme
|
|
|
|
Update is_a acceptance tests to only run on puppet4
|
|
|
|
Fix backwards compatibility from #511
|
|
Maintain the old behavior in the case where the optional second
parameter isn't passed. Also, adding arity is backwards incompatible since
stdlib still supports 2.7, so remove that.
|
|
(MAINT) validate_re: Clarify docs and error message
|
|
|
|
Clarify what an empty intersection looks like.
|
|
|
|
(MODULES-2561) add is_a function
|
|
[MODULES-2462] Improve parseyaml function
|
|
The data type system is very hard to understand. Many people don't
understand why
type_of([1,2,3]) == Array
will fail, but
type_of([1,2,3]) <= Array
passes. This does a simpler validation that doesn't rely on explicit
data types. Instead, use
$foo = [1,2,3]
if $foo.is_a(Array) {
notify { 'This is an array': }
}
This is based on code by Ben Ford <ben.ford@puppetlabs.com>.
* Added acceptance tests
* Added dispatch
* Improved unit tests
* Added docs to README
|
|
accept any case of boolean strings
|
|
[MAINT] Improve 'try_get_value' readme
|
|
|
|
* previously the str2bool function did not accept 'TRUE' as a bool
type. This causes the function to now accept TRUE, FALSE strings
as a boolean type in order to be converted to a proper boolean.
* This would also cause Y,N, YES, NO to be accepted as boolean types
as well.
|
|
(MAINT) fix up try_get_value acceptance test
|
|
|
|
Add a new function "try_get_value"
|
|
* Extracts a value from a deeply-nested data structure
* Returns default if a value could not be extracted
|
|
jfautley/ticket/MODULES-2478-support_root_home_fact_on_AIX
(MODULES-2478) Make root_home fact work on AIX using native lsuser command
|