Skip to content

Commit

Permalink
web debug 4
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMousa committed Jun 27, 2024
1 parent b456391 commit 2d3c9a2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 0x1B-web_stack_debugging_4/0-the_sky_is_the_limit_not.pp
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'
}
10 changes: 10 additions & 0 deletions 0x1B-web_stack_debugging_4/1-user_limit.pp
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'
}
2 changes: 2 additions & 0 deletions 0x1B-web_stack_debugging_4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0x1B. Web stack debugging #4

0 comments on commit 2d3c9a2

Please sign in to comment.