Control the kernel sysctl system.
vm.swappiness: sysctl.present: - value: 20
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
The name of the sysctl value to edit
The sysctl value to apply. Make sure to set the value to the correct expected output for systctl or reading the respective /proc/sys file. For example, instead of adding the value 1,2,3 you might need to write 1-3. If you do not set the correct value, Salt will continue to return with changes.
The location of the sysctl configuration file. If not specified, the proper location will be detected based on platform.
Generated on May 09, 2023 at 04:03:50 UTC.
You are viewing docs for the latest stable release, 3006.1. Switch to docs for the previous stable release, 3005.1, or to a recent doc build from the master branch.