Ask Your Question

build cycle tool for puppet modules

asked 2016-05-26 09:55:37 -0500

johntest gravatar image

hi folks

we are looking into a build tool for deploying puppet manifests to production.

The cycle is something like this Git -> Test in lab -> copy to prod (if pass) and stop (if fails)

We were considering using jenkins for this, but is there something that is better suited to puppet?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-26 20:05:51 -0500

DarylW gravatar image

updated 2016-05-26 21:07:10 -0500

TL:DR; -

There are two tools that fit the bill: librarian-puppet and r10k.

librarian-puppet works by using a Puppetfile (simialr to a Gemfile in ruby), which lists versions of modules and where to get them (Puppet forge, git repos) This tool DOES handle recursive dependency resolution, but it is only designed to pull down a single set of modules.

Here are the official puppet docs on using r10k (it comes shipped with PE, but it works with regular puppet as well). r10k works with the same Puppetfile format as librarian-puppet, except you have to define every dependency, as it doesn't do dependency resolution. However, it is designed to reference what is known as a control-version repository, which it pulls down from git, gets the Puppetfile from it for every branch, and creates an environment based on the branch names.

Here are a few posts explaining r10k, and the workflows required.

an response

rnelson has may great articles on the topic..

You can create a webhook on your puppet master, and a trigger in your git repository that every time the control repository is updated, it will rebuild the environments on your master based on the updated control-version repo. The workflow would then be similar to a 'jenkins only' merge to master/trunk. You could work on your modules, (implement rspec-puppet tests, beaker tests for integrations, and possibly tests with your software on the instance to make sure it still works), check them in on a feature branch. When that feature branch passes muster, jenkins would then merge your checkin to trunk

edit flag offensive delete link more


Thank you for detailed reply!

johntest gravatar imagejohntest ( 2016-05-27 10:04:57 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-05-26 09:55:37 -0500

Seen: 66 times

Last updated: May 26 '16