-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b456391
commit 2d3c9a2
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Manifest to fix Nginx open file limit configuration | ||
exec { 'nginx fix': | ||
onlyif => 'test -e /etc/default/nginx', | ||
command => "sed -i s/'-n 15'/'-n 4096'/g /etc/default/nginx; service nginx restart", | ||
provider => 'shell' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Puppet manifest to increase file limits of user | ||
exec { 'file limit config': | ||
command => "sed -i s/'nofile 5'/'nofile 100'/g /etc/security/limits.conf", | ||
path => '/bin' | ||
} | ||
|
||
exec { 'file limit config_2': | ||
command => "sed -i s/'nofile 4'/'nofile 100'/g /etc/security/limits.conf", | ||
path => '/bin' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0x1B. Web stack debugging #4 | ||
|