Commit graph

743 commits

Author SHA1 Message Date
Jeff McCune
46533ae428 Update CHANGELOG for 0.1.3 release 2011-05-25 13:29:27 -07:00
Jeff McCune
5f65682dd2 Merge branch 'feature/master/7657_validate_re'
* feature/master/7657_validate_re:
  (#7657) Add basic validate_re function
2011-05-25 12:39:58 -07:00
Jeff McCune
d381a5b74f (#7657) Add basic validate_re function
While developing Puppet Modules with class parameters, data from the
user should be validated as per the Style Guide.  Puppet should fail
early and hard in the situation of invalid data being passed into the
module.

This function provides a more concise method to the alternative of using
if statements in the Puppet manifests.
2011-05-25 12:38:15 -07:00
Jeff McCune
e757816a95 Add DS_Store to gitignore 2011-05-25 09:36:08 -07:00
Jeff McCune
a78111222e Update changelog for version 0.1.2
Also add release process information.
2011-05-24 11:49:57 -07:00
Jeff McCune
ea972e379d Add changelog to track releases
Following the development process, as new releases of this module are
cut the Changelog will be updated.
2011-05-24 11:27:41 -07:00
Jeff McCune
6f8b78cc67 Add standard set of run stages.
Many modules I'm working on need a standard but
relatively granular location in the catalog.  For example,
any module that configures the packaging system should
run "early"

Add the following stages which have inter-dependencies
in the top to bottom order listed:

 * setup
 * deploy
 * runtime
 * setup_infra
 * deploy_infra
 * main
 * setup_app
 * deploy_app
2011-05-24 11:25:51 -07:00
Jeff McCune
6964d13b26 Update README with target versions
Also add the list of things this module will
likely contain.
2011-05-24 11:23:16 -07:00
Jeff McCune
6e9d0465bc Initial commit 2011-05-24 11:06:30 -07:00
Ken Barber
5c42025cab Rename to puppetlabs-functions. 2011-05-16 21:40:01 +01:00
Ken Barber
f71c3bd9e7 Added disclaimer and basic installation guide to README.markdown file. 2011-05-05 11:00:05 +02:00
Ken Barber
aafce9c99b Moved more functions into lib/puppet/parser/functions/ 2011-04-30 16:00:49 +02:00
Ken Barber
09abea2d47 Moved type.rb 2011-04-30 15:59:55 +02:00
Ken Barber
352bac3703 Moved type into pluginsync compat area. 2011-04-30 15:59:55 +02:00
Ken Barber
5c8f8f8edb Added Apache license. 2011-04-30 15:59:31 +02:00
Ken Barber
323cd874c5 Change README. 2011-04-30 15:59:31 +02:00
Ken Barber
99a93d366f Convert to module format. 2011-04-30 15:59:31 +02:00
Krzysztof Wilczynski
781a872057 Add number of stub code for future functions.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 14:36:25 +01:00
Krzysztof Wilczynski
d38e399b47 First version. Simple swapcase function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 14:35:10 +01:00
Krzysztof Wilczynski
8733a57ffb Making sure that the function hash will also work on older Rubies.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:44:59 +01:00
Krzysztof Wilczynski
b3be789b0d Add number of stub code for future functions.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:16:12 +01:00
Krzysztof Wilczynski
72b23cb2e5 First version. Simple hash function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:15:47 +01:00
Krzysztof Wilczynski
f74ab047cd Change boolean detecion from string to make entire function more robust.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:57:48 +01:00
Krzysztof Wilczynski
4da6d8222e Changed wording of the note in the comment.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:54:47 +01:00
Krzysztof Wilczynski
db7a27cf5b Small re-factor. Remove not needed complexity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:51:17 +01:00
Krzysztof Wilczynski
872c7f3c42 Added body of the function flatten.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:50:38 +01:00
Krzysztof Wilczynski
9d0e244771 Moved to unless from if not to improve code clarity. Changed
wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:49:15 +01:00
Krzysztof Wilczynski
3c4c1c7c20 Moved to unless from if not to improve code clarity. Added TODO
for future reference.  Changed wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:48:25 +01:00
Krzysztof Wilczynski
9ec50e7968 Added TODO for future reference.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:47:20 +01:00
Krzysztof Wilczynski
5da2005d04 Moved to unless from if not to make code more clear. Plus a variable
name change for simplicity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:46:03 +01:00
Krzysztof Wilczynski
4b2a0a9e1f Small change to code formatting.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:45:36 +01:00
Krzysztof Wilczynski
20a8892c09 Added comment line.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:45:04 +01:00
Krzysztof Wilczynski
55df5ac566 Added comment line.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:44:49 +01:00
Krzysztof Wilczynski
16eec26b0b Corrected function name from chop to strip. Moved to unless from if not
to improve code clarity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:43:13 +01:00
Krzysztof Wilczynski
41798020d6 Function has now more robust error detection.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:41:09 +01:00
Krzysztof Wilczynski
b26d5b2f3b Now prefix will convert everything into string which is the same
as join would do.  Also function is now more robust in error detection.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:40:04 +01:00
Krzysztof Wilczynski
5fce8a7f54 Added ability to flatten the resulting array in the function zip.
This would allow for creating hashes on the fly from two arrays.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 01:47:41 +01:00
Krzysztof Wilczynski
3b55113c73 Moved to unless from if not and changed wording of few error messages.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 01:00:10 +01:00
Krzysztof Wilczynski
21e39aaeac Moved to unless from if not plus removed surplus empty lines.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:59:18 +01:00
Krzysztof Wilczynski
551f4ce95b Moved to unless from if not and removed TODO.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:58:37 +01:00
Krzysztof Wilczynski
555c50d735 Moved to unless from if not for code clarity and changed wording
of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:57:24 +01:00
Krzysztof Wilczynski
0fabca9a65 Adding support for hash and string to the function count.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:56:12 +01:00
Krzysztof Wilczynski
0ff8b00a64 Small re-factor. Changed if not to unless for code clarity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 23:30:32 +01:00
Krzysztof Wilczynski
726746649e Small re-factor. Changed if not to unless for code clarity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 23:18:58 +01:00
Krzysztof Wilczynski
6d9e5efe38 Minor changes.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 23:16:26 +01:00
Krzysztof Wilczynski
f4f47f6d5f Changed wording in the error message.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 23:15:05 +01:00
Krzysztof Wilczynski
94db34684d Removing old file includes.rb
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 21:03:34 +01:00
Krzysztof Wilczynski
1e788e891b Renaming the file from includes.rb to member.rb.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 21:03:11 +01:00
Krzysztof Wilczynski
ab82eceba5 Renaming from includes to member in order to avoid confusion and
possibility of a clash with Puppet built-in function include.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 21:02:17 +01:00
Krzysztof Wilczynski
96777a0033 Minor change.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:58:49 +01:00