Module for viewing and modifying sysctl parameters
salt.modules.netbsd_sysctl.
assign
(name, value)¶Assign a single sysctl parameter for this minion
CLI 范例:
salt '*' sysctl.assign net.inet.icmp.icmplim 50
salt.modules.netbsd_sysctl.
get
(name)¶Return a single sysctl parameter for this minion
CLI 范例:
salt '*' sysctl.get hw.physmem
salt.modules.netbsd_sysctl.
persist
(name, value, config='/etc/sysctl.conf')¶Assign and persist a simple sysctl parameter for this minion
CLI 范例:
salt '*' sysctl.persist net.inet.icmp.icmplim 50
salt.modules.netbsd_sysctl.
show
(config_file=False)¶Return a list of sysctl parameters for this minion
CLI 范例:
salt '*' sysctl.show