Commit graph

1382 commits

Author SHA1 Message Date
tphoney
33b79f3497 minor tweak to 4.11.0 adding debian 8 to metadata 2016-01-07 10:54:48 +00:00
tphoney
00973036b2 4.11.0 prep 2015-12-30 13:45:05 +00:00
Bryan Jen
0073c6d8de Merge pull request #553 from logicminds/absolute_path
adds new parser called is_absolute_path
2015-12-21 17:41:55 -07:00
TP Honey
1c6ae4793f Merge pull request #561 from DavidS/fix-package_provider
Allow package_provider fact to resolve on PE 3.x
2015-12-21 16:54:20 +00:00
David Schmitt
35b5d6bcc1 Allow package_provider fact to resolve on PE 3.x
PE 3.x emits a puppetversion fact in the format "3.x.x (Puppet Enterprise 3.x.x)". This fact causes an error when invoked on PE 3.x: Could not retrieve fact='package_provider', resolution='<anonymous>': Malformed version number string 3.8.1 (Puppet Enterprise 3.8.1

This fix has been tested on PE 3.8.2 and should work for PE 3.3, 3.7, and 3.8.

Original-fix-by: Alex Harden <aharden@gmail.com>
2015-12-18 17:38:04 +00:00
TP Honey
8ea26c4c45 Merge pull request #559 from DavidS/fm-3802-fix-ensure_resource-test
(FM-3802) make ensure_resource test of packages
2015-12-17 13:59:52 +00:00
David Schmitt
02965b89e5 (FM-3802) make ensure_resource test of packages
This ensures that the test passes independently of changes to rubygems.
2015-12-17 13:50:15 +00:00
Corey Osman
1da820e61e refactors the validate_absolute_path to utilize the is_absolute_path 2015-12-15 23:24:17 -08:00
Corey Osman
1b048ff9d6 adds new parser called is_absolute_path
* is_absolute_path returns boolean true if the given path
    is absolute, returns false otherwise.
  * works for windows and unix
2015-12-15 23:24:17 -08:00
Jesse Lovelace
d2ae00cd5f Merge pull request #558 from puppetlabs/4.10.x
4.10.x mergeback
2015-12-15 14:53:01 -06:00
Bryan Jen
0b4822be3d Merge pull request #557 from jbondpdx/4.10.x
edits to README
2015-12-14 15:06:08 -07:00
jbondpdx
8fcefcfdb1 more carriage returns 2015-12-14 13:35:23 -08:00
jbondpdx
802e3adf16 more carriage returns, no 2015-12-14 11:57:01 -08:00
jbondpdx
d00bccc96f removing mid-line carriage returns 2015-12-14 11:50:51 -08:00
jbondpdx
4abc6e6e3b edits to README 2015-12-14 11:19:53 -08:00
Bryan Jen
9a1d8be10d Merge pull request #556 from HelenCampbell/4.10.0_prep
Changelog and versionbump for 4.10.0
2015-12-11 13:26:46 -07:00
Helen Campbell
964e24a637 Changelog and versionbump for 4.10.0 2015-12-11 20:08:25 +00:00
Bryan Jen
93600e45b0 Merge pull request #554 from kjetilho/ticket/2886-seeded_rand
(#2886) seeded_rand: new function
2015-12-10 11:54:10 -07:00
TP Honey
7a745deec6 Merge pull request #555 from puppetlabs/4.9.x
4.9.x Mergeback
2015-12-08 15:47:14 +00:00
Kjetil Torgrim Homme
8aecd63378 (#2886) seeded_rand: new function
seeded_rand is needed for repeatable randomness across nodes in a cluster
2015-12-08 14:59:12 +01:00
Bryan Jen
88a9a314c3 Merge pull request #546 from jdevesa/validate_ip
Add validator for any IP address
2015-11-30 11:10:57 -07:00
Jaume Devesa
fe23e01a4b Add validator for any IP address
Provide a validator for IP addresses, regardless they are IPv4 or IPv6,
and its documentation.
2015-11-30 17:34:00 +01:00
Bryan Jen
f684fb817c Merge pull request #550 from tphoney/release_4.9.1
4.9.1 release prep
2015-11-24 18:06:43 -07:00
tphoney
01c42d5212 4.9.1 release prep 2015-11-24 15:33:02 +00:00
David Schmitt
06b2cfbf73 Merge pull request #551 from mattbostock/fix_ipv4_doc
Fix reference to validate_bool in IP4 function
2015-11-24 10:41:30 +00:00
Matt Bostock
7b068781a5 Fix reference to validate_bool in IP4 function
The documentation in `validate_ipv4_address` references `validate_bool`,
but I believe this should read `validate_ipv4_address` instead, which
makes more sense.
2015-11-23 23:45:55 +00:00
Hunter Haugen
ef0c13b1af Merge pull request #548 from bmjen/ruby187
Fix Gemfile to work with ruby 1.8.7
2015-11-20 12:44:27 -08:00
Bryan Jen
c43924682a Fix Gemfile to work with ruby 1.8.7 2015-11-20 12:14:30 -07:00
Bryan Jen
0d2020001d Merge pull request #543 from ghoneycutt/patch-2
Use absolute class name in example
2015-11-20 09:09:52 -07:00
Bryan Jen
13e307b2c6 Merge pull request #547 from reidmv/fm_3773
(FM-3773) Fix root_home fact on AIX 5.x
2015-11-20 09:07:56 -07:00
Reid Vandewiele
13e5d467c9 (FM-3773) Fix root_home fact on AIX 5.x
The -C (capital C) flag to lsuser is incorrect. It should be -c
(lowercase).

this commit updates the aix root_home fact to use `lsuser -c`, rather
than `lsuser -C`.
2015-11-19 15:44:52 -08:00
David Schmitt
61333cfc48 Merge pull request #544 from HelenCampbell/readmeaddition
pick_default addition to readme
2015-11-09 15:17:01 +00:00
Helen Campbell
99db982741 pick_default addition to readme 2015-11-09 15:14:34 +00:00
Garrett Honeycutt
dc9b81d87e Use absolute class name in example 2015-11-06 12:19:21 -05:00
Helen
5d8a5ac631 Merge pull request #542 from greg0ire/patch-1
use properly encoded characters
2015-11-06 16:45:29 +00:00
Grégoire Paris
7fdc312348 use properly encoded characters
This is more severe than it sounds. These characters make puppet fail with the following message : 

> Error 400 on SERVER: "\xC3" on US-ASCII
2015-11-03 17:04:10 +01:00
David Schmitt
45ec648cdf Merge pull request #541 from mattflaschen/patch-1
Fix capitalize docs
2015-10-28 10:15:08 +00:00
Matt Flaschen
1421aa4a87 Fix capitalize docs
Capitalize lower-cases the remaining characters (due to the Ruby function having this behavior); document this, and make minor wording tweaks.
2015-10-27 18:09:18 -04:00
David Schmitt
143d4aa7be Merge pull request #540 from marrero984/update_str2bool_readme
(#2183) updated str2bool readme wording
2015-10-23 09:51:56 +01:00
marrero984
2c3c6fde98 (#2183) updated str2bool readme wording 2015-10-22 14:02:13 -07:00
David Schmitt
2db7440c67 Merge pull request #538 from mmckinst/bool2str_enhance
add functionality to bool2str function
2015-10-16 09:31:01 +01:00
Mark McKinstry
6de1a6e062 add functionality to bool2str to return strings of your choice for a boolean 2015-10-15 22:22:10 -04:00
Hunter Haugen
39126a7bc8 Merge pull request #539 from mentat/MODULES-2696
Add check to ensure regex does not throw for none type.
2015-10-15 10:23:02 -07:00
Jesse Lovelace
6aa7f2db99 Add check to ensure regex does not throw for none type.
Add a quick check to ensure puppetversion value is not nil and supporting test.
2015-10-15 11:27:03 -05:00
David Schmitt
57a8485223 Merge pull request #537 from cmurphy/fix_load_module_metadata
Fix load module metadata
2015-10-15 09:44:12 +01:00
Colleen Murphy
25410c4598 Let load_module_metadata succeed on empty file
Some modules or module versions don't have a metadata.json file, but we
might still want to use the load_module_metadata function on them. The
lack of a file can still give us important information. For example, it
might tell us that the version of the module installed is "very old"
even if we can't read the version number directly. This patch adds a
parameter to let the user specify if an empty file is acceptable. To
preserve backwards compatibility it does not change the current default
behavior, which is to raise an error if metadata.json does not exist.
2015-10-14 16:16:01 -07:00
Colleen Murphy
0f8df10084 Rename load_module_metadata test path
`rake spec` only finds test files that end in _spec.rb, so this test
was not being run. Correct the path name so that the test runs
properly.
2015-10-14 15:59:09 -07:00
TP Honey
5b3c623394 Merge pull request #536 from DavidS/improve-file_line-docs
(MODULES-2421) improve description of file_line
2015-10-14 12:46:19 +01:00
David Schmitt
ad173f2d05 (MODULES-2421) improve description of file_line
This mostly needed extraction of the existing doc strings from
the type.
2015-10-13 15:03:26 +01:00
David Schmitt
4e62223801 Merge pull request #535 from martinpfeifer/package_provider_fact
prevent deprecation warning about the allow_virtual parameter
2015-10-13 10:18:59 +01:00