Skip to content

Commit

Permalink
Merge pull request #3 from racciari/master
Browse files Browse the repository at this point in the history
Fix default limits
  • Loading branch information
racciari committed Apr 4, 2016
2 parents 46f6778 + 08af31a commit 0d6d96a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
$directory_mode = '0755'
$directory_ensure = 'directory'
# Global parameters
$limit_core_size = '-1'
$limit_max_files = '8192'
$limit_stack_size = '256'
$limit_core_size = '0'
$limit_max_files = '65536'
$limit_stack_size = '8192'
# Others
$no_exec = false
}
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openio-gridinit",
"version": "1.1.3",
"version": "1.1.4",
"author": "Romain Acciari",
"summary": "Puppet module for gridinit from OpenIO",
"license": "Apache-2.0",
Expand Down
6 changes: 6 additions & 0 deletions templates/gridinit.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ uid=<%= scope['gridinit::user'] %>
gid=<%= scope['gridinit::group'] %>
working_dir=<%= @runstatedir %>

<% if @limit_core_size -%>
limit.core_size=<%= @limit_core_size %>
<% end -%>
<% if @limit_max_files -%>
limit.max_files=<%= @limit_max_files %>
<% end -%>
<% if @limit_stack_size -%>
limit.stack_size=<%= @limit_stack_size %>
<% end -%>

include=<%= @sysconfdird %>/*

0 comments on commit 0d6d96a

Please sign in to comment.