[Puppet Users] rspec-puppet: how to pass undef as parameter value?

2013-07-19 Thread Andreas Haerter
Hi all, is there a way to pass the Puppets undef [1] value as parameter? I got a module with a package_provider parameter, allowing the user two things: 1. specify a specific package provider to use; 2. pass "undef" to let Puppet decide which provider to use instead of the module. Something like:

Re: [Puppet Users] Unit-Testing/test: recommended method?

2012-12-16 Thread Andreas Haerter
On 13.12.2012 20:42, Nan Liu wrote: > The blog posts you referenced are slightly out of date. I would start > with Branan's post on Puppet Labs spec_helper [2]. It's used in all > puppet labs modules. You can see it in action both in travis-ci [3] and > puppet labs public Jenkins CI [4]. > > [1] <

[Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Andreas Haerter
Hi, is there any "officially" recommended default/standard method to realize Puppet module unit test beyond linting (puppet-lint)? Compatibility to version < 3.x is nice but NOT needed. My main questions are: 1) I know there are different, well-known methods: - Test::Unit - rspec-puppet - cucum

Re: [Puppet Users] Getting started

2012-04-08 Thread Andreas Haerter
On 08.04.2012 00:46, Michael Stahnke wrote: >>> Puppet seems way too clumber some with the amount of dependencies >>> required so far. >> >> Seriously: use the packages of your distribution or the YUM/APT repos by >> Puppetlabs if you want to start with all the 2.7 features right now (I >> would re

Re: [Puppet Users] Getting started

2012-04-06 Thread Andreas Haerter
Hi, On 05.04.2012 22:42, Brown, Rodrick wrote: > I really hate poor documentation. > > I’m following along in PDF documentation I downloaded from the official > site and I’m stuck after I installed rack & passenger modules from > rubygems. There is a PDF?! OK... However, Maybe helpful:

[Puppet Users] Recommendations for comment blocks of .pp files?

2011-12-15 Thread Andreas Haerter
Hi *, I'm new to puppet. Before writing and modifying tons of source code to get my environment up and running, it would be nice to hear if there are any recommendations regarding the format of a) comment blocks to document classes and files b) comment blocks to document other stuff (e.g. defines

[Puppet Users] Re: Recommendations for comment blocks of .pp files?

2011-12-15 Thread Andreas Haerter
On 14.12.2011 19:14, Andreas Haerter wrote: > I'm asking because there might be some kind of standard and/or tools to > parse the source code of .pp files to generate Docs for the puppet > modules I'm going to write. Ok, got my question answered on IRC. If you have Rdoc-fo