Control the kernel sysctl system.
vm.swappiness:
sysctl.present:
- value: 20
salt.states.sysctl.
present
(name, value, config=None, ignore=False)¶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
The name of the sysctl value to edit
The sysctl value to apply
The location of the sysctl configuration file. If not specified, the proper location will be detected based on platform.
..versionadded:: neon
Adds --ignore to sysctl commands. This suppresses errors in environments where sysctl settings may have been disabled in kernel boot configuration. Defaults to False
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy