Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple Chef recipe to install Jenkins
# Cookbook Name:: jenkins
# Recipe:: default
# This is super-simple, compared to the other Chef cookbook I found
# for Jenkins (
# This doesn't include Chef libraries for adding Jenkin's jobs via
# the command line, but it does get Jenkins up and running.
# I'd rather build up a Chef cookbook than strip it down, so here's
# a good starting point.
include_recipe "apt"
include_recipe "java"
apt_repository "jenkins" do
uri ""
key ""
components ["binary/"]
action :add
package "jenkins"
service "jenkins" do
supports [:stop, :start, :restart]
action [:start, :enable]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment