David Schmitt
64267eb650
Merge pull request #513 from dmitryilyin/fetch
...
Add a new function "try_get_value"
2015-09-02 09:23:46 +01:00
Dmitry Ilyin
823a352f0f
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
2015-09-01 21:45:44 +03:00
David Schmitt
9352db77a6
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
2015-09-01 08:31:31 +01:00
Jon Fautley
6c2a003f21
(MODULES-2478) Support root_home fact on AIX through "lsuser" command
...
Squashed, and amended test for comment lines.
2015-08-28 15:21:13 +01:00
TP Honey
b10978703a
Merge pull request #514 from DavidS/add-convert_base
...
Adds a convert_base function, which can convert numbers between bases
2015-08-27 10:50:29 +01:00
fhats
2d4f5aa4d9
Adds a convert_base function, which can convert numbers between bases
...
Squashed, improved docs, updated error handling and unit tests by David S.
2015-08-27 10:42:13 +01:00
David Schmitt
1bed010dbb
Merge pull request #512 from Jetroid/consistentreadme
...
Consistent Readme
2015-08-25 10:51:39 +01:00
Jetroid
ba345abfb7
Add consistent *Type* information
...
Remove trailing whitespace
Two functions had not been given any *Type* information. This commit fixes that.
2015-08-25 10:35:57 +01:00
Morgan Haskel
da0e063af6
Merge pull request #510 from DavidS/base64-unit-tests
...
(MAINT) improve base64 unit tests
2015-08-24 13:47:24 -07:00
David Schmitt
aa23894dd3
(MAINT) improve base64 unit tests
2015-08-24 20:13:33 +01:00
David Schmitt
24e57b5d28
Merge pull request #507 from Jetroid/mod2456
...
(MODULES-2456) Modify union to accept more than two arrays
2015-08-24 14:36:20 +01:00
Jetroid
1d9189d860
(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.
2015-08-24 14:24:10 +01:00
David Schmitt
1d89df906e
Merge pull request #505 from gibbsoft/dos2unix
...
(MODULES-2410) Add new functions dos2unix and unix2dos
2015-08-14 13:51:51 +01:00
Nigel Gibbs
4cbe846750
(MODULES-2410) Add new functions dos2unix and unix2dos
2015-08-14 13:30:01 +01:00
Bryan Jen
e84090df1d
Merge pull request #499 from jearls/2370-use-match-for-ensure-absent
...
[MODULES-2370] allow `match` parameter to influence `ensure => absent` behavior.
2015-08-13 10:14:13 -07:00
Morgan Haskel
605fffd852
Merge pull request #503 from puppetlabs/4.8.x
...
Mergeback 4.8.x
2015-08-12 14:33:07 -07:00
Hunter Haugen
57275061ab
Add puppet_version back to spec_helper
2015-08-11 19:52:43 -07:00
Morgan Haskel
a72918f675
Merge pull request #502 from hunner/fix_after
...
Sometimes this exits 1
2015-08-11 16:23:52 -07:00
Hunter Haugen
9baca7f755
Sometimes this exits 1
2015-08-11 16:23:06 -07:00
TP Honey
cf5d4ff34b
Merge pull request #501 from hunner/bug_helper
...
Fix extraneous end
2015-08-11 16:43:58 +01:00
Hunter Haugen
0a58b9382c
Fix extraneous end
2015-08-11 08:29:48 -07:00
Bryan Jen
a56e119f18
Merge pull request #500 from hunner/prep_4.8.0
...
Prep 4.8.0
2015-08-10 16:48:57 -07:00
Hunter Haugen
dfa98b89f7
Prep 4.8.0
2015-08-10 16:30:27 -07:00
Johnson Earls
9bacf14ca2
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`).
2015-08-06 13:44:32 -07:00
Bryan Jen
061d0c29fc
Merge pull request #497 from domcleal/tickets/master/MODULES-2316
...
(MODULES-2316) Change file_type boolean parameter to symbols
2015-08-06 11:00:17 -07:00
Dominic Cleal
a7adcda803
(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.
2015-08-04 09:59:53 +01:00
Hunter Haugen
e815da5962
Merge pull request #483 from nibalizer/load_metadata_json
...
Add load_metadata_json function
2015-07-31 14:12:56 -07:00
Spencer Krum
f411ee7119
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?
2015-07-30 15:51:54 -07:00
Hunter Haugen
d1f6c5c553
Merge pull request #496 from pizzaops/master
...
Remove colorful language from module.
2015-07-30 15:14:23 -07:00
Zee Alexander
aca29129cb
Remove colorful language from module.
2015-07-30 15:11:26 -07:00
Bryan Jen
ebf73482e5
Merge pull request #494 from CENGN/fix/master/file_line_replace
...
[#puppethack] Adding replace attribute to file_line
2015-07-30 13:34:26 -07:00
Bryan Jen
41a7297cb7
Merge pull request #495 from puppetlabs/4.7.x
...
4.7.x
2015-07-30 13:33:44 -07:00
Raymond Maika
35e92645f7
(MODULES-2024) Adding replace attribute to file_line
2015-07-30 14:55:32 -04:00
TP Honey
956c329a8a
Merge pull request #493 from DavidS/fixup-acceptance-testing
...
(maint) use puppet's utility function instead of API that's not avail…
2015-07-30 11:12:01 +01:00
David Schmitt
44c4bad392
(maint) use puppet's utility function instead of API that's not available on all rubies
2015-07-30 10:46:38 +01:00
Hunter Haugen
ac0b096d49
Merge pull request #492 from DavidS/fixup-acceptance-testing
...
Fixup acceptance testing
2015-07-29 10:58:41 -07:00
David Schmitt
4d889cbcb6
Merge pull request #491 from ekohl/style-fixes
...
Style fixes
2015-07-27 09:49:04 +01:00
Ewoud Kohl van Wijngaarden
c7403a4e05
Style fixes
2015-07-25 13:34:31 +02:00
David Schmitt
a8d7563a44
(main) clean up fqdn_rand acceptance tests to work on windows
2015-07-22 17:30:39 +01:00
David Schmitt
24b1cd78db
(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.
2015-07-22 12:21:31 +01:00
David Schmitt
dca8bdba59
Merge pull request #489 from gcmalloc/master
...
adding support for hash in the size function
2015-07-22 11:57:16 +01:00
gcmalloc
5c79107863
adding support for hash in the size function
2015-07-22 12:11:52 +02:00
Morgan Haskel
f996a38d11
Merge pull request #490 from hunner/fix_specifier
...
disable pw_hash test on sles, as it only supports md5
2015-07-21 14:44:50 -07:00
Hunter Haugen
615227918a
disable pw_hash test on sles, as it only supports md5
2015-07-21 14:43:34 -07:00
David Schmitt
dde8aa095a
Merge pull request #487 from liv3d/fix_docs_in_upcase
...
Fix documentation error in upcase
2015-07-21 09:23:57 +01:00
Hunter Haugen
21feb4b1f1
Merge pull request #488 from cyberious/master
...
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
2015-07-20 16:28:57 -07:00
Travis Fields
78e8c73671
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
2015-07-20 15:51:39 -07:00
Dan Offord
939aceffad
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.
2015-07-20 18:00:09 +01:00
David Schmitt
1282649b91
Merge pull request #481 from tphoney/release_4.7.0
...
prep work for 4.7.0
2015-07-15 14:12:46 +01:00
tphoney
14709d625b
prep work for 4.7.0
...
add new improvements
puppet4 changes for testing
2015-07-15 14:06:34 +01:00