]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
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
Raymond Maika [Fri, 29 May 2015 04:27:08 +0000 (00:27 -0400)]
(MODULES-2071) Refactor file_line provider to contain logic to handle 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.
TP Honey [Thu, 28 May 2015 12:29:43 +0000 (13:29 +0100)]
Merge pull request #461 from DavidS/validate-hashes
validate_integer, validate_numeric: explicitely reject hashes in arrays
David Schmitt [Wed, 27 May 2015 19:05:01 +0000 (20:05 +0100)]
validate_integer, validate_numeric: explicitely reject hashes in arrays
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be
treated as "12" when validating values.
Hunter Haugen [Wed, 27 May 2015 15:14:19 +0000 (08:14 -0700)]
Add ability to unittest puppet 4
TP Honey [Tue, 26 May 2015 14:48:22 +0000 (15:48 +0100)]
Merge pull request #460 from DavidS/fix-fqdn_rotate-seed
fqdn_rotate: reset srand seed correctly on old ruby versions
David Schmitt [Tue, 12 May 2015 14:01:55 +0000 (15:01 +0100)]
fqdn_rotate: reset srand seed correctly on old ruby versions
Without this, the global seed is reseeded on every use
of fqdn_rotate, which is a waste. Older rubies might even use a
time-base seed which adversly impacts the quality of the RNG.
Bryan Jen [Thu, 21 May 2015 17:42:32 +0000 (10:42 -0700)]
Merge pull request #454 from elyscape/document_facts.d_cache
(FM-2130) Document new location of facts.d cache
Morgan Haskel [Thu, 21 May 2015 17:41:41 +0000 (10:41 -0700)]
Merge pull request #455 from hunner/change_type_of_test
Remove all the pops stuff
Morgan Haskel [Thu, 21 May 2015 17:20:40 +0000 (10:20 -0700)]
Merge pull request #458 from ghoneycutt/patch-1
Update CHANGELOG.md
Garrett Honeycutt [Wed, 20 May 2015 19:16:45 +0000 (15:16 -0400)]
Update CHANGELOG.md
Bryan Jen [Thu, 14 May 2015 22:08:52 +0000 (15:08 -0700)]
Merge pull request #456 from jtappa/readme-edits
DOC-1504: Readme edits
Jorie Tappa [Tue, 5 May 2015 00:23:16 +0000 (17:23 -0700)]
DOC-1504: README edits
Hunter Haugen [Tue, 12 May 2015 22:03:27 +0000 (15:03 -0700)]
Remove all the pops stuff
The rspec-puppet matchers don't allow to check the return types, but
this is a pretty rare thing to need to do anyway, so probably not worth
patching rspec-puppet
Eli Young [Mon, 11 May 2015 18:12:15 +0000 (11:12 -0700)]
(FM-2130) Document new location of facts.d cache
David Schmitt [Thu, 7 May 2015 10:03:39 +0000 (11:03 +0100)]
Merge pull request #449 from puppetlabs/modulesync_updates
sync via modulesync