Age | Commit message (Collapse) | Author |
|
Add spec tests to test the new functionality:
*Case for 3 arrays.
*Case for 4 arrays.
Modify README to note new functionality.
This is for issue MODULE-2456, follow the precedent of MODULE-444.
This change allows union to be much more useful, unioning many arrays
in one line rather than in n lines. Additionally, as this is only added
functionality, and does not affect the 2 array case that all modules
currently using array are using, it should not affect any existing
modules utilizing union.
This is now useful, for example, for merging many arrays of resources
(eg: packages.) to generate just one list with no duplicates, to avoid
duplicate resource declarations.
|
|
|
|
Add load_metadata_json function
|
|
This function loads the metadata.json into a puppet variable. This enables a number of neat things such as:
* Which version of the module am I using? 2.x? 3.x?
* Which author of the module am I using? puppetlabs? example42?
|
|
|
|
|
|
|
|
|
|
Document puppet 4 compatability in 4.6
|
|
|
|
|
|
|
|
parameter multiple in function handle_create_with_after
Without this, file_line resource without the `match` parameter but with the `after` param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the `multiple` parameter in handle_create_with_after. This allows you to add a line after the `after` expression if it appears at multiple points in a file.
Updated reference to `file_line` in the README to reflect that the multiple parameter can be set when using `after` and/or `match` as the matching regex.
|
|
|
|
(MODULES-1715) Add FQDN-based random string generator
|
|
|
|
|
|
Using a ####, github will create a link. This makes it so I can link
someone directly to the function I want to show them.
|
|
Assert private
|
|
As mentioned in #270, private is a reserved keyword in the future parser
which is to be released with Puppet 4. As it stands, this function is
not useable with the future parser so it needs to renamed.
This is a breaking change.
|
|
poikilotherm/feature/master/validate_integer_and_numeric
(MODULES-560) Add new functions validate_numeric() and validate_integer().
|
|
Add support for hashes in the prefix function
|
|
Adding markdown for the range() function's 3rd argument
Adding markdown for the range() function's 3rd argument
|
|
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
|
|
Add a ceiling function to complement the floor function.
|
|
only worry if the object responds to upcase
|
|
|
|
|
|
The `type()` function will cease to work on the new parser because 'type'
is a reserved keyword. The `type3x()` function may be used to continue
similar functionality, but will be deprecated in favor of the built-in
typing system.
The `type_of()` function has been included to introspect types in the
new parser.
|
|
* (MODULES-444) Update README for concat changes
* (MODULES-1582) Update `validate_cmd` readme
* Plus some Whitespace fixes
|
|
second argument
|
|
Merge 4.5.x into master
|
|
poikilotherm/feature/master/validate_absolute_path_allow_arrays
Allow array of pathes in validate_absolute_path
|
|
Basename implementation
|
|
Based on dirname code. Includes RSpec tests and docs.
|
|
Was unclear and not accurate; rewrote the parameter, moved file_line from function list to resource section, added missing parameters for this resource.
|
|
Users didn't realize we stopped shipping stdlib module with PE. I added this information to the stdlib readme.
|
|
|
|
|
|
Users didn't realize we stopped shipping stdlib module with PE. I added this information to the stdlib readme.
|
|
|
|
Reorganized and edited stdlib module readme.
|
|
|
|
Allow concat to take non-array second parameters
|
|
Without this patch one can not specify package resource specific
parameters. All the ensure_packages() function does it makes sure
the named packages are installed. This patch allows one to pass
default as a second argument and allow greater flexibility on
packages installations.
Use case like the following are now possible :
* ensure_packages(['r10k', 'serverspec'], {'provider' => 'gem'})
* ensure_packages(['ntp'], {'require' => 'Exec[foobar]'})
|
|
Add code block for validate_slength.
|
|
Also improve and extend concat tests to lock down functionality
|
|
|
|
(DOCUMENT-21) add docs for file_line to README.markdown
|
|
Markdown was barfing due to typo
|