salt.modules.freebsdjail

The jail module for FreeBSD

salt.modules.freebsdjail.fstab(jail)

Display contents of a fstab(5) file defined in specified jail's configuration. If no file is defined, return False.

CLI 范例:

salt '*' jail.fstab <jail name>
salt.modules.freebsdjail.get_enabled()

Return which jails are set to be run

CLI 范例:

salt '*' jail.get_enabled
salt.modules.freebsdjail.is_enabled()

See if jail service is actually enabled on boot

CLI 范例:

salt '*' jail.is_enabled <jail name>
salt.modules.freebsdjail.restart(jail='')

Restart the specified jail or all, if none specified

CLI 范例:

salt '*' jail.restart [<jail name>]
salt.modules.freebsdjail.show_config(jail)

Display specified jail's configuration

CLI 范例:

salt '*' jail.show_config <jail name>
salt.modules.freebsdjail.start(jail='')

Start the specified jail or all, if none specified

CLI 范例:

salt '*' jail.start [<jail name>]
salt.modules.freebsdjail.status(jail)

See if specified jail is currently running

CLI 范例:

salt '*' jail.status <jail name>
salt.modules.freebsdjail.stop(jail='')

Stop the specified jail or all, if none specified

CLI 范例:

salt '*' jail.stop [<jail name>]
salt.modules.freebsdjail.sysctl()

Dump all jail related kernel states (sysctl)

CLI 范例:

salt '*' jail.sysctl