Custom base jails for ZFS replication
Alexander Leidinger
Alexander at leidinger.net
Wed Dec 21 08:05:28 UTC 2016
Quoting Randy Westlund <rwestlun at gmail.com> (from Wed, 21 Dec 2016
00:59:23 -0500):
> Is there a jail management tool that lets you install packages in a base
> jail, and share that with multiple thin jails?
>
> I want to deploy many thin jails across multiple servers, and be able to
> update both the base system and ports in a base jail and then ZFS
> replicate that to the base jails on the production servers. I'd like
> the thin jails to only contain my customer-specific application data, so
> I don't have to manually update all of them.
>
> I don't see any way to do this with ezjail or iocage. Does anyone else
> have a deployment like this?
I don't but what about this idea (should work with ezjail and iocage
with a little bit of manual work):
- create an usr/local in the base-area
- create a jail just for installation of the packages you want
- mount the usr/local area from the base-area as read-write instead
of read-only in this install-jail (one time config action in ezjail,
not sure about iocage... maybe once in the fstab of the jail as a
null-mount if it doesn't clone everything automatically, or every time
as unmount+null-mount if it clones automatically)
- install in the install-jail what you need
- have the usr/local mounted read-only from all other jails
(respectively cloned in the iocage case)
Bye,
Alexander.
--
http://www.Leidinger.net Alexander at Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org netchild at FreeBSD.org : PGP 0x8F31830F9F2772BF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161221/4d6afe5a/attachment.sig>
More information about the freebsd-ports
mailing list