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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2386d5cbfc58
Choose a base ref
...
head repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1a0978230064
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 23, 2014

  1. Copy the full SHA
    0581c05 View commit details
  2. Pull in david's changes

    Sam Kottler committed Jun 23, 2014
    Copy the full SHA
    1a09782 View commit details
Showing with 18 additions and 2 deletions.
  1. +1 −1 Berksfile.lock
  2. +1 −1 cookbooks/rubygems-monitoring/metadata.rb
  3. +16 −0 cookbooks/rubygems-monitoring/recipes/default.rb
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -212,7 +212,7 @@ GRAPH
collectd (>= 0.0.0)
collectd-librato (>= 0.0.0)
collectd_plugins (>= 0.0.0)
rubygems-monitoring (0.0.5)
rubygems-monitoring (0.0.7)
chef-vault (>= 0.0.0)
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-monitoring/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name 'rubygems-monitoring'
maintainer 'RubyGems.org ops team'

version '0.0.5'
version '0.0.7'

depends 'chef-vault'
depends 'nginx'
16 changes: 16 additions & 0 deletions cookbooks/rubygems-monitoring/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
# Recipe:: default
#

include_recipe 'chef-vault'

dnsimple_credentials = chef_vault_item('dnsimple', 'credentials')

include_recipe 'dwradcliffe-dnsimple'

dwradcliffe_dnsimple_record "create CNAME point monitoring.rubygems.org to #{node.name}" do
name 'monitoring.rubygems.org'
content node['cloud_v2']['public_hostname']
type 'CNAME'
domain 'rubygems.org'
username dnsimple_credentials['username']
password dnsimple_credentials['password']
action :create
end

include_recipe 'rubygems-sensu::server'
include_recipe 'rubygems'
include_recipe 'rubygems-monitoring::nginx'