2016-06-06 02:16:42 +00:00
|
|
|
cdist-type__jail_freebsd10(7)
|
|
|
|
=============================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__jail_freeebsd10 - Manage FreeBSD jails
|
2016-06-06 01:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2016-06-06 02:16:42 +00:00
|
|
|
This type is used on FreeBSD >= 10.0 to manage jails.
|
2016-06-06 01:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2016-06-06 02:16:42 +00:00
|
|
|
state
|
2016-06-06 01:57:21 +00:00
|
|
|
Either "present" or "absent", defaults to "present".
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
jailbase
|
2016-06-06 01:57:21 +00:00
|
|
|
The location of the .tgz archive containing the base fs for your jails.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-06-06 02:16:42 +00:00
|
|
|
name
|
2016-06-06 01:57:21 +00:00
|
|
|
The name of the jail. Default is to use the object_id as the jail name.
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
ip
|
2016-06-06 01:57:21 +00:00
|
|
|
The ifconfig style IP/netmask combination to use for the jail guest. If
|
|
|
|
the state parameter is "present," this parameter is required.
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
hostname
|
2016-06-06 01:57:21 +00:00
|
|
|
The FQDN to use for the jail guest. Defaults to the name parameter.
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
interface
|
2016-06-06 01:57:21 +00:00
|
|
|
The name of the physical interface on the jail server to bind the jail to.
|
|
|
|
Defaults to the first interface found in the output of ifconfig -l.
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
devfs-ruleset
|
2016-06-06 01:57:21 +00:00
|
|
|
The name of the devfs ruleset to associate with the jail. Defaults to
|
|
|
|
"jailrules." This ruleset must be copied to the server via another type.
|
|
|
|
To use this option, devfs-enable must be "true."
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
jaildir
|
2016-06-06 01:57:21 +00:00
|
|
|
The location on the remote server to use for hosting jail filesystems.
|
|
|
|
Defaults to /usr/jail.
|
|
|
|
|
|
|
|
BOOLEAN PARAMETERS
|
|
|
|
------------------
|
2016-06-06 02:16:42 +00:00
|
|
|
stopped
|
2016-06-06 01:57:21 +00:00
|
|
|
Do not start the jail
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
devfs-disable
|
2016-06-06 01:57:21 +00:00
|
|
|
Whether to disallow devfs mounting within the jail
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
onboot
|
2016-06-06 01:57:21 +00:00
|
|
|
Whether to add the jail to rc.conf's jail_list variable.
|
|
|
|
|
|
|
|
|
|
|
|
CAVEATS
|
|
|
|
-------
|
|
|
|
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
|
|
|
|
modifications to jail.conf need to be made through alternate means.
|
|
|
|
|
|
|
|
MESSAGES
|
|
|
|
--------
|
2016-06-06 02:16:42 +00:00
|
|
|
start
|
2016-06-06 01:57:21 +00:00
|
|
|
The jail was started
|
2016-06-06 02:16:42 +00:00
|
|
|
stop
|
2016-06-06 01:57:21 +00:00
|
|
|
The jail was stopped
|
|
|
|
create:
|
|
|
|
The jail was created
|
2016-06-06 02:16:42 +00:00
|
|
|
delete
|
2016-06-06 01:57:21 +00:00
|
|
|
The jail was deleted
|
2016-06-06 02:16:42 +00:00
|
|
|
onboot
|
2016-06-06 01:57:21 +00:00
|
|
|
The jail was configured to start on boot
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Create a jail called www
|
|
|
|
__jail_freebsd10 www --state present --ip "192.168.1.2" --jailbase /my/jail/base.tgz
|
2016-06-06 01:57:21 +00:00
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
# Remove the jail called www
|
|
|
|
__jail_freebsd10 www --state absent --jailbase /my/jail/base.tgz
|
2016-06-06 01:57:21 +00:00
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
# The jail www should not be started
|
|
|
|
__jail_freebsd10 www --state present --stopped \
|
|
|
|
--ip "192.168.1.2 netmask 255.255.255.0" \
|
|
|
|
--jailbase /my/jail/base.tgz
|
2016-06-06 01:57:21 +00:00
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
# Use the name variable explicitly
|
|
|
|
__jail_freebsd10 thisjail --state present --name www \
|
|
|
|
--ip "192.168.1.2" \
|
|
|
|
--jailbase /my/jail/base.tgz
|
2016-06-06 01:57:21 +00:00
|
|
|
|
2016-06-06 02:16:42 +00:00
|
|
|
# Go nuts
|
|
|
|
__jail_freebsd10 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
|
2016-06-06 01:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-06-30 13:12:32 +00:00
|
|
|
:strong:`jail`\ (8)
|
2016-06-17 19:28:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Jake Guffey <jake.guffey--@--jointheirstm.org>
|
2016-06-06 01:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2016-08-12 19:58:44 +00:00
|
|
|
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.
|