salt.modules.freebsdkmod

Module to manage FreeBSD kernel modules

salt.modules.freebsdkmod.available()

Return a list of all available kernel modules

CLI 范例:

salt '*' kmod.available
salt.modules.freebsdkmod.check_available(mod)

Check to see if the specified kernel module is available

CLI 范例:

salt '*' kmod.check_available vmm
salt.modules.freebsdkmod.is_loaded(mod)

Check to see if the specified kernel module is loaded

CLI 范例:

salt '*' kmod.is_loaded vmm
salt.modules.freebsdkmod.load(mod, persist=False)

Load the specified kernel module

mod
Name of the module to add
persist
Write the module to sysrc kld_modules to make it load on system reboot

CLI 范例:

salt '*' kmod.load bhyve
salt.modules.freebsdkmod.lsmod()

Return a dict containing information about currently loaded modules

CLI 范例:

salt '*' kmod.lsmod
salt.modules.freebsdkmod.mod_list(only_persist=False)

Return a list of the loaded module names

CLI 范例:

salt '*' kmod.mod_list
salt.modules.freebsdkmod.remove(mod, persist=False)

Remove the specified kernel module

CLI 范例:

salt '*' kmod.remove vmm