Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Start on getting Jenkins working
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kottler committed Jun 25, 2014
1 parent 0ecec2c commit aa185c9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cookbook 'rubygems-balancer', path: 'cookbooks/rubygems-balancer'
cookbook 'rubygems-bastion', path: 'cookbooks/rubygems-bastion'
cookbook 'rubygems-cache', path: 'cookbooks/rubygems-cache'
cookbook 'rubygems-chef', path: 'cookbooks/rubygems-chef'
cookbook 'rubygems-ci', path: 'cookbooks/rubygems-ci'
cookbook 'rubygems-database', path: 'cookbooks/rubygems-database'
cookbook 'rubygems-hostname', path: 'cookbooks/rubygems-hostname'
cookbook 'rubygems-hosts', path: 'cookbooks/rubygems-hosts'
Expand Down
9 changes: 9 additions & 0 deletions Berksfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ DEPENDENCIES
path: cookbooks/rubygems-cache
rubygems-chef
path: cookbooks/rubygems-chef
rubygems-ci
path: cookbooks/rubygems-ci
rubygems-database
path: cookbooks/rubygems-database
rubygems-hostname
Expand Down Expand Up @@ -119,6 +121,10 @@ GRAPH
hostsfile (>= 0.0.0)
hostsfile (2.4.4)
iptables (0.13.2)
jenkins (2.0.2)
apt (~> 2.0)
runit (~> 1.5)
yum (~> 3.0)
logrotate (1.6.0)
memcached (1.7.2)
runit (~> 1.0)
Expand Down Expand Up @@ -196,6 +202,9 @@ GRAPH
rubygems-chef (0.0.8)
chef-client (>= 0.0.0)
omnibus_updater (>= 0.0.0)
rubygems-ci (0.0.1)
jenkins (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-database (0.0.22)
chef-vault (>= 0.0.0)
database (>= 0.0.0)
Expand Down
7 changes: 7 additions & 0 deletions cookbooks/rubygems-ci/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name 'rubygems-ci'
maintainer 'RubyGems.org ops team'

version '0.0.1'

depends 'jenkins'
depends 'rubygems'
17 changes: 17 additions & 0 deletions cookbooks/rubygems-ci/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include_recipe 'rubygems'

plugins = data_bag_item('jenkins', 'plugins')

plugins.each do |plugin|
jenkins_plugin plugin do
action [ :install, :enable ]
end
end

# TODO: remove these three attributes once https://issues.jenkins-ci.org/browse/JENKINS-22346
# is fixed.
node.default['jenkins']['master']['install_method'] = 'war'
node.default['jenkins']['master']['version'] = '1.555'
node.default['jenkins']['master']['source'] = "#{node['jenkins']['master']['mirror']}/war/#{node['jenkins']['master']['version']}/jenkins.war"

include_recipe 'jenkins'
5 changes: 5 additions & 0 deletions roles/ci.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name 'ci'
description 'CI server(s) powered by Jenkins'
run_list(
'recipe[rubygems-ci]'
)

0 comments on commit aa185c9

Please sign in to comment.