telmich/cdist — pull request #53 by jdguffey (2012-04-11 19:25:06+00:00)
Title:   __jail type

I created this type to deal with creating/deleting/modifying/executing jails (http://www.freebsd.org/cgi/man.cgi?query=jail) on FreeBSD systems.

The code is a bit more involved than I'd like, but it does work (I've tested it for all but a few edge cases).

One thing to note: as the base of a jail is going to differ from company/user to company/user and as the size of even a nanoBSD base is >100MB, I couldn't justify including a base in the type, so the user must create the base system to be used for jails and place it in $__type/files/jailbase.tgz, which __jail copies over to the target system.