]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
Dmitry Ilyin [Fri, 4 Sep 2015 16:12:21 +0000 (19:12 +0300)]
[MAINT] Improve 'try_get_value' readme
TP Honey [Wed, 2 Sep 2015 12:42:11 +0000 (13:42 +0100)]
Merge pull request #517 from DavidS/try_get_value-acceptance
(MAINT) fix up try_get_value acceptance test
David Schmitt [Wed, 2 Sep 2015 12:34:15 +0000 (13:34 +0100)]
(MAINT) fix up try_get_value acceptance test
David Schmitt [Wed, 2 Sep 2015 08:23:46 +0000 (09:23 +0100)]
Merge pull request #513 from dmitryilyin/fetch
Add a new function "try_get_value"
Dmitry Ilyin [Tue, 1 Sep 2015 18:39:16 +0000 (21:39 +0300)]
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
David Schmitt [Tue, 1 Sep 2015 07:31:31 +0000 (08:31 +0100)]
Merge pull request #515 from jfautley/ticket/MODULES-2478-support_root_home_fact_on_AIX
(MODULES-2478) Make root_home fact work on AIX using native lsuser command
Jon Fautley [Thu, 27 Aug 2015 13:53:02 +0000 (14:53 +0100)]
(MODULES-2478) Support root_home fact on AIX through "lsuser" command
Squashed, and amended test for comment lines.
TP Honey [Thu, 27 Aug 2015 09:50:29 +0000 (10:50 +0100)]
Merge pull request #514 from DavidS/add-convert_base
Adds a convert_base function, which can convert numbers between bases
fhats [Thu, 27 Aug 2015 09:40:20 +0000 (10:40 +0100)]
Adds a convert_base function, which can convert numbers between bases
Squashed, improved docs, updated error handling and unit tests by David S.
David Schmitt [Tue, 25 Aug 2015 09:51:39 +0000 (10:51 +0100)]
Merge pull request #512 from Jetroid/consistentreadme
Consistent Readme
Jetroid [Tue, 25 Aug 2015 09:35:57 +0000 (10:35 +0100)]
Add consistent *Type* information
Remove trailing whitespace
Two functions had not been given any *Type* information. This commit fixes that.
Morgan Haskel [Mon, 24 Aug 2015 20:47:24 +0000 (13:47 -0700)]
Merge pull request #510 from DavidS/base64-unit-tests
(MAINT) improve base64 unit tests
David Schmitt [Mon, 24 Aug 2015 19:12:14 +0000 (20:12 +0100)]
(MAINT) improve base64 unit tests
David Schmitt [Mon, 24 Aug 2015 13:36:20 +0000 (14:36 +0100)]
Merge pull request #507 from Jetroid/mod2456
(MODULES-2456) Modify union to accept more than two arrays
Jetroid [Mon, 24 Aug 2015 11:01:29 +0000 (12:01 +0100)]
(MODULE-2456) Modify union to accept more than two arrays
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.
David Schmitt [Fri, 14 Aug 2015 12:51:51 +0000 (13:51 +0100)]
Merge pull request #505 from gibbsoft/dos2unix
(MODULES-2410) Add new functions dos2unix and unix2dos
Nigel Gibbs [Fri, 14 Aug 2015 08:33:46 +0000 (09:33 +0100)]
(MODULES-2410) Add new functions dos2unix and unix2dos
Bryan Jen [Thu, 13 Aug 2015 17:14:13 +0000 (10:14 -0700)]
Merge pull request #499 from jearls/2370-use-match-for-ensure-absent
[MODULES-2370] allow `match` parameter to influence `ensure => absent` behavior.
Morgan Haskel [Wed, 12 Aug 2015 21:33:07 +0000 (14:33 -0700)]
Merge pull request #503 from puppetlabs/4.8.x
Mergeback 4.8.x
Hunter Haugen [Wed, 12 Aug 2015 02:52:43 +0000 (19:52 -0700)]
Add puppet_version back to spec_helper
Morgan Haskel [Tue, 11 Aug 2015 23:23:52 +0000 (16:23 -0700)]
Merge pull request #502 from hunner/fix_after
Sometimes this exits 1
Hunter Haugen [Tue, 11 Aug 2015 23:23:06 +0000 (16:23 -0700)]
Sometimes this exits 1
TP Honey [Tue, 11 Aug 2015 15:43:58 +0000 (16:43 +0100)]
Merge pull request #501 from hunner/bug_helper
Fix extraneous end
Hunter Haugen [Tue, 11 Aug 2015 15:29:48 +0000 (08:29 -0700)]
Fix extraneous end
Bryan Jen [Mon, 10 Aug 2015 23:48:57 +0000 (16:48 -0700)]
Merge pull request #500 from hunner/prep_4.8.0
Prep 4.8.0
Hunter Haugen [Mon, 10 Aug 2015 23:15:54 +0000 (16:15 -0700)]
Prep 4.8.0
Johnson Earls [Thu, 6 Aug 2015 20:00:11 +0000 (13:00 -0700)]
allow `match` parameter to influence `ensure => absent` behavior.
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`).
Bryan Jen [Thu, 6 Aug 2015 18:00:17 +0000 (11:00 -0700)]
Merge pull request #497 from domcleal/tickets/master/MODULES-2316
(MODULES-2316) Change file_type boolean parameter to symbols
Dominic Cleal [Tue, 4 Aug 2015 08:59:53 +0000 (09:59 +0100)]
(MODULES-2316) Change file_type boolean parameter to symbols
Puppet's boolean parameter type is only available in Puppet 3.3 and
higher, so change file_type's new "replace" parameter to a regular
parameter with true and false as possible values. This matches the
existing "multiple" parameter.
Hunter Haugen [Fri, 31 Jul 2015 21:12:56 +0000 (14:12 -0700)]
Merge pull request #483 from nibalizer/load_metadata_json
Add load_metadata_json function
Spencer Krum [Thu, 9 Jul 2015 17:53:56 +0000 (10:53 -0700)]
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?
Hunter Haugen [Thu, 30 Jul 2015 22:14:23 +0000 (15:14 -0700)]
Merge pull request #496 from pizzaops/master
Remove colorful language from module.
Zee Alexander [Thu, 30 Jul 2015 22:11:26 +0000 (15:11 -0700)]
Remove colorful language from module.
Bryan Jen [Thu, 30 Jul 2015 20:34:26 +0000 (13:34 -0700)]
Merge pull request #494 from CENGN/fix/master/file_line_replace
[#puppethack] Adding replace attribute to file_line
Bryan Jen [Thu, 30 Jul 2015 20:33:44 +0000 (13:33 -0700)]
Merge pull request #495 from puppetlabs/4.7.x
4.7.x
Raymond Maika [Thu, 30 Jul 2015 18:05:39 +0000 (14:05 -0400)]
(MODULES-2024) Adding replace attribute to file_line
TP Honey [Thu, 30 Jul 2015 10:12:01 +0000 (11:12 +0100)]
Merge pull request #493 from DavidS/fixup-acceptance-testing
(maint) use puppet's utility function instead of API that's not avail…
David Schmitt [Thu, 30 Jul 2015 09:46:38 +0000 (10:46 +0100)]
(maint) use puppet's utility function instead of API that's not available on all rubies
Hunter Haugen [Wed, 29 Jul 2015 17:58:41 +0000 (10:58 -0700)]
Merge pull request #492 from DavidS/fixup-acceptance-testing
Fixup acceptance testing
David Schmitt [Mon, 27 Jul 2015 08:49:04 +0000 (09:49 +0100)]
Merge pull request #491 from ekohl/style-fixes
Style fixes
Ewoud Kohl van Wijngaarden [Sat, 25 Jul 2015 11:34:31 +0000 (13:34 +0200)]
Style fixes
David Schmitt [Wed, 22 Jul 2015 16:30:39 +0000 (17:30 +0100)]
(main) clean up fqdn_rand acceptance tests to work on windows
David Schmitt [Wed, 22 Jul 2015 11:21:31 +0000 (12:21 +0100)]
(maint) Remove failing acceptance test for ensure_packages
This only duplicates what's already being tested in ensure_packages_spec.rb
but doesn't work on all our supported platforms.
David Schmitt [Wed, 22 Jul 2015 10:57:16 +0000 (11:57 +0100)]
Merge pull request #489 from gcmalloc/master
adding support for hash in the size function
gcmalloc [Tue, 21 Jul 2015 17:25:27 +0000 (19:25 +0200)]
adding support for hash in the size function
Morgan Haskel [Tue, 21 Jul 2015 21:44:50 +0000 (14:44 -0700)]
Merge pull request #490 from hunner/fix_specifier
disable pw_hash test on sles, as it only supports md5
Hunter Haugen [Tue, 21 Jul 2015 21:43:34 +0000 (14:43 -0700)]
disable pw_hash test on sles, as it only supports md5
David Schmitt [Tue, 21 Jul 2015 08:23:57 +0000 (09:23 +0100)]
Merge pull request #487 from liv3d/fix_docs_in_upcase
Fix documentation error in upcase
Hunter Haugen [Mon, 20 Jul 2015 23:28:57 +0000 (16:28 -0700)]
Merge pull request #488 from cyberious/master
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
Travis Fields [Mon, 20 Jul 2015 21:35:57 +0000 (14:35 -0700)]
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
Dan Offord [Mon, 20 Jul 2015 16:55:52 +0000 (17:55 +0100)]
Fix documentation error in upcase
The documentation example shows an incorrect response when using the
function, this PR corrects the example to agree with what the function
actually does.
David Schmitt [Wed, 15 Jul 2015 13:12:46 +0000 (14:12 +0100)]
Merge pull request #481 from tphoney/release_4.7.0
prep work for 4.7.0
tphoney [Thu, 9 Jul 2015 14:13:00 +0000 (15:13 +0100)]
prep work for 4.7.0
add new improvements
puppet4 changes for testing
David Schmitt [Tue, 14 Jul 2015 08:47:22 +0000 (09:47 +0100)]
Merge pull request #485 from ghoneycutt/patch-2
Clarify that third argument to ensure_resource() is a hash
Garrett Honeycutt [Mon, 13 Jul 2015 00:11:36 +0000 (20:11 -0400)]
Clarify that third argument to ensure_resource() is a hash
TP Honey [Fri, 10 Jul 2015 16:17:09 +0000 (17:17 +0100)]
Merge pull request #484 from mhaskel/use_puppet_install_helper
Use puppet_install_helper
Morgan Haskel [Fri, 10 Jul 2015 00:11:10 +0000 (17:11 -0700)]
Use puppet_install_helper
TP Honey [Thu, 9 Jul 2015 17:30:26 +0000 (18:30 +0100)]
Merge pull request #475 from DavidS/document-puppet4-compat
Document puppet 4 compatability in 4.6
Morgan Haskel [Thu, 9 Jul 2015 17:20:37 +0000 (10:20 -0700)]
Merge pull request #482 from DavidS/document_validate_slength_3rd_arg
Add validate_slength's optional 3rd arg to README
Hunter Haugen [Thu, 9 Jul 2015 17:20:01 +0000 (10:20 -0700)]
Merge pull request #479 from mklette/master
catch and rescue from looking up non-existent facts
Alexander Fisher [Mon, 6 Jul 2015 16:03:49 +0000 (17:03 +0100)]
Add validate_slength's optional 3rd arg to README
Mathias Klette [Wed, 24 Jun 2015 12:58:48 +0000 (14:58 +0200)]
catch and rescue from looking up non-existent facts when looking for 'kind'
facter (2.x) only provides facts without interface suffix for
* ipaddress
* netmask
'macaddress' and 'network' facts will always have the related interface
name appended. in turns lookupvar throws errors when strict_variables is
enabled.
David Schmitt [Mon, 22 Jun 2015 09:27:10 +0000 (10:27 +0100)]
Merge pull request #478 from drewfisher314/ticket/2134-add-solaris-12
Add support for Solaris 12
Drew Fisher [Fri, 19 Jun 2015 23:14:21 +0000 (17:14 -0600)]
Add support for Solaris 12
Travis Fields [Fri, 19 Jun 2015 21:48:16 +0000 (14:48 -0700)]
Merge pull request #477 from mhaskel/aio_fix
AIO uses puppet 4 so should return true for is_future_parser_enabled
Morgan Haskel [Fri, 19 Jun 2015 21:29:42 +0000 (14:29 -0700)]
AIO uses puppet 4 so should return true for is_future_parser_enabled
JT (Jonny) [Fri, 19 Jun 2015 10:13:05 +0000 (11:13 +0100)]
Merge pull request #474 from DavidS/fix-getvar-specs
(maint) getvar: update spec to match implementation
David Schmitt [Thu, 18 Jun 2015 13:49:28 +0000 (14:49 +0100)]
Document puppet 4 compatability in 4.6
David Schmitt [Fri, 12 Jun 2015 13:42:09 +0000 (14:42 +0100)]
(maint) getvar: update spec to match implementation
David Schmitt [Thu, 11 Jun 2015 17:23:29 +0000 (18:23 +0100)]
Merge pull request #470 from Yelp/getvar_future_parser
Also catch :undefined_variable as thrown by future parser
David Schmitt [Tue, 9 Jun 2015 14:49:14 +0000 (15:49 +0100)]
Merge pull request #472 from justinstoller/maint/master/set_puppet_version
(maint) update PUPPET_VERSION default to be 3.8.1
Justin Stoller [Tue, 9 Jun 2015 04:43:36 +0000 (21:43 -0700)]
(maint) update PUPPET_VERSION default to be 3.8.1
TP Honey [Fri, 5 Jun 2015 12:35:00 +0000 (13:35 +0100)]
Merge pull request #471 from puppetlabs/travisci_update
Updated travisci file to remove allow_failures on Puppet4
Tomas Doran [Fri, 5 Jun 2015 11:40:46 +0000 (12:40 +0100)]
Also catch :undefined_variable as thrown by future parser
Morgan Haskel [Thu, 4 Jun 2015 17:51:41 +0000 (10:51 -0700)]
Merge pull request #469 from hunner/fix_time
Fix time() on 1.8.7
Hunter Haugen [Thu, 4 Jun 2015 16:40:52 +0000 (09:40 -0700)]
Fix time() on 1.8.7
The time() function takes an argument of a timezone, and always returns
time in epoch format. The epoch format is the number of seconds that
have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
seconds. This means that it is universally the same regardless of
timezones.
I don't know what the timezone argument is supposed to do, and it is not
documented. So lets just make 1.8.7 work like > 1.8.7
Jonathan Tripathy [Thu, 4 Jun 2015 13:21:00 +0000 (14:21 +0100)]
Updated travisci file to remove allow_failures on Puppet4
David Schmitt [Wed, 3 Jun 2015 17:22:51 +0000 (18:22 +0100)]
Merge pull request #468 from kylog/camels-all-the-way-down
Fix spelling of camelcase
David Schmitt [Wed, 3 Jun 2015 17:19:38 +0000 (18:19 +0100)]
Merge pull request #466 from elyscape/fix/improve_fqdn_acceptance_tests
Improve fqdn_rotate/fqdn_rand_string acceptance tests
Kylo Ginsberg [Tue, 2 Jun 2015 22:32:52 +0000 (15:32 -0700)]
(doc) Fix spelling of camelcase in CHANGELOG.md
Eli Young [Mon, 1 Jun 2015 23:46:26 +0000 (16:46 -0700)]
fqdn_rand_string: Add acceptance tests for custom charsets
Eli Young [Mon, 1 Jun 2015 23:46:08 +0000 (16:46 -0700)]
fqdn_rotate: Add acceptance tests for custom seeds
TP Honey [Tue, 2 Jun 2015 11:23:39 +0000 (12:23 +0100)]
Merge pull request #467 from DavidS/document-rspec-puppet-version-reqs
Gemfile: specify minimum rspec-puppet version
David Schmitt [Tue, 2 Jun 2015 11:21:25 +0000 (12:21 +0100)]
Gemfile: specify minimum rspec-puppet version
Only 2.2 contains all the features we're currently using. Documenting
that in the Gemfile should make that clear.
David Schmitt [Tue, 2 Jun 2015 11:05:19 +0000 (12:05 +0100)]
Merge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument
fqdn_rotate: Don't use the value itself as part of the random seed
Eli Young [Mon, 1 Jun 2015 23:29:39 +0000 (16:29 -0700)]
fqdn_rotate: Add tests for custom seeds
Eli Young [Mon, 1 Jun 2015 23:09:47 +0000 (16:09 -0700)]
fqdn_rotate: Improve documentation
Eli Young [Fri, 29 May 2015 01:15:05 +0000 (18:15 -0700)]
fqdn_rotate: Don't use the value itself as part of the random seed
Previously, the random number generator was seeded with the array or
string to be rotated in addition to any values specifically provided for
seeding. This behavior is potentially insecure in that it allows an
attacker who can modify the source data to choose the post-shuffle
order.
Hunter Haugen [Mon, 1 Jun 2015 20:36:25 +0000 (13:36 -0700)]
Merge pull request #464 from DavidS/modules-1882-convert-to-rspec
(MODULES-1882) convert function tests to rspec-puppet
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Remove unused puppet_spec code
This is copied and changed code from an older version of puppet's internal
test setup code. It does not work with puppet4.
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Convert tests to use plain rspec-puppet
Tests in the new style produces the following documentation output:
abs
should not eq nil
should run abs() and raise an Puppet::ParseError
should run abs(-34) and return 34
should run abs("-34") and return 34
should run abs(34) and return 34
should run abs("34") and return 34
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
spec_helper: implement an easy way for specs to confine to puppet version
Usage:
describe 'puppet3 behaviour', :unless => RSpec.configuration.puppet_future do
describe 'puppet4 behaviour', :if => RSpec.configuration.puppet_future do
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Add the missing symlinks to get puppet 4 pickup the functions from the environmentpath
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
root all the gitignore patterns to avoid unintentional matches
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Remove duplicate rake task and enable metadata.json linting
The :validate task is already provided by
puppetlabs_spec_helper/rake_tasks and would check files twice.
The metadata.json linting is just good form.
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Workaround the broken rspec-mocks support in rspec-puppet
David Schmitt [Mon, 1 Jun 2015 11:21:58 +0000 (12:21 +0100)]
Enable bundler caching on travis
David Schmitt [Sat, 30 May 2015 13:33:27 +0000 (14:33 +0100)]
Merge pull request #465 from igalic/patch-1
simplify mac address regex
Igor Galić [Fri, 29 May 2015 18:13:21 +0000 (20:13 +0200)]
simplify mac address regex
let the computer do the counting and repetition and case
David Schmitt [Fri, 29 May 2015 09:21:41 +0000 (10:21 +0100)]
Merge pull request #463 from CENGN/fix/master/file_line_multiple_after
(MODULES-2071) Patch file_line provider to use multiple with after