CDIST-TYPE__JAIL_FREEBSD9(7)
cdist-type__jail_freebsd9 π
okay bestie, welcome to the cdist-type__jail_freebsd9(7) page β this is the manual for the cdist type that runs the whole jail situation on the FreeBSD side of the house π
β¨ NAME β¨
cdist-type__jail_freebsd9 β managing FreeBSD jails, the cdist way π
πΈ DESCRIPTION πΈ
So here's the vibe: this type is only for FreeBSD <= 9.x, and its whole job is managing jails. That's it, that's the girlboss job description π«Ά
π REQUIRED PARAMETERS π
stateβ either"present"or"absent", and if you don't say anything it just quietly defaults to"present"β¨jailbaseβ the location of the.tgzarchive that holds the base fs for your jails. like, the whole entire base filesystem. no biggie π
π¦ OPTIONAL PARAMETERS π¦
nameβ the name of the jail. if you don't pass one, it just uses theobject_idas the jail name, lowkey iconic of itipβ theifconfig-style IP/netmask combination for the jail guest. heads up bestie: ifstateis"present", this one is required πhostnameβ the FQDN for the jail guest. defaults to whatever thenameparameter is, cuteinterfaceβ the name of the physical interface on the jail server that the jail gets bound to. defaults to the first interface found in the output ofifconfig -lπ§devfs-rulesetβ the name of the devfs ruleset to associate with the jail. defaults to"jailrules."β οΈ this ruleset has to be copied to the server via another type, and to even use this option,devfs-enablemust be"true."jaildirβ where on the remote server the jail filesystems get hosted. defaults to/usr/jailπ
β BOOLEAN PARAMETERS β
stoppedβ do not start the jail πdevfs-disableβ whether to disallow devfs mounting within the jailonbootβ whether to add the jail torc.conf'sjail_listvariable
π CAVEATS π
ngl this is the part where you need to sit down. this type does not currently support modification of jail options. so if, for example, a jail needs its IP address or netmask changed? you can't just edit it. the jail has to be removed and then re-added with the correct IP address/netmask β or you go modify the appropriate line (jail_<name>_ip="...") within rc.conf through some alternate means. that's just how it is, no cap π
π MESSAGES π
startβ the jail was startedstopβ the jail was stoppedcreate:β the jail was createddeleteβ the jail was deletedonbootβ the jail was configured to start on boot
π EXAMPLES π
creating a jail called www, the classic:
# Create a jail called www
__jail_freebsd9 www --state present --ip "192.168.1.2" --jailbase /my/jail/base.tgz
and then removing her π:
# Remove the jail called www
__jail_freebsd9 www --state absent --jailbase /my/jail/base.tgz
jail exists but stays unbothered and unstarted:
# 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
using name explicitly because we love clarity:
# Use the name variable explicitly
__jail_freebsd9 thisjail --state present --name www \
--ip "192.168.1.2" \
--jailbase /my/jail/base.tgz
and finally, going absolutely feral with it π₯:
# 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
π SEE ALSO π
jail(8) β go read the real one too, bestie
π«Ά AUTHORS π«Ά
Jake Guffey <jake.guffey--@--eprotex.com> β ty 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, periodt π
this was version 7.0.0, dated Jul 31, 2022, straight from the cdist manual β slay, go manage some jails, you got this π¦β¨
π¦ 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