Skip to content

nabam/cookbook-sysctl.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sysctl.d Cookbook

This cookbook contains LWRP to manage files under /etc/sysctl.d

Requirements

cookbooks

  • sysctl - sysctl.d needs sysctl to notify procps service

Usage

LWRP Examples

sysctl_d "90-postgresql" do
  params "kernel.shmmax" => (node["memory"]["total"].to_i * 1024 * 0.80).to_i,
         "kernel.shmall" => (node["memory"]["total"].to_i * 1024 * 0.80 / 4096).to_i,
         "vm.swappiness" => 0
end
sysctl_d "90-postgresql" do
  action :remove
end

License and Authors

Authors: Lev Popov

About

Chef cookbook contains LWRP to manage files under /etc/sysctl.d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published