Specifying Puppet catalog behavior with Cucumber
Ruby Puppet
Latest commit 0534ad7 Nov 6, 2013 @petems Merge pull request #23 from borisyukd/master
Fix deprecated Puppet.parse_config
Failed to load latest commit information.
bin add bundler to simplify initial setup of environment Aug 31, 2011
features test compatibility upto 2.7.12 Mar 14, 2012
gemfiles Remove the apprasial Gemfile.lock Sep 21, 2013
lib fix deprecated Puppet.parse_config Nov 2, 2013
man add a little more structure Sep 16, 2010
spec add support for guard Sep 3, 2011
Appraisals Different Gemfiles for each version of puppet Sep 21, 2013
ChangeLog bump version Jan 8, 2012
Gemfile Initial cleanup to get running on Travis Sep 21, 2013
Guardfile add support for guard Sep 3, 2011
LICENSE initial import of cucumber-puppet Apr 11, 2010
README.md Added Travis badge Sep 21, 2013
Rakefile Tests, test s'all the same to me... Sep 21, 2013
VERSION.yml bump version Jan 8, 2012



Build Status

The project was discontinued. I'm seeing if I can resurect it

Currently cucumber-puppet doesnt support Ruby 1.9+ or any puppetversion beyond 2.7...

Cucumber-puppet is a tool for specifying Puppet catalog behavior. It uses Cucumber features as specifications and provides the necessary glue to access a node's catalog from Cucumber's step definitions.


Install cucumber-puppet

$ gem install cucumber-puppet

Go to your Puppet directory

$ cd puppet

Initialise the infrastructure

$ cucumber-puppet-gen world

Create a default policy and adapt it to your needs

$ cucumber-puppet-gen policy
$ vim features/catalog/policy.feature

Copy YAML node files into place

$ mkdir features/yaml
$ cp /var/lib/puppet/yaml/node/localhost.example.com.yaml features/yaml

Apply your policy

$ cucumber-puppet features/catalog/policy.feature

An example use case can be found at https://github.com/nistude/cucumber-puppet.example.

Further documentation is available in the wiki.


Many thanks to Bernd Ahlers for getting me started with cucumber, rspec and ruby.

cucumber-puppet was inspired by Lindsay Holmwood's cucumber-nagios.