CDIST-TYPE__JAIL_FREEBSD10(7)
π cdist-type__jail_freeebsd10 π
okay bestie, welcome to the cdist-type__jail_freeebsd10 page from the cdist manual, section 7. yes it's spelled freeebsd10 in the NAME line, that's canon, don't @ me. sit down, grab a strawberry π, we're managing FreeBSD jails.
β¨ NAME β¨
cdist-type__jail_freeebsd10 β manage FreeBSD jails, no cap π
π¦ DESCRIPTION π¦
so like, this type is the one you pull out on FreeBSD >= 10.0 when you wanna manage jails. that's the whole vibe. literally what it's for. π
πΈ REQUIRED PARAMETERS πΈ
okay so these are the ones you actually need, no skipping:
stateβ either"present"or"absent", and if you don't say anything it defaults to"present". queen of having a backup plan πjailbaseβ the location of the.tgzarchive that holds the base fs for your jails. that's the whole foundation bestie, you can't build a jail without it β¨
π OPTIONAL PARAMETERS π
the lil extras, the seasoning, the garnish:
nameβ the name of the jail. default is to just use theobject_idas the jail name. lowkey convenient.ipβ the ifconfig style IP/netmask combo you use for the jail guest. heads up though: ifstateis"present,"this parameter is required. no IP, no jail, periodt. πhostnameβ the FQDN for the jail guest. defaults to thenameparameter. it's giving "I'll just copy your name, hope that's okay."interfaceβ the name of the physical interface on the jail server you wanna bind the jail to. defaults to the first interface found in the output ofifconfig -l. main character interface energy π§devfs-rulesetβ 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. and to use this option,devfs-enablemust be"true."read that twice bestie, it's a whole dependency chain.jaildirβ the location on the remote server to use for hosting jail filesystems. defaults to/usr/jail. cute lil home for your filesystems π
β BOOLEAN PARAMETERS β
just flip 'em on, no values needed:
stoppedβ do not start the jail. it exists, it's just not doing cardio rn π΄devfs-disableβ whether to disallow devfs mounting within the jail.onbootβ whether to add the jail torc.conf'sjail_listvariable. so it wakes up when the server does π
π CAVEATS π
okay this is the part where I hold your hand. this type does not currently support modification of jail options. fr fr. 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. there is no in-between. it's giving "no edits, only delete and redo." π«Ά
π MESSAGES π
these are the lil notes you get back:
startβ the jail was started πstopβ the jail was stopped πcreate:β the jail was created β¨deleteβ the jail was deleted πonbootβ the jail was configured to start on boot π
π EXAMPLES π
okay now the fun part, actual commands, copy them exactly bestie:
# Create a jail called www
__jail_freebsd10 www --state present --ip "192.168.1.2" --jailbase /my/jail/base.tgz
# Remove the jail called www
__jail_freebsd10 www --state absent --jailbase /my/jail/base.tgz
# 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
# Use the name variable explicitly
__jail_freebsd10 thisjail --state present --name www \
--ip "192.168.1.2" \
--jailbase /my/jail/base.tgz
# 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
the last one is literally "go nuts" and honestly? iconic. ate. π
π₯ SEE ALSO π₯
jail(8)β go read that one too, it's the whole lore
π AUTHORS π
Jake Guffey <jake.guffey--@--jointheirstm.org> β thank you for your service king π«‘
π COPYING π
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.
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page bestie π¦ this was cdist version 7.0.0, dated Jul 31, 2022, from the CDIST-TYPE__JAIL_FREEBSD10(7) manual. go forth and jail responsibly, mwah π
π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms