diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-06-02 12:05:19 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-06-02 12:05:19 +0100 |
commit | 07e8b396156cd330d4143a48952679400241eb71 (patch) | |
tree | c9f296def049940c2537962664292e9e8eabed3c /README.markdown | |
parent | a383705fdb133978e53503b7e01012367fac139d (diff) | |
parent | b436216fe68c11d67cc15aec83ce0f1eeb7ededf (diff) | |
download | puppet-stdlib-07e8b396156cd330d4143a48952679400241eb71.tar.gz puppet-stdlib-07e8b396156cd330d4143a48952679400241eb71.tar.bz2 |
Merge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument
fqdn_rotate: Don't use the value itself as part of the random seed
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index c140af4..8ed3d9b 100644 --- a/README.markdown +++ b/README.markdown @@ -259,7 +259,20 @@ fqdn_rand_string(10, '', 'custom seed') #### `fqdn_rotate` -Rotates an array a random number of times, based on a node's fqdn. *Type*: rvalue. +Rotates an array or string a random number of times, combining the `$fqdn` fact and an optional seed for repeatable randomness. + +*Usage:* +~~~ +fqdn_rotate(VALUE, [SEED]) +~~~ +*Examples:* +~~~ +fqdn_rotate(['a', 'b', 'c', 'd']) +fqdn_rotate('abcd') +fqdn_rotate([1, 2, 3], 'custom seed') +~~~ + +*Type*: rvalue. #### `get_module_path` |