Ask Your Question

Puppet, Jenkins and Vagrant - Puppet Development CI

asked 2013-10-09 06:53:08 -0600

STOIE gravatar image

Hi all,

Thought I would more or less start a topic on this, to get some ideas and see if anyone else is doing what we are / planning on doing.

Currently, we are in the early stages of having all our puppet code in git (gitorious) using git flow for feature, dev, release, hotfix and master branch management. We have a post commit hook set to trigger Jenkins on each of our branches (that we care about), which currently then runs puppet-lint on the source for validation.

In the way of testing, this is really as far as we have ... (more)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-03-04 06:32:45 -0600

We're currently at a similar stage with this.

We have all our modules in Git/Gerrit, with Jenkins job to run: puppet parser validate on all manifests puppet-lint.

We plan on using rspec-puppet more to write spec tests. We've written a couple, but Jenkins isn't running them yet!:

our next plan is to have a "verify" PM which is on constantly, with a verify Agent. Jenkins would then distribute the updated manifests/modules to the PM, and cause two agent runs... one on an upgrade path and one completely from scratch.

It ... (more)

edit flag offensive delete link more

answered 2014-06-27 09:03:11 -0600

kronn gravatar image

We are using puppet-cucumber and puppet-rspec to test the catalog for specific settings. puppet-lint for

puppet-rspec is great for modules

puppet-cucumber is great for manifests or on a node-level.

Both can be easily integrated with a little bash-script that can be run by jenkins. (executing every rspec-suite and the cucumber-suite and check the exitstatus).

upside: you can check if all dependencies resolve and if your setting really trickle down to the config files.

downside: it only checks the catalog, so you still need to know what you write in your config-templates as it does not check wether the template is a syntactically correct sendmail config

At some point, we might use beaker for full integration tests, but just the check for dependency-correctness has saved my more than once.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-10-09 06:53:08 -0600

Seen: 1,207 times

Last updated: Jun 27 '14