Commit graph

970 commits

Author SHA1 Message Date
Mathias Klette
0d11bde507 ensure_resource: be more verbose in debug mode
helps discovering duplication issues, especially when figthing boolean vs. string arguments
2014-10-10 22:57:26 +02:00
Morgan Haskel
0c0f7e13cd Merge pull request #262 from tremble/MODULES-707
Modules 707
2014-10-09 13:33:06 -04:00
Hunter Haugen
9bbc62d12a Merge pull request #335 from jbondpdx/stdlib-readme
DOC-248 Revised and updated readme for stdlib module
2014-10-09 10:10:34 -07:00
jbondpdx
2fcc1ef189 DOC-248 Revised and updated readme for stdlib module
Reorganized and edited stdlib module readme.
2014-10-08 11:42:31 -07:00
Hunter Haugen
0cd08b377b Merge pull request #303 from bobtfish/fix_strict_variables
Fix strict_variables = true
2014-09-24 15:47:13 -07:00
Tomas Doran
032f93af1d Fix strict_variables = true 2014-09-22 14:43:27 -07:00
Mark Chappell
23bc7d51bd Re-use existing str2bool code rather than doing a copy and paste 2014-09-22 19:49:50 +02:00
Mark Chappell
e2d7f3bb89 (MODULES-707) chomp() fails because generate() no longer returns a string
We need to use

  unless value.is_a?(String) || value.is_a?(Array)

rather than

  klass = value.class
  unless [String, Array].include?(klass)

because the klass version enforces type checking which is too strict, and does
not allow us to accept objects wich have extended String (or Array).

For example, generate() function now returns Puppet::Util::Execution::ProcessOutput
which is just a very simple extension of String.  While this in it's self was
not intentional (PUP-2306) it is not unreasonable to cope with objects which
extend Strings
2014-09-22 19:49:50 +02:00
Hunter Haugen
b347cc83e2 Merge pull request #320 from JimPanic/patch-2
Update docs of validate_string to reflect bug
2014-09-17 09:44:51 -07:00
Alexander Pánek
6631934df8 Note that also future parser does not work 2014-09-16 19:03:02 +02:00
Alexander Pánek
448e66b8bb Updated docs of validate_string to reflect bug
See: https://tickets.puppetlabs.com/browse/MODULES-457
2014-09-16 17:55:26 +02:00
Ashley Penney
9e8127bb64 Merge pull request #313 from mhaskel/spec_updates
Update spec_helper for more consistency
2014-08-28 18:32:56 -04:00
Morgan Haskel
2023692fc9 Update spec_helper for more consistency 2014-08-28 18:30:39 -04:00
Ashley Penney
e6eb863a2a Merge pull request #308 from hunner/remove_cov
Remove simplecov
2014-08-06 12:43:21 -04:00
Hunter Haugen
a7c129b22d Remove simplecov
simplecov 0.9 dropped ruby 1.8 support, and stdlib is one of the oddball
modules that uses it. So we could probably just remove it and be okay.
2014-08-05 11:28:18 -07:00
Hunter Haugen
2ba0e375e2 Merge branch '4.3.x' 2014-08-05 10:55:58 -07:00
Ashley Penney
e310b1fdab Merge pull request #306 from hunner/fix_concat
(MODULES-1195) Rebase of #202
2014-07-31 15:01:20 -04:00
Spencer Krum
a6ad0af08e Introduce test for array destruction
It was discovered that the concat array modifies the arrays passed to it
as an argument as a side effect. This test will ensure that doesn't
happen again.
2014-07-31 11:23:34 -07:00
Colleen Murphy
85d5eadbab Concatenate arrays without modifying the first array 2014-07-31 11:22:18 -07:00
Hunter Haugen
c5f6c26d67 Merge pull request #300 from trlinkin/file_line_docs
(MODULES-1221) Add file_line autorequire documentation
2014-07-16 14:07:39 -07:00
Thomas Linkin
9fd13be825 (MODULES-1221) Add file_line autorequire documentation
This commit adds additional documentation to the file_line resource
explaining how it will autorequire file resources when present.
2014-07-16 11:45:36 -04:00
Ashley Penney
4c62b7a2ee Merge pull request #298 from hunner/release_4.3.1
Release 4.3.1
2014-07-14 18:56:14 -04:00
Hunter Haugen
90ac0a7742 Release 4.3.1
Summary
This supported release updates the metadata.json to work around upgrade
behavior of the PMT.

