summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-26First version. Simple unique function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple shuffle function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple reverse function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple include function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple count function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple empty function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Re-factor of the original function. Now its behaviour is either to joinKrzysztof Wilczynski
with prefix or just add prefix or simply join. This depends on its use. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple prefix function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple join function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Small re-factor to fact function.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Changing name of join.rb to join_with_prefix.rb to make room forKrzysztof Wilczynski
its simpler version. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Small re-factor of fact function.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25First version. Function opposite to the bool2num one. ConvertsKrzysztof Wilczynski
number to appropriate boolean value. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Minor update.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25First version. Improvment upon bool2num function found on the Internet.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Added help accessible via the :doc functionality in Puppet's newfunction.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Updated help message.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Update to error reporting.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Updated error check and reporting. Also we now return emptyKrzysztof Wilczynski
string value i.e. "" instead of raising an exception when a particular fact is not present. We also make use of strinterp() explicitly to evaluate arguments passed to the function. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-24Adding more error checking ...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-24Adding ability to specifiy range as the index when selecting indices to collect.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Small changes. Added better error checking etc ...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. Function that allows to collect selected indicesKrzysztof Wilczynski
from an array within Puppet manifest. More or less how array slicing works in Perl ... Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. Adding join to Puppet for use within the manifest files.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Fix. It is better to promote good practice...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Small changes. Mainly to formatting of the help provided.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23We do not need cronrand.rb any more.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. A function for Puppet that allows to retrieve a fact from FacterKrzysztof Wilczynski
easily instead of resorting to awful "inline_template" use-and-abuse practices. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Minor changes. Added placeholder for :doc in Puppet's newfunction to fill later.Krzysztof Wilczynski
2011-03-23Create destination directory on-demand i.e. when missing ...Krzysztof Wilczynski
Signed-off-by: Krzsysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-03-14Changing the name of the file to reflect change in the function name.Krzysztof Wilczynski
2011-03-14Adding README file ...Krzysztof Wilczynski
2011-03-13First version.Krzysztof Wilczynski
2011-03-13Changing the way how function description and usage was given. Now ↵Krzysztof Wilczynski
documentation is exposed properly via Puppet itself.
2011-03-13Changing the name of the file to reflect change in the function name.Krzysztof Wilczynski
2011-03-12Small re-factor.Krzysztof Wilczynski
2011-03-12Check for the number of arguments given.Krzysztof Wilczynski
2011-03-11Small re-factor.Krzysztof Wilczynski
2011-03-04Merge branch 'kwilczynski-master'Roman Barczyński
2011-03-04Merge branch 'master' of git://github.com/kwilczynski/puppet-functions into ↵Roman Barczyński
kwilczynski-master
2011-03-03Fix. The data structure should only be populated and/or set to be empty if ↵Krzysztof Wilczynski
and only if key is present.
2011-03-03Fix. Should yield empty data structure when given key cannot be found in the ↵Krzysztof Wilczynski
hash upon parsing YAML file.
2011-03-03Fix. Given vim mode line should end with : in order to work.Krzysztof Wilczynski
2011-03-03Re-factor. Removed not needed shebang for Ruby.Krzysztof Wilczynski
2011-03-03no need for "#! ruby", vim modeline must end with ":", and fixed not found ↵Roman Barczyński
key bug
2011-03-03Merge git://github.com/kwilczynski/puppet-functionsRoman Barczyński
2011-03-03Fix to a type in the documentation.Krzysztof Wilczynski
2011-03-03Re-factor of the code to make it more Puppet-friendly and update of the ↵Krzysztof Wilczynski
short documentation in the comment lines.
2011-03-03cronrand - stateful (between puppet runs) randomizer eg. for cron minutes ↵Roman Barczyński
for equal load distribution
2011-03-03initial versionRoman Barczyński