CDIST-TYPE__JAIL_FREEBSD9(7) | cdist | CDIST-TYPE__JAIL_FREEBSD9(7) |
cdist-type__jail_freebsd9 - Manage FreeBSD jails
This type is used on FreeBSD <= 9.x to manage jails.
This type does not currently support modification of jail options. If, for example a jail needs to have its IP address or netmask changed, the jail must be removed then re-added with the correct IP address/netmask or the appropriate line (jail_<name>_ip="...") modified within rc.conf through some alternate means.
# Create a jail called www __jail_freebsd9 www --state present --ip "192.168.1.2" --jailbase /my/jail/base.tgz # Remove the jail called www __jail_freebsd9 www --state absent --jailbase /my/jail/base.tgz # The jail www should not be started __jail_freebsd9 www --state present --stopped \ --ip "192.168.1.2 netmask 255.255.255.0" \ --jailbase /my/jail/base.tgz # Use the name variable explicitly __jail_freebsd9 thisjail --state present --name www \ --ip "192.168.1.2" \ --jailbase /my/jail/base.tgz # Go nuts __jail_freebsd9 lotsofoptions --state present --name testjail \ --ip "192.168.1.100 netmask 255.255.255.0" \ --hostname "testjail.example.com" --interface "em0" \ --onboot --jailbase /my/jail/base.tgz --jaildir /jails
jail(8)
Jake Guffey <jake.guffey--@--eprotex.com>
Copyright (C) 2012-2016 Jake Guffey. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ungleich GmbH 2021
September 26, 2023 | 7.0.0 |