Bugfixes
- Synchronize metadata.json with PMT-generated metadata to pass
  checksums
2014-07-14 15:55:06 -07:00
Ashley Penney
251831bd92 Merge pull request #297 from hunner/fix_metadata
Correct metadata.json to match checksum
2014-07-14 18:52:13 -04:00
Hunter Haugen
c0d35cfe9e Correct metadata.json to match checksum 2014-07-14 15:51:21 -07:00
Ashley Penney
e0315bb463 Merge pull request #296 from hunner/case_aix
AIX has no facter network support
2014-07-08 16:47:28 -04:00
Hunter Haugen
07462f2c36 AIX has no facter network support
These functions take advantage of IP fact information and AIX does not
appear to support dynamic interface detection in facter.
2014-07-08 13:45:36 -07:00
Hunter Haugen
a4b30843d8 Merge pull request #295 from cmurphy/master
Synchronize .travis.yml
2014-06-30 12:08:57 -07:00
Ashley Penney
90ed35db1f Merge pull request #294 from hunner/release_4.3.0
Release 4.3.0
2014-06-27 15:35:00 -04:00
Hunter Haugen
ae82e2cb17 Release 4.3.0
Summary:
This release is the first supported release of the stdlib 4 series. It
emains backwards-compatible with the stdlib 3 series. It adds two new
unctions, one bugfix, and many testin

Features:
- New `bool2str()` function
- New `camalcase()` function

Bugfixes:
- Fix `has_interface_with()` when interfaces fact is nil
2014-06-27 12:30:27 -07:00
Colleen Murphy
4f8f7083d2 Synchronize .travis.yml 2014-06-27 10:55:25 -07:00
Colleen Murphy
b5ea0a37f0 Update .sync.yml to support new .travis.yml configs 2014-06-27 10:23:52 -07:00
Morgan Haskel
a2b0ea79a9 Merge pull request #293 from hunner/fix_chop
Gotta single quote yer typewriter buttons
2014-06-26 16:57:10 -04:00
Hunter Haugen
ec607827ad Gotta single quote yer typewriter buttons 2014-06-26 13:55:57 -07:00
Hunter Haugen
42750fe490 Merge pull request #292 from hunner/fix_rm
Need quotes for spaces in path
2014-06-26 13:18:03 -07:00
Hunter Haugen
1b893ff653 Need quotes for spaces in path 2014-06-26 13:17:07 -07:00
Hunter Haugen
a3de985307 Merge pull request #291 from hunner/no_network_win
has_ip_network doesn't work on windows either
2014-06-26 13:13:19 -07:00
Hunter Haugen
b93f71f0ce has_ip_network doesn't work on windows either 2014-06-26 13:12:39 -07:00
Ashley Penney
924d6b8dd3 Merge pull request #290 from cmurphy/master
Start synchronizing module files
2014-06-26 14:00:40 -04:00
Colleen Murphy
2fefd9c1e0 Sync files 2014-06-25 18:00:57 -07:00
Colleen Murphy
18c5231469 Add configuration file for modulesync
https://github.com/puppetlabs/modulesync
2014-06-25 16:17:54 -07:00
Travis Fields
418c0ac012 Merge pull request #289 from hunner/disable_tests
Disable windows network stuff and quote path
2014-06-25 10:41:07 -07:00
Hunter Haugen
05b79dcabb Disable windows network stuff and quote path 2014-06-25 10:16:06 -07:00
Hunter Haugen
ac21d50847 Merge pull request #288 from hunner/rotate_slash
Not enough escape velocity
2014-06-24 17:10:31 -07:00
Hunter Haugen
0cac9fd048 Not enough escape velocity 2014-06-24 15:03:58 -07:00
Hunter Haugen
977c6c5bf0 Merge pull request #287 from hunner/rotate
Fix pe facts and slashes
2014-06-24 12:03:32 -07:00
Hunter Haugen
ca35be6480 Fix pe facts and slashes 2014-06-24 11:37:34 -07:00
Ashley Penney
7a796885d5 Merge pull request #286 from hunner/33meta
stdlib 4 isn't compatible with PE 3.2
2014-06-24 13:28:32 -04:00
Hunter Haugen
def3af9cb0 stdlib 4 isn't compatible with PE 3.2 2014-06-24 10:27:25 -07:00
Morgan Haskel
d139fcc7d2 Merge pull request #284 from cyberious/has_interface_fix
Increase resilience if lookup var comes back with nil object
2014-06-24 09:11:19 -04:00