Over a million developers have joined DZone.

Pulling Jenkins' strings with Puppet

· DevOps Zone

Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

A couple months ago I created this puppet-jenkins module while experimenting with using Puppet to script or otherwise control more and more of my daily sysadmin-life.

This post was originally authored by R. Tyler Croy


After a weekend of hacking I figured I was mostly finished, that was until Puppet Labs engineer Jeff McCune picked up the module and added a number of rspec tests, CentOS/RHEL support and generally tidied up the place. Pretty neat I thought!

Once again through the power of GitHub a weekend project has taken a life of its own now that multiple people are interested in the concept and have forked the repo accordingly.

With the encouragement of a number of people, I've also published the module to Puppet Forge which allows for easy integration with thousands of Puppet installations.

If you'd like to use the Jenkins puppet module from Puppet Forge, you can use:

% -> puppet-module install rtyler-jenkins

Once the module is included you can slurp in the Jenkins module with this in your manifests:

class { 'jenkins': ; }  # logically equivalent to "include jenkins"

You can also use the module to handle plugin installation for you with the install-jenkins-plugin type:

install-jenkins-plugin {
    "git-plugin" :
        name    => "git,
        version => "1.1.11";
}

(Omit the "version" if you just want to pull the latest)

If you're interested in contributing, the GitHub project is here.

Add this to the ever increasing list of projects that were planted on GitHub and flourished afterward.

Source:  http://unethicalblogger.com/2011/12/28/jenkins-with-puppet.html

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}