Best Practices for templates and pushing changes to downstream jails

30 views
Skip to first unread message

jochen...@googlemail.com

unread,
Oct 30, 2019, 11:30:04 AM10/30/19
to iocage
Hi,

let's assume I work with templates.There is something I want to improve in my template which I do. Install different packages, modify some files. Now let's also assume I already have 20+ jails originating from that template I would want to get the update, too. Is there a best practice for this?

Thank you
Jochen

Brandon Schneider

unread,
Oct 30, 2019, 11:39:35 AM10/30/19
to jochen...@googlemail.com, iocage

Hi Jochen,
Templates are more of a jumping off point for a jail. Just to bootstrap, they don’t have a living link beyond that. To do what you’re suggesting is better achieved by making a custom release and then creating base jails off of that. The jails will continue to inherit changes you make by doing things that way.

Creating a custom release isn’t too scary, if you fetch a RELEASE you can zfs clone that to whatever name you want and modify that to your hearts content. Or take a template jail you’ve customized and zfs send that under the iocage/releases dataset.

Hope that helps!

Brandon

--
You received this message because you are subscribed to the Google Groups "iocage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iocage+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iocage/0c259823-1da5-456e-b60f-d13ce96eeda6%40googlegroups.com.
signature.asc

jochen...@googlemail.com

unread,
Oct 31, 2019, 6:17:12 AM10/31/19
to iocage
Can you please explain in a short manner how this works with basejails?
My assumption is like this:
- create jail and configure it to my likings
- convert it into a basejail
- create downstream jails from this basejail

Am Mittwoch, 30. Oktober 2019 16:39:35 UTC+1 schrieb Brandon Schneider:

Hi Jochen,
Templates are more of a jumping off point for a jail. Just to bootstrap, they don’t have a living link beyond that. To do what you’re suggesting is better achieved by making a custom release and then creating base jails off of that. The jails will continue to inherit changes you make by doing things that way.

Creating a custom release isn’t too scary, if you fetch a RELEASE you can zfs clone that to whatever name you want and modify that to your hearts content. Or take a template jail you’ve customized and zfs send that under the iocage/releases dataset.

Hope that helps!

Brandon

On 30 Oct 2019, at 10:30, jochen.demmer via iocage wrote:

Hi,

let's assume I work with templates.There is something I want to improve in my template which I do. Install different packages, modify some files. Now let's also assume I already have 20+ jails originating from that template I would want to get the update, too. Is there a best practice for this?

Thank you
Jochen

--
You received this message because you are subscribed to the Google Groups "iocage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages