]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Krzysztof Wilczynski [Mon, 25 Apr 2011 23:09:26 +0000 (00:09 +0100)]
First version. Simple empty function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 23:05:20 +0000 (00:05 +0100)]
Re-factor of the original function. Now its behaviour is either to join
with prefix or just add prefix or simply join. This depends on its use.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 23:04:10 +0000 (00:04 +0100)]
First version. Simple prefix function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 23:02:59 +0000 (00:02 +0100)]
First version. Simple join function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 23:00:58 +0000 (00:00 +0100)]
Small re-factor to fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 22:33:26 +0000 (23:33 +0100)]
Changing name of join.rb to join_with_prefix.rb to make room for
its simpler version.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 22:32:41 +0000 (23:32 +0100)]
Small re-factor of fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 02:47:31 +0000 (03:47 +0100)]
First version. Function opposite to the bool2num one. Converts
number to appropriate boolean value.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 02:46:46 +0000 (03:46 +0100)]
Minor update.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 02:19:10 +0000 (03:19 +0100)]
First version. Improvment upon bool2num function found on the Internet.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 01:47:16 +0000 (02:47 +0100)]
Added help accessible via the :doc functionality in Puppet's newfunction.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 01:44:20 +0000 (02:44 +0100)]
Updated help message.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 01:06:50 +0000 (02:06 +0100)]
Update to error reporting.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 25 Apr 2011 01:02:00 +0000 (02:02 +0100)]
Updated error check and reporting. Also we now return empty
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>
Krzysztof Wilczynski [Sun, 24 Apr 2011 19:55:35 +0000 (20:55 +0100)]
Adding more error checking ...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sun, 24 Apr 2011 00:35:49 +0000 (01:35 +0100)]
Adding ability to specifiy range as the index when selecting indices to collect.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 17:11:08 +0000 (18:11 +0100)]
Small changes. Added better error checking etc ...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 16:45:49 +0000 (17:45 +0100)]
First version. Function that allows to collect selected indices
from an array within Puppet manifest. More or less how array slicing
works in Perl ...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 15:43:11 +0000 (16:43 +0100)]
First version. Adding join to Puppet for use within the manifest files.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 01:55:08 +0000 (02:55 +0100)]
Fix. It is better to promote good practice...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 00:56:30 +0000 (01:56 +0100)]
Small changes. Mainly to formatting of the help provided.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 00:42:21 +0000 (01:42 +0100)]
We do not need cronrand.rb any more.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 00:19:43 +0000 (01:19 +0100)]
First version. A function for Puppet that allows to retrieve a fact from Facter
easily instead of resorting to awful "inline_template" use-and-abuse practices.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Sat, 23 Apr 2011 00:18:52 +0000 (01:18 +0100)]
Minor changes. Added placeholder for :doc in Puppet's newfunction to fill later.
Krzysztof Wilczynski [Wed, 23 Mar 2011 02:17:32 +0000 (02:17 +0000)]
Create destination directory on-demand i.e. when missing ...
Signed-off-by: Krzsysztof Wilczynski <krzysztof.wilczynski@linux.com>
Krzysztof Wilczynski [Mon, 14 Mar 2011 12:13:33 +0000 (13:13 +0100)]
Changing the name of the file to reflect change in the function name.
Krzysztof Wilczynski [Mon, 14 Mar 2011 00:04:08 +0000 (00:04 +0000)]
Adding README file ...
Krzysztof Wilczynski [Sun, 13 Mar 2011 23:56:44 +0000 (23:56 +0000)]
First version.
Krzysztof Wilczynski [Sun, 13 Mar 2011 23:39:43 +0000 (23:39 +0000)]
Changing the way how function description and usage was given. Now documentation is exposed properly via Puppet itself.
Krzysztof Wilczynski [Sun, 13 Mar 2011 23:37:16 +0000 (23:37 +0000)]
Changing the name of the file to reflect change in the function name.
Krzysztof Wilczynski [Sat, 12 Mar 2011 23:15:02 +0000 (23:15 +0000)]
Small re-factor.
Krzysztof Wilczynski [Sat, 12 Mar 2011 23:05:56 +0000 (23:05 +0000)]
Check for the number of arguments given.
Krzysztof Wilczynski [Fri, 11 Mar 2011 18:30:49 +0000 (18:30 +0000)]
Small re-factor.
Roman Barczyński [Fri, 4 Mar 2011 13:06:42 +0000 (14:06 +0100)]
Merge branch 'kwilczynski-master'
Roman Barczyński [Fri, 4 Mar 2011 13:04:56 +0000 (14:04 +0100)]
Merge branch 'master' of git://github.com/kwilczynski/puppet-functions into kwilczynski-master
Krzysztof Wilczynski [Thu, 3 Mar 2011 12:14:56 +0000 (13:14 +0100)]
Fix. The data structure should only be populated and/or set to be empty if and only if key is present.
Krzysztof Wilczynski [Thu, 3 Mar 2011 09:18:12 +0000 (09:18 +0000)]
Fix. Should yield empty data structure when given key cannot be found in the hash upon parsing YAML file.
Krzysztof Wilczynski [Thu, 3 Mar 2011 09:17:06 +0000 (09:17 +0000)]
Fix. Given vim mode line should end with : in order to work.
Krzysztof Wilczynski [Thu, 3 Mar 2011 09:10:36 +0000 (09:10 +0000)]
Re-factor. Removed not needed shebang for Ruby.
Roman Barczyński [Thu, 3 Mar 2011 03:08:32 +0000 (04:08 +0100)]
no need for "#! ruby", vim modeline must end with ":", and fixed not found key bug
Roman Barczyński [Thu, 3 Mar 2011 02:46:58 +0000 (03:46 +0100)]
Merge git://github.com/kwilczynski/puppet-functions
Krzysztof Wilczynski [Thu, 3 Mar 2011 02:45:11 +0000 (02:45 +0000)]
Fix to a type in the documentation.
Krzysztof Wilczynski [Thu, 3 Mar 2011 02:37:26 +0000 (02:37 +0000)]
Re-factor of the code to make it more Puppet-friendly and update of the short documentation in the comment lines.
Roman Barczyński [Thu, 3 Mar 2011 02:09:55 +0000 (03:09 +0100)]
cronrand - stateful (between puppet runs) randomizer eg. for cron minutes for equal load distribution
Roman Barczyński [Thu, 3 Mar 2011 01:48:35 +0000 (02:48 +0100)]
initial version