summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-05Merge pull request #601 from petems/MODULES-1439-any2bool_addedBryan Jen
(MODULES-1439) Adds any2bool function
2016-05-04Merge pull request #592 from jyaworski/fix_deleteBryan Jen
Use reject instead of delete_if
2016-05-04Use reject instead of delete_ifJoseph Yaworski
2016-05-03Merge pull request #603 from puppetlabs/4.12.xBryan Jen
Mergeback 4.12.x
2016-05-02(MODULES-1439) Adds any2bool functionPeter Souter
* Basically a combination of `string2bool` and `num2bool`
2016-04-28Expose the functions of ruby's built-in Shellwords module (#580)Joris
* Add shell_escape function, shell_join function & shell_split function
2016-04-28Merge pull request #602 from hunner/unbreaklineJean B
Remove hard linebreaks
2016-04-27Remove hard linebreaksHunter Haugen
2016-04-26Merge pull request #599 from hunner/fix_deleteHelen
Undo changing delete() to delete regex matches
2016-04-25Remove todo for delete() and update specHunter Haugen
This spec should verify that substring matches are not removed in the future
2016-04-25Revert "Add support for regular expressions to delete"Hunter Haugen
This reverts commit 0d46515b57cea60d4d5f1e4d81a75a448a7a73a8. It introduced backwards-incompatible functionality.
2016-04-19Merge pull request #593 from puppetlabs/update-msyncGreg Hardy
Update to newest modulesync_configs [9ca280f]
2016-04-18Update to newest modulesync_configs [9ca280f]David Schmitt
2016-04-18Merge pull request #598 from DavidS/MODULES-3271-legacy-rubyHelen
(MODULES-3271) Ensure that is_email_address works on unsupported rubies
2016-04-18(MODULES-3271) Ensure that is_email_address works on unsupported rubiesDavid Schmitt
2016-04-15Merge pull request #596 from tphoney/4.12.0_release_prepHelen
4.12.0 release prep
2016-04-154.12.0 release preptphoney
2016-04-15Merge pull request #595 from tphoney/4.12.0_releaseHelen
master to 4.12.x
2016-04-15(FM-5000) Release prep for 4.12.0.Bryan Jen
2016-04-12Merge pull request #591 from jyaworski/delete_regexHunter Haugen
Add support for regular expressions to delete
2016-04-12Add support for regular expressions to deleteJoseph Yaworski
2016-04-11Merge pull request #590 from alext/fix_concat_with_hashHunter Haugen
(MODULES-3246) Fix concat with Hash arguments.
2016-04-11Merge pull request #583 from jyaworski/validate_email_addressTP Honey
Add validate_email_address function
2016-04-10Add validate_email_address functionJoseph Yaworski
2016-04-08(MODULES-3246) Fix concat with Hash arguments.Alex Tomlins
85d5ead Updated the concat function so that it wouldn't modify the original array. A side-effect of this change is that it now always calls `Array()` on the second argument. If thit is a Hash, this results in `to_a` being called on the hash, which converts it to an array or tuples. This is undesired. Update the behaviour so that it doesn't (indirectly) call `to_a` on anything, instead test for the type of the argument, wrapping it in an array if it's not already an array.
2016-04-07Merge pull request #585 from ↵Hunter Haugen
jearls/MODULES-2370-update-validate-to-not-require-line-when-matching-for-absence [MODULES-2370] file_line.rb: Fix `line` attribute validation
2016-04-07Merge pull request #582 from derekmceachern/bug/master/spec_test_typoHunter Haugen
MODULES-3201 - Fixed typo 'absense' to 'absence'
2016-04-07Merge pull request #589 from puppetlabs/modulesync-updateTP Honey
Multiple updates to stdlib and its testsuite
2016-04-07(maint) also catch Psych::SyntaxErrorDavid Schmitt
Psych::SyntaxError is a RuntimeException. This still needs to catch that. This was uncovered by the recent move to catch StandardError rather than the catchall Exception that was here before.
2016-04-07(maint) remove failing testDavid Schmitt
This removes the failing test special casing for puppet 4.
2016-04-07(maint) Update to current modulesync_configs [953280c]David Schmitt
This removes much of the assorted cruft that accumulated in the unmanaged files and moves the remaining necessary parts to spec_helper_local.
2016-03-29Merge pull request #586 from ffrank/dont_catch_exceptionBryan Jen
catch StandardError rather than the gratuitous Exception
2016-03-28Merge pull request #587 from bmjen/4.12.0_prepHunter Haugen
(FM-5000) Release prep for 4.12.0.
2016-03-28(FM-5000) Release prep for 4.12.0.Bryan Jen
2016-03-29catch StandardError rather than the gratuitous ExceptionFelix Frank
2016-03-28[MODULES-2370] file_line.rb: Fix `line` attribute validationJohnson Earls
`file_line` type: During validation, do not require `line` attribute if: * `ensure` is `absent`, * `match` is not empty, * and `match_for_absence` is `true`. Also update `spec` tests to reflect this.
2016-03-28Merge pull request #579 from sulaweyo/patch-2Bryan Jen
Add check if Gem is defined
2016-03-24Fixed typo 'absense' to 'absence'Derek McEachern
2016-03-23Merge pull request #581 from vicinus/masterBryan Jen
improve suffix function to support the same feature set as prefix
2016-03-22improve suffix function to support the same feature set as prefixReinhard Vicinus
2016-03-17Merge pull request #576 from yadavnikhil/masterHunter Haugen
ensure_packages.rb: Modifed to pass hiera parameters (as hash,array) as first argument
2016-03-17Add check if Gem is definedSledge Sulaweyo
On e.g. Ubuntu 12.04 LTS Gem is not there by default so i added a check to not fail in that fact if this is the case.
2016-03-16Merge pull request #578 from bmjen/fqdn-rand-fixHunter Haugen
(maint) Fixes fqdn_rand_string tests
2016-03-16(maint) Fixes fqdn_rand_string testsBryan Jen
Puppet 4.4.0 and later has changed fqdn_rand to use a higher ceiling (PUP-5646), the tests for fqdn_rand_string needed to be updated to reflect the new expected output.
2016-03-15Merge pull request #577 from EmilienM/enclose_ipv6Hunter Haugen
Add enclose_ipv6 function
2016-03-15Add ensure_resources() functionNikhil Yadav
New function "ensure_resources()" to support passing hash as parameter OR from hiera backend This new function is extension of ensure_resource() which will now support to pass multiple values as hash/array OR from hiera backend variables in title argument with additional parameters needed. It will process multiple values for a resource type from the passed argument & pass each entry (type, title, params) to ensure_resource() in required format for further processing. Now user can have duplicate resource check functionality extended to multiple entries with this new function. Use: For multiple resources using hash: 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' Call: ensure_resources('user',hiera_hash('userlist'), {'ensure' => 'present'}) ensure_packages() Modified to also support Hash type argument for packages This modification will call newly added ensure_resources() for processing Hash as second argument. The original functionality remains same for Array type arguments. Use: hiera: packagelist: ksh: ensure: latest mlocate: {} myrpm: provider: rpm source: "/tmp/myrpm-1.0.0.x86_64.rpm" install_options: --prefix: /users/home openssl: provider: rpm source: "/tmp/openssl-1.0.1e-42.el7.x86_64.rpm" Call: ensure_packages($packagelist)
2016-03-13Add enclose_ipv6 functionEmilien Macchi
Copy a function from puppetlabs/apache, created by Benedikt Bock by 55cc3b4e8f4bc859a1255cb57be2c7923005d822 . This function enclose IPv6 addresses in square brackets. It takes an array of ip addresses and encloses the ipv6 addresses with square brackets. Co-Authored-By: Benedikt Bock <benedikt_bock@web.de>
2016-02-18Merge pull request #570 from gfidente/masterHunter Haugen
Add is_ipv4_address and is_ipv6_address functions
2016-02-18Merge pull request #575 from guessi/extend_base64_function_supportTP Honey
Extend Base64() function support
2016-02-18Extend Base64() function supportguessi