Module to manage Linux kernel modules
salt.modules.kmod.available()¶Return a list of all available kernel modules
CLI Example:
salt '*' kmod.available
salt.modules.kmod.check_available(mod)¶Check to see if the specified kernel module is available
CLI Example:
salt '*' kmod.check_available kvm
salt.modules.kmod.is_loaded(mod)¶Check to see if the specified kernel module is loaded
CLI Example:
salt '*' kmod.is_loaded kvm
salt.modules.kmod.load(mod, persist=False)¶Load the specified kernel module
Name of module to add
Write module to /etc/modules to make it load on system reboot
CLI Example:
salt '*' kmod.load kvm
salt.modules.kmod.lsmod()¶Return a dict containing information about currently loaded modules
CLI Example:
salt '*' kmod.lsmod
salt.modules.kmod.mod_list(only_persist=False)¶Return a list of the loaded module names
Only return the list of loaded persistent modules
CLI Example:
salt '*' kmod.mod_list
salt.modules.kmod.remove(mod, persist=False, comment=True)¶Remove the specified kernel module
Name of module to remove
Also remove module from /etc/modules
If persist is set don't remove line from /etc/modules but only comment it
CLI Example:
salt '*' kmod.remove kvm
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