Module for viewing and modifying sysctl parameters
salt.modules.mac_sysctl.
assign
(name, value)¶Assign a single sysctl parameter for this minion
The name of the sysctl value to edit.
The sysctl value to apply.
CLI Example:
salt '*' sysctl.assign net.inet.icmp.icmplim 50
salt.modules.mac_sysctl.
get
(name)¶Return a single sysctl parameter for this minion
The name of the sysctl value to display.
CLI Example:
salt '*' sysctl.get hw.physmem
salt.modules.mac_sysctl.
persist
(name, value, config='/etc/sysctl.conf', apply_change=False)¶Assign and persist a simple sysctl parameter for this minion
The name of the sysctl value to edit.
The sysctl value to apply.
The location of the sysctl configuration file.
Default is False; Default behavior only creates or edits the sysctl.conf file. If apply is set to True, the changes are applied to the system.
CLI Example:
salt '*' sysctl.persist net.inet.icmp.icmplim 50
salt '*' sysctl.persist coretemp_load NO config=/etc/sysctl.conf
salt.modules.mac_sysctl.
show
(config_file=False)¶Return a list of sysctl parameters for this minion
CLI Example:
salt '*' sysctl.show
Generated on August 05, 2021 at 04:04:00 UTC.
You are viewing docs for the previous stable release, 3000.9. Switch to docs for the latest stable release, 3003.1, or to a recent doc build from the master branch.
© 2021 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy