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: b70df9a5a608
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: 567905ccc70e
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 12, 2015

  1. manage the /var/log/nginx mount

    Sam Kottler committed Mar 12, 2015
    Copy the full SHA
    37773a4 View commit details
  2. Merge branch 'master' of github.com:rubygems/rubygems-infrastructure

    * 'master' of github.com:rubygems/rubygems-infrastructure:
      collect background job stats
      run doorman in production mode
    Sam Kottler committed Mar 12, 2015

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    567905c View commit details
Showing with 18 additions and 2 deletions.
  1. +1 −1 Berksfile.lock
  2. +1 −1 cookbooks/rubygems-balancer/metadata.rb
  3. +2 −0 cookbooks/rubygems-balancer/recipes/default.rb
  4. +14 −0 cookbooks/rubygems-balancer/recipes/mounts.rb
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -225,7 +225,7 @@ GRAPH
rubygems-backups (0.0.21)
chef-vault (>= 0.0.0)
rubygems-ruby (>= 0.0.0)
rubygems-balancer (0.0.42)
rubygems-balancer (0.0.43)
chef-vault (>= 0.0.0)
logrotate (>= 0.0.0)
nginx (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.42'
version '0.0.43'

depends 'chef-vault'
depends 'logrotate'
2 changes: 2 additions & 0 deletions cookbooks/rubygems-balancer/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@

include_recipe 'chef-vault'

include_recipe 'rubygems-balancer::mounts'

include_recipe 'nginx'

include_recipe 'rubygems-balancer::ssl'
14 changes: 14 additions & 0 deletions cookbooks/rubygems-balancer/recipes/mounts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Cookbook Name:: rubygems-balancer
# Recipe:: mounts
#

log_device = '/dev/xvdp'

mount '/var/log/nginx' do
device log_device
fstype 'ext4'
options 'defaults,discard'
action :mount
only_if { ::File.exist?(log_device) }
end