Skip to content
@jail-templates

jail-templates

Jail templates for Bastille

Jail templates for Bastille

FreeBSD jails make OS-level virtualization possible by creating multiple user-space instances that can be isolated from the rest of the operating system. Jails add a lot of flexibility and enhance security without adding much overhead.

Bastille is a great open-source manager for deploying and managing jails. We love it because it's efficient and fast, has a great featureset and is easily extendable because of its low complexity design. One of those great features is support for templates and that's where we come in to play.

Templates are flexible rules that can be applied to jails, for example to install and configure software, copy data and execute commands. We created templates for the packages we use ourselves and thought it would be nice to share them. What sets these templates apart from the templates offered by Bastille is a sane default configuration that follows security best practices. Template details are listed in each template repository's README.

Getting started

A template needs to be bootstrapped by Bastille before it can be used. Bootstrap a template by running:

bastille bootstrap https://github.com/jail-templates/$TEMPLATE

After bootstrapping the template can be applied by running:

bastille template $JAIL jail-templates/$TEMPLATE

Templates

Meta-templates

Meta-templates do not contain any template logic by themselves, but consist of two or more templates for ease of use. For example, instead of applying the apache-https, mariadb and php templates in sequence, you could just apply the famp-https meta-template instead.

The meta meta-template is special: it consists of all available templates. This is helpful for bootstrapping all available templates at once, but shouldn't be applied to containers.

Meta template Repository Description
all https://github.com/jail-templates/all Bootstrap all available templates.
- https://github.com/jail-templates/basics
- https://github.com/jail-templates/vnstat
- https://github.com/jail-templates/apache-http
- https://github.com/jail-templates/apache-https
- https://github.com/jail-templates/php
- https://github.com/jail-templates/php-8.0
- https://github.com/jail-templates/php-8.1
- https://github.com/jail-templates/php-8.2
- https://github.com/jail-templates/php-8.3
- https://github.com/jail-templates/mariadb
- https://github.com/jail-templates/mariadb-10.5
- https://github.com/jail-templates/mariadb-10.6
- https://github.com/jail-templates/mariadb-10.11
- https://github.com/jail-templates/famp-http
- https://github.com/jail-templates/famp-https
- https://github.com/jail-templates/wordpress
- https://github.com/jail-templates/nextcloud
famp-http https://github.com/jail-templates/famp-http Install and configure a full FAMP server.
- https://github.com/jail-templates/apache-http
- https://github.com/jail-templates/mariadb
- https://github.com/jail-templates/php
famp-https https://github.com/jail-templates/famp-https Install and configure a full FAMP server.
- https://github.com/jail-templates/apache-https
- https://github.com/jail-templates/mariadb
- https://github.com/jail-templates/php

Apache templates

Template Repository Description
apache-http https://github.com/jail-templates/apache-http Install and configure the Apache HTTP Server (HTTP-only).
apache-https https://github.com/jail-templates/apache-https Install and configure the Apache HTTP Server (HTTP/HTTPS).

PHP templates

Template Repository Description
php https://github.com/jail-templates/php Install and configure the latest stable PHP.
php-8.0 https://github.com/jail-templates/php-8.0 Install and configure PHP 8.0.
php-8.1 https://github.com/jail-templates/php-8.1 Install and configure PHP 8.1.
php-8.2 https://github.com/jail-templates/php-8.2 Install and configure PHP 8.2.
php-8.3 https://github.com/jail-templates/php-8.3 Install and configure PHP 8.3.

MySQL templates

Template Repository Description
mariadb https://github.com/jail-templates/mariadb Install and configure the latest stable MariaDB Server.
mariadb-10.5 https://github.com/jail-templates/mariadb-10.5 Install and configure MariaDB Server 10.5.
mariadb-10.6 https://github.com/jail-templates/mariadb-10.6 Install and configure MariaDB Server 10.6.
mariadb-10.11 https://github.com/jail-templates/mariadb-10.11 Install and configure MariaDB Server 10.11.

Web application templates

Template Repository Description
wordpress https://github.com/jail-templates/wordpress Install, configure and harden WordPress.
Nextcloud https://github.com/jail-templates/nextcloud Install, configure and harden Nextcloud.

Other templates

Template Repository Description
basics https://github.com/jail-templates/basics Install some basic apps and supress the MOTD.
vnstat https://github.com/jail-templates/vnstat Install vnStat and set /var/db/vnstat correctly.

Support

Templates will be maintained until their respective software version is end-of-life. Repositories will then be archived and removed from any meta-templates.

If you have a question, suggestion or find a bug, please let us know via an Issues in the relevant repository or send us an email.

License

All templates are distributed under the 3-Clause BSD License. See LICENSE in every template repository for more information.

Pinned

  1. all all Public

    Bootstrap all templates at once.

  2. wordpress wordpress Public

    Bastille template to install Wordpress with some sane defaults.

    PHP

  3. famp-https famp-https Public

    Bastille template to install and configure a full FAMP stack (HTTP/HTTPS) with some sane defaults.

  4. apache-https apache-https Public

    Bastille template to install and configure the Apache HTTP Server (HTTP/HTTPS) with some sane defaults.

  5. mariadb mariadb Public

    Bastille template to install and configure the latest stable MariaDB Server with some sane defaults.

  6. php php Public

    Bastille template to install and configure the latest stable PHP with some sane defaults.

Repositories

Showing 10 of 19 repositories
  • wordpress Public

    Bastille template to install Wordpress with some sane defaults.

    PHP 0 0 0 0 Updated Sep 13, 2023
  • php-8.3 Public

    Bastille template to install and configure PHP 8.3 with some sane defaults.

    0 0 0 0 Updated Sep 3, 2023
  • php-8.2 Public

    Bastille template to install and configure PHP 8.2 with some sane defaults.

    0 0 0 0 Updated Sep 3, 2023
  • php-8.1 Public

    Bastille template to install and configure PHP 8.1 with some sane defaults.

    0 0 0 0 Updated Sep 3, 2023
  • php-8.0 Public

    Bastille template to install and configure PHP 8.0 with some sane defaults.

    0 0 0 0 Updated Sep 3, 2023
  • php Public

    Bastille template to install and configure the latest stable PHP with some sane defaults.

    0 0 0 0 Updated Sep 3, 2023
  • .github Public

    Jail templates for Bastille

    0 0 0 0 Updated Aug 27, 2023
  • jail-templates Public

    Umbrella repository for the jail-templates organization

    0 0 4 0 Updated Aug 27, 2023
  • apache-https Public

    Bastille template to install and configure the Apache HTTP Server (HTTP/HTTPS) with some sane defaults.

    0 0 0 0 Updated Aug 26, 2023
  • apache-http Public

    Bastille template to install and configure the Apache HTTP Server (HTTP-only) with some sane defaults.

    0 0 0 0 Updated Aug 26, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…