22.16.33. salt.modules.darwin_sysctl

Module for viewing and modifying sysctl parameters

salt.modules.darwin_sysctl.assign(name, value)

Assign a single sysctl parameter for this minion

name
The name of the sysctl value to edit.
value
The sysctl value to apply.

CLI Example:

salt '*' sysctl.assign net.inet.icmp.icmplim 50
salt.modules.darwin_sysctl.get(name)

Return a single sysctl parameter for this minion

name
The name of the sysctl value to display.

CLI Example:

salt '*' sysctl.get hw.physmem
salt.modules.darwin_sysctl.persist(name, value, config='/etc/sysctl.conf', apply_change=False)

Assign and persist a simple sysctl parameter for this minion

name
The name of the sysctl value to edit.
value
The sysctl value to apply.
config
The location of the sysctl configuration file.
apply_change
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.darwin_sysctl.show()

Return a list of sysctl parameters for this minion

CLI Example:

salt '*' sysctl.show

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.32. salt.modules.daemontools

Next topic

22.16.34. salt.modules.data

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.