Commit graph

1045 commits

Author SHA1 Message Date
Travis Fields
e32afd7c7c FM-2130 Move cache file to non temp directory 2015-01-14 12:39:14 -08:00
Morgan Haskel
80f09623b6 Merge pull request #387 from hunner/remove_match_line
Remove line match validation
2014-12-16 15:07:02 -08:00
Morgan Haskel
0e84232503 Merge pull request #386 from jbondpdx/4.5.x
DOC-1095: edit file_line resource, match parameter
2014-12-16 15:06:13 -08:00
Hunter Haugen
c6c203fca8 Remove line match validation
The `match` attribute was validated to match `line`, except that in many
cases (even the example given in the docs) a user would want to match a
line entirely different from the new line.

See comments on the original commit
a06c0d8115
and ask
https://ask.puppetlabs.com/question/14366/file_line-resource-match-problems/
for further examples of confusion.
2014-12-16 15:05:31 -08:00
jbondpdx
44596dcf3c DOC-1095: edit file_line resource, match parameter
Was unclear and not accurate; rewrote the parameter, moved file_line from function list to resource section, added missing parameters for this resource.
2014-12-16 14:33:42 -08:00
Colleen Murphy
1493b212f2 Merge pull request #384 from mhaskel/doc_fixes_from_master
Doc fixes from master
2014-12-16 10:17:24 -08:00
jbondpdx
cff7645648 Added a note that stdlib no longer ships with PE 3.7+
Users didn't realize we stopped shipping stdlib module with PE. I added this information to the stdlib readme.
2014-12-16 10:15:14 -08:00
jbondpdx
c54de9498f FM-1523: Added module summary to metadata.json 2014-12-16 10:14:40 -08:00
Travis Fields
64c9840949 Merge pull request #383 from mhaskel/doc_update
Update README for updated member() functionality
2014-12-15 16:23:14 -08:00
Morgan Haskel
ec08c60749 Update README for updated member() functionality 2014-12-15 16:21:28 -08:00
Travis Fields
3f9617fef0 Merge pull request #381 from mhaskel/4.5.0-prep
4.5.0 prep
2014-12-15 16:12:34 -08:00
Morgan Haskel
145eb08b1f 4.5.0 prep 2014-12-15 16:09:24 -08:00
Morgan Haskel
46ce05e4a5 Merge pull request #376 from cmurphy/master
Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md
2014-12-09 08:23:39 -08:00
Colleen Murphy
a99971827f Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md 2014-12-08 10:33:35 -08:00
Morgan Haskel
4ebea40e08 Merge pull request #371 from cyberious/SLESSupport
FM-2020 SLES Support verified
2014-11-21 16:18:27 -05:00
Travis Fields
7148acdc9e FM-2020 SLES Support verified 2014-11-21 16:13:59 -05:00
Colleen Murphy
72ee9b5b68 Merge pull request #367 from mhaskel/future_parser_fix
Need to convert strings and fixnums to arrays
2014-11-17 12:29:23 -08:00
Morgan Haskel
c5467cc507 Need to convert strings and fixnums to arrays 2014-11-17 12:27:05 -08:00
Hunter Haugen
fb42396c75 Merge pull request #319 from Spredzy/member_array_in_array
(MODULES-1329) Allow member to look for array
2014-11-13 12:27:14 -08:00
Hunter Haugen
b6830f1ade Merge pull request #365 from dalen/range-integers
Make the range function work with integers
2014-11-13 10:16:21 -08:00
Hunter Haugen
b80c432ab9 Merge pull request #366 from mhaskel/merge_4.4.x
Merge 4.4.x
2014-11-12 11:54:41 -08:00
Yanis Guenane
c9f906f803 (MODULES-1329) Allow member function to look for array
Currently, the member function allows one to only find if a variable
is part of an array. Sometimes it is useful to find if an array is part
of a bigger array for validation purpose.
2014-11-12 14:40:34 -05:00
Erik Dalén
af0a2779cb Add range tests for numeric with step and mixed arguments 2014-11-12 16:52:36 +01:00
Erik Dalén
ce995e15d5 Make the range function work with integers
This is needed for the future parser which actually treats numbers as
numbers and strings as strings. With this patch you can use range(1,5)
instead of having to quote them like range('1','5').
2014-11-12 16:02:05 +01:00
Erik Dalén
e61f402283 (maint) Fix indentation of range function 2014-11-12 15:52:33 +01:00
Morgan Haskel
ded4d516f1 Merge pull request #363 from hunner/fix_windows
Fix exclude windows test on ensure_package
2014-11-11 16:44:26 -08:00
Travis Fields
3584485902 Fix exclude windows test on ensure_package
Update to fix ensure_resource as well
2014-11-11 16:41:53 -08:00
Morgan Haskel
202e3707cf Merge pull request #358 from hunner/fix_type
Correct type() logic
2014-11-11 10:47:00 -08:00
Hunter Haugen
970141e36a Correct type() logic
It should NOT run if the future parser is enabled
2014-11-11 10:46:01 -08:00
Morgan Haskel
0a8963fbd3 Merge pull request #357 from hunner/hasInterfaceWithLookupBug
(PUP-3597) Catch :undefined_variable when Future Parser is enabled on 3.7.x
2014-11-10 17:15:11 -08:00
Hunter Haugen
4949cfd21c Fix breaking out of .each loop
And some other small formatting fixes that don't belong in this patch.
2014-11-10 16:37:53 -08:00
Travis Fields
992ed8ffa8 Remove windows from ensure_package and ensure_resource testing 2014-11-10 16:34:05 -08:00
Travis Fields
c52e262a17 Catch :undefined_variable thrown when Future Parser is enabled with 3.7.x 2014-11-10 16:33:18 -08:00
Hunter Haugen
d8b86fdcc2 Merge branch 'master' into 4.4.x 2014-11-10 13:42:28 -08:00
Hunter Haugen
85d7eddc41 Merge pull request #356 from justinstoller/maint/master/segregate-gems
(QENG-1404) Segregate system testing gems
2014-11-10 13:28:04 -08:00
Justin Stoller
66434f9036 (QENG-1404) Segregate system testing gems
Prior to this there was generic :test group.

Unfortunately Beaker will be EOL-ing support for Ruby 1.8 (a number of
Beaker's dependencies already have and pinning to older versions is
becoming costly). Once Beaker does this it will cause failures whenever
running `bundle install`.

To avoid this failure we can segregate the system testing gems, allowing
unit, lint and development to continue with
`bundle install --without system_tests`.
2014-11-10 11:56:40 -08:00
Morgan Haskel
19f2dd359e Merge pull request #355 from hunner/release_4.4.0
Release 4.4.0
2014-11-10 11:43:00 -08:00
Hunter Haugen
cbc55084c8 Release 4.4.0
Summary
This release has an overhauled readme, new private manifest function,
and fixes many future parser bugs.

Features
- All new shiny README
- New `private()` function for making private manifests (yay!)

Bugfixes
- Code reuse in `bool2num()` and `zip()`
- Fix many functions to handle `generate()` no longer returning a string on new puppets
- `concat()` no longer modifies the first argument (whoops)
- strict variable support for `getvar()`, `member()`, `values_at`, and `has_interface_with()`
- `to_bytes()` handles PB and EB now
- Fix `tempfile` ruby requirement for `validate_augeas()` and `validate_cmd()`
- Fix `validate_cmd()` for windows
- Correct `validate_string()` docs to reflect non-handling of `undef`
- Fix `file_line` matching on older rubies
2014-11-10 11:42:03 -08:00
Morgan Haskel
850297b560 Merge pull request #354 from puppetlabs/4.3.x
4.3.x
2014-11-10 11:10:41 -08:00
Travis Fields
406e9dbda2 Merge pull request #343 from zacharyalexstern/fix_to_bytes
Added correct converstions for PB and EB.
2014-11-07 13:42:48 -08:00
Morgan Haskel
03f0ecd128 Merge pull request #350 from cyberious/modules1413
MODULES-1413 Add ability for member to take numeric objects
2014-11-04 15:29:25 -08:00
Travis Fields
f19aea5a75 MODULES-1413 Ability to for future parser to use member with FixNum types 2014-11-04 14:33:34 -08:00
Travis Fields
4bff0d2d61 Merge branch '4.3.x'
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
2014-11-04 14:17:03 -08:00
Morgan Haskel
2f3d426ba7 Merge pull request #353 from cyberious/WindowsTestIsolationFix
Fix the unless for test cases on ensure_package and ensure_resource
2014-11-04 10:48:25 -08:00
Travis Fields
26e864f224 Fix the unless for test cases on ensure_package and ensure_resource
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
2014-11-04 10:45:13 -08:00
Travis Fields
35c2dc7ca3 Merge branch '4.3.x' 2014-10-30 10:23:12 -07:00
Morgan Haskel
0db72ea777 Merge pull request #349 from cyberious/4.3.x
Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception.  Wrapping in generic Exception catch all
2014-10-30 10:21:36 -07:00
Travis Fields
6c7da72c0f Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception. Wrapping in generic Exception catch all 2014-10-29 20:03:07 -07:00
Travis Fields
12f734476c Merge remote-tracking branch 'origin/4.3.x' 2014-10-29 12:52:52 -07:00
Morgan Haskel
385f009488 Merge pull request #348 from cyberious/4.3.x
Add proper exception catching of Windows errors when CreateProcess does not succeed
2014-10-29 15:42:52 -04:00