cookbook 'L7-sysctl', '= 0.1.8'
L7-sysctl (10) Versions 0.1.8 Follow0
Configures sysctl parameters
cookbook 'L7-sysctl', '= 0.1.8', :supermarket
knife supermarket install L7-sysctl
knife supermarket download L7-sysctl
L7-sysctl cookbook
Description
Configures sysctl system control parameters via Opscode Chef in /etc/sysctl.conf
Supported Platforms
- Ubuntu 12.04+
- Debian 7.0+
Recipes
-
L7-sysctl
- The default no-op recipe. - Predefined parameters:
-
L7-sysctl::basic_securty
- Sets kernel level security settings. -
L7-sysctl::disable_ipv6
- If you do not use ipv6 then disable it. -
L7-sysctl::enable_forwarding
- Enables ipv4 forwarding. -
L7-sysctl::less_swapping
- Decrease swap ratio to 10 for less swapping. -
L7-sysctl::no_overcommit
- Do not overcommit available memory. -
L7-sysctl::panic
- Reboot on kernel panic. -
L7-sysctl::tune_conntrack
- Increase connection tracking buffers. -
L7-sysctl::tune_shm
- Increase shm. -
L7-sysctl::tune_tck_stack
- Tune tcp stack for higher throughput. -
L7-sysctl::tune_vfs
- Tune vfs. -
L7-sysctl::disable_bridge_nf_call
- Disable netfilter calls on bridged packets. -
L7-sysctl::ipv6_no_autoconfig
- No autoconfig for ipv6. -
L7-sysctl::tcp_congestion_yeah
- Sets the tcp congestion control to YeAH. -
L7-sysctl::tcp_fastopen
- Enable client/server side tcp fast open.
Usage
- Include L7-sysctl::default recipe in your runlist.
Place 'depends L7-sysctl' in the metadata of your cookbook.
name: The sysctl parameter name.
comment: Optional string for identification.
value: Must be set to proper value.
immediately: Optional true/false. Sets value at runtime or at the end of chef run. Default: false.
L7_sysctl 'net.ipv4.ip_forward' do comment 'Enable ip forwarding' value '1' immediately true end
TODO
- Rewrite to LWRP
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
- Freely distributable and licensed under the MIT license.
- Copyright (c) 2015 Gabor Szelcsanyi
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.1.8 failed this metric
FC015: Consider converting definition to a LWRP: /tmp/cook/6fd34dc7202229097df3d700/L7-sysctl/definitions/default.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/6fd34dc7202229097df3d700/L7-sysctl/recipes/tcp_fastopen.rb:14
0.1.8 failed this metric
FC019: Access node attributes in a consistent manner: /tmp/cook/6fd34dc7202229097df3d700/L7-sysctl/recipes/tcp_fastopen.rb:14