Control the kernel sysctl system.
vm.swappiness:
sysctl.present:
- value: 20
salt.states.sysctl.
__virtual__
()¶This state is only available on Minions which support sysctl
salt.states.sysctl.
present
(name, value, config=None)¶Ensure that the named sysctl value is set in memory and persisted to the named configuration file. The default sysctl configuration file is /etc/sysctl.conf
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.0