<commit_before># sysctl cookbook

## Description

Configures sysctl parameters in /etc/sysctl.conf

## Requirements

### Supported Platforms

* Ubuntu
* Debian

## Recipes

* `sysctl` - The default no-op recipe.
* `basic_securty` - Sets kernel level security settings.
* `disable_ipv6` - If you do not use ipv6 then disable it.
* `enable_forwarding` - Enables ipv4 forwarding.
* `less_swapping` - Decrease swap ratio to 10 for less swapping.
* `no_overcommit` - Do not overcommit available memory.
* `panic` - Reboot on kernel panic.
* `tune_conntrack` - Increase connection tracking buffers.
* `tune_shm` - Increase shm.
* `tune_tck_stack` - Tune tcp stack for higher throughput.
* `tune_vfs` - Tune vfs.

## Usage
* name: the sysctl parameter
* comment: optional string for identification
* value: must be set to proper value
* immediately: (true/false) set value at runtime or at the end of chef run

```ruby
sysctl_parameter "net.ipv4.ip_forward" do
	comment "Enable ip forwarding"
	value "1"
	immediately true
end
```

## TODO

* Rewrite to LWRP

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

**sysctl**

* Freely distributable and licensed under the [MIT license](http://szelcsanyi.mit-license.org/2014/license.html).<commit_msg>Readme update<commit_after># sysctl cookbook

## Description

Configures [sysctl](http://en.wikipedia.org/wiki/Sysctl) system control parameters via Opscode Chef in /etc/sysctl.conf

## Supported Platforms

* Ubuntu
* Debian

## Recipes

* `sysctl` - The default no-op recipe.
* Predefined parameters:
* `sysctl::basic_securty` - Sets kernel level security settings.
* `sysctl::disable_ipv6` - If you do not use ipv6 then disable it.
* `sysctl::enable_forwarding` - Enables ipv4 forwarding.
* `sysctl::less_swapping` - Decrease swap ratio to 10 for less swapping.
* `sysctl::no_overcommit` - Do not overcommit available memory.
* `sysctl::panic` - Reboot on kernel panic.
* `sysctl::tune_conntrack` - Increase connection tracking buffers.
* `sysctl::tune_shm` - Increase shm.
* `sysctl::tune_tck_stack` - Tune tcp stack for higher throughput.
* `sysctl::tune_vfs` - Tune vfs.

## Usage
* name: the sysctl parameter
* comment: optional string for identification
* value: must be set to proper value
* immediately: (true/false) set value at runtime or at the end of chef run

```ruby
sysctl_parameter "net.ipv4.ip_forward" do
	comment "Enable ip forwarding"
	value "1"
	immediately true
end
```

## TODO

* Rewrite to LWRP

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

* Freely distributable and licensed under the [MIT license](http://szelcsanyi.mit-license.org/2014/license.html).
* Copyright (c) 2014 <NAME>
{'fraction_non_alphanumeric': 0.10954872465663833, 'fraction_numerical': 0.011772400261608895, 'mean_word_length': 4.3479020979020975, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4239977', 'n_tokens_mistral': 1034, 'n_tokens_neox': 981, 'n_words': 353}