Permalink
Browse files

Update ulimit.

  • Loading branch information...
darron committed Jan 18, 2014
1 parent c32167f commit 6def19aca5abe4e74fbaeba1c55ff3a20d7f7cf0
Showing with 13 additions and 1 deletion.
  1. +1 −0 attributes/default.rb
  2. +1 −1 metadata.rb
  3. +11 −0 recipes/default.rb
View
@@ -22,3 +22,4 @@
default['octo']['path'] = '/usr/bin/octo'
default['sudoers'] = '/etc/sudoers'
default['sshd']['config'] = '/etc/ssh/sshd_config'
default['ulimit'] = '64000'
View
@@ -4,7 +4,7 @@
maintainer_email 'darron@froese.org'
license 'Apache 2.0'
description 'Installs/configures some basic octohost items.'
version '0.3.0'
version '0.4.0'
recipe 'octobase::default', 'Installs/configures something'
depends 'apt'
View
@@ -20,6 +20,17 @@
include_recipe 'sysstat::default'
bash 'update_ulimit' do
user 'root'
cwd '/tmp'
code <<-EOH
echo '* hard nofile #{node['ulimit']}' >> /etc/security/limits.conf
echo '* soft nofile #{node['ulimit']}' >> /etc/security/limits.conf
sysctl -w fs.file-max=#{node['ulimit']}
sysctl -p
EOH
end
remote_file node['octo']['path'] do
source node['octo']['url']
owner 'root'

0 comments on commit 6def19a

Please sign in to comment.