Skip to content

Commit

Permalink
Merge pull request #2 from joeyAghion/fix-tmp
Browse files Browse the repository at this point in the history
Jobs use /tmp a lot, so mount it on ephemeral partition
  • Loading branch information
joeyAghion committed Nov 27, 2013
2 parents 125c8b4 + c3a3119 commit 159dcaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

end

# Lots of jobs use /tmp for scratch, so mount it on ephemeral partition
default[:opsworks_initial_setup][:bind_mounts][:mounts]['/tmp'] = "#{node[:opsworks_initial_setup][:ephemeral_mount_point]}/tmp"
6 changes: 6 additions & 0 deletions recipes/setup.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Adapted from unicorn::rails: https://github.com/aws/opsworks-cookbooks/blob/master/unicorn/recipes/rails.rb

# Correct permissions on /tmp
directory '/tmp' do
action :create
mode '777'
end

include_recipe "opsworks_delayed_job::service"

# setup delayed_job service per app
Expand Down

0 comments on commit 159dcaf

Please sign in to comment.