1. 7
    1. 3

      Nice.

      There are a few great libraries for doing jails that can be done remotely (jail host is a remote system) that allow accessing a jail via the jail host

      1. 1

        Thank you for the links! I already read all of them, but they can come in handy for anybody else who wants to play around with jails. I’m planning on writing a series myself, from the perspective of someone who mostly worked on Linux.

        I currently have my own setup here: https://git.sr.ht/~tudor/bsd-configs. Jails are managed by using the jail host as an SSH jump host, for Ansible to then SSH into the jails. My setup is currently based on Bastille, but I want to slowly migrate away from it: Bastille is currently used only to set up the jails and to manage the releases; I’d like to let Ansible do that while using things already baked into the FreeBSD base system, such as jail.conf includes and /etc/rc.d/jail. Your own ansible-jails project is going to be very helpful in that regard, thanks for publishing it! I also got a nice idea from the second to last link, to dynamically generate an inventory of jails based on a jails list I declare in a variable.