Function iocage_provision::provision_jail[][src]

pub fn provision_jail(
    name: &str,
    ip: &IpNet,
    gateway: &IpAddr,
    release: &str,
    thick_jail: bool,
    user: Option<&str>,
    ssh_service: bool
) -> Result<()>
Expand description

Creates, starts, and sets up a new FreeBSD jail via the iocage program.

Errors

Returns an Err if a jail could not be completely provisioned successfully. Note that a failure from this function may leave behind a jail in an inconsistent state that needs to be cleaned up out of band.