2015-01-24 17:15:53 +01:00
|
|
|
sysctl-formula
|
|
|
|
==============
|
2015-01-24 17:14:58 +01:00
|
|
|
|
|
|
|
This formula ensures that a sysctl parameter is present on the system
|
|
|
|
from a pillar file.
|
|
|
|
|
|
|
|
|
|
|
|
Here's a small pillar data sample::
|
|
|
|
|
2015-01-24 17:15:53 +01:00
|
|
|
sysctl:
|
2015-01-24 17:14:58 +01:00
|
|
|
lookup:
|
|
|
|
pkg: procps-ng
|
2015-04-06 16:25:27 +02:00
|
|
|
config:
|
|
|
|
location: /etc/sysctl.d
|
|
|
|
params:
|
|
|
|
vm.swappines:
|
|
|
|
value: 20
|
|
|
|
config: 10-swap.conf
|
|
|
|
fs.file-max:
|
|
|
|
value: 10000
|
2015-01-24 17:14:58 +01:00
|
|
|
|
|
|
|
|
2015-04-13 16:26:52 +02:00
|
|
|
The state sysctl will ensure these are present on the system
|
2015-01-24 17:14:58 +01:00
|
|
|
based on the sysctl module of salt.
|
|
|
|
|
|
|
|
if no config value is given the key value will be written based host system.
|
|
|
|
on systemd systems this will be /etc/sysctl.d/99-salt.conf
|
|
|
|
on sysv init systems it will be /etc/sysctl.conf
|
|
|
|
|