summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-28Merge pull request #531 from asasfu/improvement/service_provider_factDavid Schmitt
fixup-PR#506 Speed improvements in facter resolution
2015-09-25fixup-PR#506 Speed improvements in facter resolutionAdam S
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.
2015-09-25Add package_provider factAdam S
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.
2015-09-24Merge pull request #506 from binford2k/feature/service_provider_factHunter Haugen
Add a service_provider fact
2015-09-23Merge pull request #530 from HelenCampbell/MODULES-2614David Schmitt
Adding update to empty function readme
2015-09-23Adding update to empty function readmeHelen Campbell
2015-09-21Merge pull request #528 from mhaskel/is_a_fixesBryan Jen
Update is_a acceptance tests to only run on puppet4
2015-09-21Update is_a acceptance tests to only run on puppet4Morgan Haskel
2015-09-21Merge pull request #527 from mhaskel/511_compatibilityBryan Jen
Fix backwards compatibility from #511
2015-09-21Fix backwards compatibility from #511Morgan Haskel
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.
2015-09-17Merge pull request #526 from DavidS/improve-validate_re-docsHunter Haugen
(MAINT) validate_re: Clarify docs and error message
2015-09-17(MAINT) validate_re: Clarify docs and error messageDavid Schmitt
2015-09-14Merge pull request #524 from binford2k/docs/intersection_truthinessDavid Schmitt
Clarify what an empty intersection looks like.
2015-09-14Clarify what an empty intersection looks like.Ben Ford
2015-09-14Merge pull request #523 from DavidS/modules-2516-is_aBryan Jen
(MODULES-2561) add is_a function
2015-09-14Merge pull request #511 from dmitryilyin/parseyaml_defaultBryan Jen
[MODULES-2462] Improve parseyaml function
2015-09-14(MODULES-2516) Adds an is_a() functionDavid Schmitt
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
2015-09-09Merge pull request #518 from logicminds/case_insensitiveTP Honey
accept any case of boolean strings
2015-09-08Merge pull request #519 from dmitryilyin/fetchTP Honey
[MAINT] Improve 'try_get_value' readme
2015-09-04[MAINT] Improve 'try_get_value' readmeDmitry Ilyin
2015-09-04accept any case of boolean stringsCorey Osman
* 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.
2015-09-03Release Prep 4.9.0Jonathan Tripathy
2015-09-02Merge pull request #517 from DavidS/try_get_value-acceptanceTP Honey
(MAINT) fix up try_get_value acceptance test
2015-09-02(MAINT) fix up try_get_value acceptance testDavid Schmitt
2015-09-02Merge pull request #513 from dmitryilyin/fetchDavid Schmitt
Add a new function "try_get_value"
2015-09-01Add a new function "try_get_value"Dmitry Ilyin
* Extracts a value from a deeply-nested data structure * Returns default if a value could not be extracted
2015-09-01Merge pull request #515 from ↵David Schmitt
jfautley/ticket/MODULES-2478-support_root_home_fact_on_AIX (MODULES-2478) Make root_home fact work on AIX using native lsuser command
2015-08-28(MODULES-2478) Support root_home fact on AIX through "lsuser" commandJon Fautley
Squashed, and amended test for comment lines.
2015-08-27Merge pull request #514 from DavidS/add-convert_baseTP Honey
Adds a convert_base function, which can convert numbers between bases
2015-08-27Adds a convert_base function, which can convert numbers between basesfhats
Squashed, improved docs, updated error handling and unit tests by David S.
2015-08-25[MODULES-2462] Improve parseyaml functionDmitry Ilyin
* Add default value support Second argument will be returned if yaml cannot be parsed instead of false value * Update tests
2015-08-25Merge pull request #512 from Jetroid/consistentreadmeDavid Schmitt
Consistent Readme
2015-08-25Add consistent *Type* informationJetroid
Remove trailing whitespace Two functions had not been given any *Type* information. This commit fixes that.
2015-08-24Merge pull request #510 from DavidS/base64-unit-testsMorgan Haskel
(MAINT) improve base64 unit tests
2015-08-24(MAINT) improve base64 unit testsDavid Schmitt
2015-08-24Merge pull request #507 from Jetroid/mod2456David Schmitt
(MODULES-2456) Modify union to accept more than two arrays
2015-08-24(MODULE-2456) Modify union to accept more than two arraysJetroid
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.
2015-08-19Add a service_provider factBen Ford
This returns the default provider Puppet will choose to manage services on this system by instantiating a dummy service resource type and returning the provider chosen. Co-Authored-By: Simon Fraser University <asa188@sfu.ca>
2015-08-14Merge pull request #505 from gibbsoft/dos2unixDavid Schmitt
(MODULES-2410) Add new functions dos2unix and unix2dos
2015-08-14(MODULES-2410) Add new functions dos2unix and unix2dosNigel Gibbs
2015-08-13Merge pull request #499 from jearls/2370-use-match-for-ensure-absentBryan Jen
[MODULES-2370] allow `match` parameter to influence `ensure => absent` behavior.
2015-08-12Merge pull request #503 from puppetlabs/4.8.xMorgan Haskel
Mergeback 4.8.x
2015-08-11Add puppet_version back to spec_helperHunter Haugen
2015-08-11Merge pull request #502 from hunner/fix_afterMorgan Haskel
Sometimes this exits 1
2015-08-11Sometimes this exits 1Hunter Haugen
2015-08-11Merge pull request #501 from hunner/bug_helperTP Honey
Fix extraneous end
2015-08-11Fix extraneous endHunter Haugen
2015-08-10Merge pull request #500 from hunner/prep_4.8.0Bryan Jen
Prep 4.8.0
2015-08-10Prep 4.8.0Hunter Haugen
2015-08-06allow `match` parameter to influence `ensure => absent` behavior.Johnson Earls
Split the `destroy` method of the file_type::ruby provider into two private methods: `handle_destroy_line` which is the same as the previous `destroy` method, and `handle_destroy_with_match` which will destroy any line which matches the `match` parameter, raising an error if multiple lines match and the `multiple` parameter is not `true`. This new behavior is only used if the new boolean parameter `match_for_absence` is `true` (it defaults to `false`).