Age | Commit message (Collapse) | Author |
|
(MODULES-2071) Patch file_line provider to use multiple with after
|
|
parameter multiple in function handle_create_with_after
Without this, file_line resource without the `match` parameter but with the `after` param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the `multiple` parameter in handle_create_with_after. This allows you to add a line after the `after` expression if it appears at multiple points in a file.
Updated reference to `file_line` in the README to reflect that the multiple parameter can be set when using `after` and/or `match` as the matching regex.
|
|
validate_integer, validate_numeric: explicitely reject hashes in arrays
|
|
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be
treated as "12" when validating values.
|
|
|
|
fqdn_rotate: reset srand seed correctly on old ruby versions
|
|
Without this, the global seed is reseeded on every use
of fqdn_rotate, which is a waste. Older rubies might even use a
time-base seed which adversly impacts the quality of the RNG.
|
|
(FM-2130) Document new location of facts.d cache
|
|
Remove all the pops stuff
|
|
Update CHANGELOG.md
|
|
|
|
DOC-1504: Readme edits
|
|
|
|
The rspec-puppet matchers don't allow to check the return types, but
this is a pretty rare thing to need to do anyway, so probably not worth
patching rspec-puppet
|
|
|
|
sync via modulesync
|
|
|
|
range(): fix TypeError(can't convert nil into Integer) when using range ...
|
|
|
|
Restore removed functionality to range()
|
|
Fix pw_hash() on JRuby < 1.7.17
|
|
|
|
This reverts commit 063c58a992c1b5441b7e7b2a2e4886531035bb25, which
actually removed non-dead code. Specifically, it removed the ability to
make calls such as `range('2..3')`, `range('2...3')`, and
`range('2-3')`.
cf. https://github.com/puppetlabs/puppetlabs-stdlib/pull/443#commitcomment-11055565
|
|
The previous change to this function broke it on JRuby before 1.7.17 by
attempting to use a variable that wasn't defined (`salt`). To fix this,
define `salt` ahead of time and use that instead of building the salt
later.
cf. https://github.com/puppetlabs/puppetlabs-stdlib/pull/443#discussion_r29718588
|
|
Prep work for new specs
|
|
|
|
Since a ParseError is always thrown for zero arguments, the if and all
dependent code can be removed.
|
|
|
|
This only roots all Facter instances into memory, while something already
creates a new Facter instance each run.
|
|
|
|
|
|
Use the more common "yes", instead of "true" to detect FUTURE_PARSER.
|
|
|
|
|
|
uses include type class declaration
|
|
previous behavior used class { 'stdlib::stages':} which isn't singleton and could cause duplication resource declaration on the stages class.
Since many community modules work by calling 'include stdlib' we should make stdlib's include of stages singleton as well.
|
|
fqdn_rand_string: fix argument error message
|
|
|
|
4.6.x
|
|
Check if file exists before loading with loadyaml. If not, return nil
|
|
Fix the 4.6.0 release date
|
|
|
|
Prep for 4.6.0
|
|
|
|
|
|
Modules-2474: Only runs enhanced salts functions test on systems that ...
|
|
support it.
|
|
Fix acceptance tests for #405
|
|
This fixes the acceptance tests by:
- Ensuring the fqdn_rand_string spec is passed undef as the second
parameter so that the seed is not used as the charset
- Ensuring the pw_hash spec is passed the key specifying the type of
hash, rather than the value that will be used to generate the
password
- Expecting puppet to report nil instead of empty string for undef
passwords
- Removing the fqdn_rand_base64 test because there is no such function
|
|
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure
Even without the gem installed always, this is helpful to avoid errors should augeas be enabled/installed due to something else.
|