Varac [Fri, 13 Oct 2017 12:22:08 +0000 (14:22 +0200)]
Merge remote-tracking branch 'origin/master' into leap_master
TP Honey [Mon, 2 Oct 2017 09:27:40 +0000 (10:27 +0100)]
Merge pull request #820 from alexharv074/maint_clarify_docs
(maint) Clarify docs and add new tests
Alex Harvey [Fri, 29 Sep 2017 06:14:37 +0000 (16:14 +1000)]
(maint) Clarify docs and add new tests
Based on a Stack Overflow question, it was noted that the documentation
for `file_line` isn't complete and the underlying behaviour somewhat
confusing.
https://stackoverflow.com/questions/
46468922/how-to-change-the-contents-of-a-file-by-using-puppet/
46473458
In this patch I add additional unit tests and better examples and
complete documentation.
Paula McMaw [Tue, 26 Sep 2017 09:20:16 +0000 (10:20 +0100)]
Merge pull request #811 from kofrezo/master
Allow root as valid UNIX path
Paula McMaw [Mon, 25 Sep 2017 10:28:05 +0000 (11:28 +0100)]
Merge pull request #818 from tphoney/remove_defunct_test
removing duplicate test absolute_path test
tphoney [Mon, 25 Sep 2017 09:59:58 +0000 (10:59 +0100)]
removing duplicate test absolute_path test
TP Honey [Mon, 25 Sep 2017 09:16:57 +0000 (10:16 +0100)]
Merge pull request #817 from puppetlabs/msync_18sep17_892c4cf
(maint) modulesync 892c4cf
TP Honey [Mon, 25 Sep 2017 08:55:20 +0000 (09:55 +0100)]
Merge pull request #777 from alexjfisher/fix_test_filenames
Fix filenames of two function spec tests
mutante [Mon, 25 Sep 2017 08:38:42 +0000 (01:38 -0700)]
fix quoting style in validate_legacy example (#816)
I used the example code from this README file but i got downvotes from CI / jenkins / puppet-lint because it doesn't conform to Puppet style guides to use double quotes here. It produces "double quoted string containing no variables" warnings.
I wanted to fix the example locally but it was pointed out to me we should fix it upstream stdlib instead.
Daniel Kröger [Thu, 31 Aug 2017 12:18:04 +0000 (14:18 +0200)]
Allow root as valid UNIX path
Since the purpose of this validation type is to check if the given parameter is a valid UNIX path it should also cover the root path "slash" since it might be possible that it is specified as a target directory.
Hailee Kenney [Mon, 18 Sep 2017 21:57:28 +0000 (14:57 -0700)]
(maint) modulesync 892c4cf
Hailee Kenney [Tue, 12 Sep 2017 19:36:27 +0000 (20:36 +0100)]
Merge pull request #815 from puppetlabs/release
version 4.20.0 mergeback
transifex-bot [Fri, 8 Sep 2017 10:03:52 +0000 (20:03 +1000)]
Updating translations for readmes/README_ja_JP.md
transifex-bot [Tue, 5 Sep 2017 20:07:00 +0000 (06:07 +1000)]
Updating translations for readmes/README_ja_JP.md
TP Honey [Tue, 5 Sep 2017 20:06:51 +0000 (21:06 +0100)]
Merge pull request #814 from eputnam/release
(maint) re-send push action to transifex
Eric Putnam [Tue, 5 Sep 2017 18:00:48 +0000 (11:00 -0700)]
(maint) re-send push action to transifex
I rebased release on to master, so changes in master to the readme were not interpretted as changes on release in the payload sent to transifex. This commit should mark the README as modified in Transifex and hopefully they will be able to see the changes, e.g. to_json, to_yaml docs.
Helen [Fri, 1 Sep 2017 16:51:15 +0000 (17:51 +0100)]
Merge pull request #812 from eputnam/release_prep
(MODULES-5508) release prep for 4.20.0
Eric Putnam [Fri, 1 Sep 2017 05:34:57 +0000 (22:34 -0700)]
(MODULES-5508) release prep for 4.20.0
transifex-bot [Mon, 28 Aug 2017 10:05:15 +0000 (20:05 +1000)]
Updating translations for readmes/README_ja_JP.md
Hunter Haugen [Thu, 31 Aug 2017 23:59:39 +0000 (16:59 -0700)]
Merge pull request #810 from eputnam/pw_hash_fix
(MODULES-5546) add check for pw_hash
Hunter Haugen [Wed, 30 Aug 2017 20:56:14 +0000 (13:56 -0700)]
Merge pull request #809 from WhatsARanjit/to_json_yaml
Added to_json, to_json_pretty, and to_yaml functions
Eric Putnam [Mon, 28 Aug 2017 16:34:27 +0000 (09:34 -0700)]
(MODULES-5546) add check for pw_hash
Older versions of Puppet end up choking on the sensitive data type check in the pw_hash function added in
42d4ea7af9197f77a3062727eb166c719ca6296a. this adds a check for the Sensitive class and then the type of the arg, so that if the class has not been declared, it will just move on.
WhatsARanjit [Fri, 25 Aug 2017 01:11:35 +0000 (01:11 +0000)]
Added to_json function with tests and README
Bryan Jen [Mon, 21 Aug 2017 18:43:50 +0000 (11:43 -0700)]
Merge pull request #808 from puppetlabs/release
release 4.19.0 mergeback
Hunter Haugen [Fri, 18 Aug 2017 19:02:57 +0000 (12:02 -0700)]
Merge pull request #807 from tphoney/4.19.0_prep
4.19.0 prep
tphoney [Fri, 18 Aug 2017 12:44:27 +0000 (13:44 +0100)]
MODULES-5298 4.19.0 release prep
TP Honey [Fri, 18 Aug 2017 09:47:44 +0000 (10:47 +0100)]
Merge pull request #806 from pmcmaw/rm_ubuntu
(MODULES-5501) - Remove unsupported Ubuntu
Paula McMaw [Thu, 17 Aug 2017 13:53:25 +0000 (14:53 +0100)]
(MODULES-5501) - Remove unsupported Ubuntu
Removing older version of Ubuntu that are not supported by the module.
Paula McMaw [Fri, 11 Aug 2017 09:58:42 +0000 (10:58 +0100)]
Merge pull request #805 from puppetlabs/release
Release mergeback 4.18.0
TP Honey [Fri, 11 Aug 2017 08:56:53 +0000 (09:56 +0100)]
Merge branch 'master' into release
Paula McMaw [Thu, 10 Aug 2017 16:40:23 +0000 (17:40 +0100)]
Merge pull request #804 from eputnam/release_prep
(MODULES-5436) release prep for 4.18.0
Eric Putnam [Thu, 10 Aug 2017 16:16:00 +0000 (09:16 -0700)]
(MODULES-5436) release prep for 4.18.0
This isn't actually another release, we decided to do 4.18.0 instead of 4.17.2
Paula McMaw [Thu, 10 Aug 2017 12:37:42 +0000 (13:37 +0100)]
Merge pull request #803 from tphoney/amend_puppet_dependency
MODULES-5440 fix upper bound for puppet
tphoney [Thu, 10 Aug 2017 11:42:40 +0000 (12:42 +0100)]
MODULES-5440 fix upper bound for puppet
Hailee Kenney [Wed, 9 Aug 2017 21:53:13 +0000 (14:53 -0700)]
Merge pull request #802 from eputnam/release_prep
(MODULES-5436) release prep for 4.17.2
Eric Putnam [Wed, 9 Aug 2017 18:35:03 +0000 (11:35 -0700)]
(MODULES-5436) release prep for 4.17.2
Eric Putnam [Wed, 9 Aug 2017 18:13:51 +0000 (11:13 -0700)]
(maint) adjust puppet version requirement
Hunter Haugen [Wed, 9 Aug 2017 18:16:58 +0000 (11:16 -0700)]
Merge pull request #801 from eputnam/revert_compat
(maint) revert puppet version requirement
Eric Putnam [Wed, 9 Aug 2017 18:13:51 +0000 (11:13 -0700)]
(maint) revert puppet version requirement
puppet version requirement lower bound was moved to 4.7.0 without a major bump. this returns the lower bound to 2.7 but also pushes the upper bound to include puppet 5.
Paula McMaw [Wed, 2 Aug 2017 13:49:28 +0000 (14:49 +0100)]
Merge pull request #800 from tphoney/MODULES-5382
MODULES-5382 Add documentation for email functions
tphoney [Wed, 2 Aug 2017 11:42:16 +0000 (12:42 +0100)]
MODULES-5382 Add documentation for email functions
transifex-bot [Wed, 2 Aug 2017 09:52:26 +0000 (19:52 +1000)]
Updating translations for locales/ja/puppetlabs-stdlib.po
TP Honey [Mon, 31 Jul 2017 15:23:11 +0000 (16:23 +0100)]
Merge pull request #753 from frapex/master
Add validate_domain_name function
TP Honey [Fri, 28 Jul 2017 11:03:14 +0000 (12:03 +0100)]
Merge pull request #798 from eputnam/round_func
(maint) move/rewrite round() as ruby function
Paula McMaw [Fri, 28 Jul 2017 10:46:01 +0000 (11:46 +0100)]
Merge pull request #799 from puppetlabs/maint-modsync-
915cde70e20
(maint) modulesync
915cde70e20
Glenn Sarti [Thu, 27 Jul 2017 22:19:18 +0000 (15:19 -0700)]
(maint) modulesync
915cde70e20
Eric Putnam [Thu, 27 Jul 2017 16:24:52 +0000 (09:24 -0700)]
(maint) move/rewrite round() as ruby function
Eric Putnam [Wed, 26 Jul 2017 23:39:11 +0000 (16:39 -0700)]
Merge pull request #796 from bastelfreak/mac
add type for MAC address
Tim Meusel [Wed, 26 Jul 2017 23:08:31 +0000 (01:08 +0200)]
add documentation
Eric Putnam [Wed, 26 Jul 2017 18:51:10 +0000 (11:51 -0700)]
Merge pull request #717 from ripclawffb/filelineoption
Add new file_line option append_on_no_match
Hunter Haugen [Fri, 21 Jul 2017 21:46:19 +0000 (14:46 -0700)]
Merge pull request #797 from reidmv/fact_function
Update README for fact() function
Reid Vandewiele [Fri, 21 Jul 2017 19:16:36 +0000 (12:16 -0700)]
Update README for fact() function
Hunter Haugen [Fri, 21 Jul 2017 18:29:45 +0000 (11:29 -0700)]
Merge pull request #787 from reidmv/fact_function
(FACT-932) Add new function, fact()
Hunter Haugen [Thu, 20 Jul 2017 19:41:32 +0000 (12:41 -0700)]
Merge pull request #791 from eputnam/MODULES-4908
(MODULES-4908) adds support for sensitive data type to pw_hash
Eric Putnam [Tue, 18 Jul 2017 22:16:34 +0000 (15:16 -0700)]
Merge pull request #748 from npwalker/add_round_function
Add a round function to complement ceiling and floor
Nick Walker [Tue, 28 Mar 2017 20:16:26 +0000 (13:16 -0700)]
Add a round function to complement ceiling and floor
asif.shaikh [Thu, 2 Feb 2017 04:14:27 +0000 (20:14 -0800)]
Add new file_line option append_on_no_match
Eric Putnam [Sat, 8 Jul 2017 00:30:17 +0000 (17:30 -0700)]
(MODULES-4908) adds support for sensitive data type to pw_hash
Also includes a small fix to integer_spec so tests pass.
Tim Meusel [Sat, 15 Jul 2017 09:21:08 +0000 (11:21 +0200)]
add type for MAC address
TP Honey [Fri, 14 Jul 2017 12:35:34 +0000 (13:35 +0100)]
Merge pull request #794 from tkishel/MODULES-5003-file_line_does_not_change_multiple_lines_when_one_matches
(MODULES-5003) file_line does not change multiple lines when one matches
Paula McMaw [Fri, 14 Jul 2017 10:37:32 +0000 (11:37 +0100)]
Merge pull request #793 from tphoney/FM-6239
(FM-6239) rewrite of test following std patterns
tphoney [Fri, 14 Jul 2017 09:14:04 +0000 (10:14 +0100)]
FM-6239 clean up for puppet 5.tests/deprecation
tkishel [Thu, 13 Jul 2017 22:30:54 +0000 (15:30 -0700)]
(MODULES-5003) file_line_does_not_change_multiple_lines_when_one_matches
The exists? method is called to determine the need to call the create and
destroy methods. When the ensure, match, and multiple attributes are defined,
the exists? method needs to return false unless all the lines that match the
match attribute equal the line attribute.
The first commit is minimal, and implements this change.
The second commit normalizes the code, which I needed for comprehension.
tkishel [Thu, 13 Jul 2017 22:16:04 +0000 (15:16 -0700)]
(MODULES-5003) file_line_does_not_change_multiple_lines_when_one_matches
The exists? method is called to determine the need to call the create and
destroy methods. When the ensure, match, and multiple attributes are defined,
the exists? method needs to return false unless all the lines that match the
match attribute equal the line attribute.
The first commit is minimal, and implements this change.
The second commit normalizes the code, which I needed for comprehension.
tphoney [Thu, 13 Jul 2017 15:12:08 +0000 (16:12 +0100)]
(FM-6239) rewrite of test following std patterns
TP Honey [Thu, 13 Jul 2017 16:37:47 +0000 (17:37 +0100)]
Merge pull request #790 from puppetlabs/msync_modules5187
(MODULES-5187) mysnc puppet 5 and ruby 2.4
Eric Putnam [Tue, 11 Jul 2017 22:43:37 +0000 (15:43 -0700)]
(MODULES-5187) fix spec tests for puppet 5 changes
Alexander Fisher [Sun, 14 May 2017 13:16:28 +0000 (14:16 +0100)]
Fix filenames of two function spec tests
The tests weren't being run. Total tests increase from 2742 to 2769.
Also fix 'when using a class extending String' test.
It had been failing with...
```
RuntimeError:
can't modify frozen AlsoString
```
Frank de Jong [Sat, 8 Jul 2017 07:43:40 +0000 (09:43 +0200)]
Add validate_domain_name function
Eric Putnam [Thu, 6 Jul 2017 21:43:15 +0000 (14:43 -0700)]
(MODULES-5187) mysnc puppet 5 and ruby 2.4
TP Honey [Fri, 7 Jul 2017 17:00:08 +0000 (18:00 +0100)]
Merge pull request #716 from EmersonPrado/MODULES-4377
(Modules 4377) Causes ensure_packages to accept concurrent declarations with ensure => 'present' and 'installed'
Eric Putnam [Fri, 7 Jul 2017 16:38:53 +0000 (09:38 -0700)]
Merge pull request #788 from tphoney/MODULES-5003
(MODULES-5003) file_line fix all broken lines
TP Honey [Fri, 7 Jul 2017 16:16:46 +0000 (17:16 +0100)]
Merge pull request #756 from hunner/newline_integers
(maint) Stdlib::Compat::Integer accepts numbers with newlines apparently
TP Honey [Fri, 7 Jul 2017 16:10:56 +0000 (17:10 +0100)]
Merge pull request #786 from reidmv/MODULES-5113
(MODULES-5113) Make line support Sensitive
Helen [Fri, 7 Jul 2017 15:11:44 +0000 (16:11 +0100)]
Merge pull request #789 from tphoney/MODULES-5186
(MODULES-5186) - do not run file_line unit tests on windows.
tphoney [Fri, 7 Jul 2017 14:28:52 +0000 (15:28 +0100)]
(MODULES-5186) dont run this test on windows
tphoney [Thu, 6 Jul 2017 11:02:58 +0000 (12:02 +0100)]
(MODULES-5186) move test to correct location
tphoney [Thu, 6 Jul 2017 09:58:02 +0000 (10:58 +0100)]
(MODULES-5186) - removing whitespace from EOL
Reid Vandewiele [Mon, 3 Jul 2017 18:33:15 +0000 (11:33 -0700)]
Revert "Allow use of fact() on other hashes"
This reverts commit
409a974095a3f5b637e091494b5d14b451c5de78.
After thinking about this, use case, and function naming, I think it's
probably best for now to keep things simple and let `fact()` be
single-purpose for looking up facts with no potentially confusing
extensions. The only use case where the name makes sense is where it's
being used on the `$facts` hash, and I think we'd rather in that
circumstance promote the raw use of `fact()`.
tphoney [Mon, 3 Jul 2017 16:08:09 +0000 (17:08 +0100)]
(MODULES-5003) file_line fix all broken lines
TP Honey [Sat, 1 Jul 2017 09:07:51 +0000 (10:07 +0100)]
Merge pull request #783 from davewongillies/fix_changelog_headers
Fix headers in CHANGELOG.md so that headers render correctly
Reid Vandewiele [Fri, 30 Jun 2017 21:01:41 +0000 (14:01 -0700)]
(FACT-932) Allow use of fact() on other hashes
Because sometimes people want to use an alternative data set, but treat
it like it's a set of facts.
Reid Vandewiele [Fri, 7 Apr 2017 22:13:59 +0000 (15:13 -0700)]
(FACT-932) Add new function, fact()
The fact() function allows dot-notation reference to facts. It is an
alternative to using $facts directly with array-indexing. Array-indexing
is often onerous to use since it doesn't align with how structured facts
are accessed elsewhere in the ecosystem and if any element in a
multi-step path doesn't exist, array indexing can cause a compilation
failure.
Example usage:
fact('os.family')
Reid Vandewiele [Wed, 28 Jun 2017 20:37:55 +0000 (13:37 -0700)]
(MODULES-5113) Make line support Sensitive
Do this by making it a property. The idea is to get rid of the warning
that appears when a Sensitive value is passed to the line attribute.
Glenn Sarti [Tue, 27 Jun 2017 02:53:21 +0000 (19:53 -0700)]
Merge pull request #784 from hunner/bump_metadata
(MODULES-5144) Prep for puppet 5
Hunter Haugen [Mon, 26 Jun 2017 21:25:51 +0000 (14:25 -0700)]
(MODULES-5144) Prep for puppet 5
David Gillies [Fri, 16 Jun 2017 21:40:46 +0000 (14:40 -0700)]
Fix headers in CHANGELOG.md so that headers render correctly
Paula McMaw [Fri, 16 Jun 2017 11:23:31 +0000 (12:23 +0100)]
Merge pull request #782 from puppetlabs/release
4.17.1 Release Mergeback
Paula McMaw [Thu, 15 Jun 2017 10:20:05 +0000 (11:20 +0100)]
Merge pull request #781 from HelenCampbell/rpreppo
Release prep for 4.17.1
Helen Campbell [Thu, 15 Jun 2017 09:51:37 +0000 (10:51 +0100)]
Release prep for 4.17.1
Helen [Wed, 14 Jun 2017 09:57:28 +0000 (10:57 +0100)]
Merge pull request #780 from thallgren/issue/modules-5095/workaround-pup-7650
(MODULES-5095) Workaround for PUP-7650
Thomas Hallgren [Wed, 14 Jun 2017 08:34:13 +0000 (10:34 +0200)]
(MODULES-5095) Workaround for PUP-7650
This commit adds a simple workaround for the problem described in
PUP-7650. The workaround is harmless and can remain in place regardless
of if the fix for PUP-7650 is in place or not.
Eric Putnam [Tue, 30 May 2017 21:14:28 +0000 (14:14 -0700)]
Merge pull request #778 from marsmensch/master
MODULES-4821 puppetlabs-stdlib: Update the version compatibility to >= 4.7.0 < 5.0.0
Eric Putnam [Wed, 24 May 2017 22:07:31 +0000 (15:07 -0700)]
Merge pull request #779 from jbondpdx/master
(FM-6197) formatting fixes for file_line resource
jbondpdx [Wed, 24 May 2017 21:35:25 +0000 (14:35 -0700)]
(FM-6197) formatting fixes for file_line resource
Florian Maier [Tue, 23 May 2017 15:29:18 +0000 (17:29 +0200)]
MODULES-4821 puppetlabs-stdlib: Update the version compatibility to >= 4.7.0 < 5.0.0
Paula McMaw [Wed, 10 May 2017 10:00:48 +0000 (11:00 +0100)]
Merge pull request #776 from puppetlabs/release
Merge back 4.17.0
Hunter Haugen [Fri, 28 Apr 2017 20:47:47 +0000 (13:47 -0700)]
add tests
Alex Dacre [Wed, 26 Apr 2017 11:47:29 +0000 (12:47 +0100)]
Fix issue where the following causes obscure catalog compilation errors:
```
file { '/tmp/somefile':
ensure => 'file',
}
File['/tmp/somefile'] -> Package <| |>
ensure_packages($somearray)
```
If $somearray is undefined or one of the elements contains an empty
string, an error like the following is thrown:
Could not find resource 'Package[]' for relationship from
'File[/tmp/somefile]' on node $::fqdn
tphoney [Mon, 8 May 2017 10:08:59 +0000 (11:08 +0100)]
(MODULES-4706) release prep 4.17.0