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 Loading

  1. all all Public

    Bootstrap all templates at once.

  2. wordpress wordpress Public

    Bastille template to install Wordpress with some sane defaults.

    PHP 1

  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.

    jail-templates/wordpress’s past year of commit activity
    PHP 1 0 0 0 Updated Sep 13, 2023
  • php-8.3 Public

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

    jail-templates/php-8.3’s past year of commit activity
    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.

    jail-templates/php-8.2’s past year of commit activity
    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.

    jail-templates/php-8.1’s past year of commit activity
    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.

    jail-templates/php-8.0’s past year of commit activity
    0 0 0 0 Updated Sep 3, 2023
  • php Public

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

    jail-templates/php’s past year of commit activity
    0 0 0 0 Updated Sep 3, 2023
  • .github Public

    Jail templates for Bastille

    jail-templates/.github’s past year of commit activity
    0 0 0 0 Updated Aug 27, 2023
  • jail-templates Public

    Umbrella repository for the jail-templates organization

    jail-templates/jail-templates’s past year of commit activity
    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.

    jail-templates/apache-https’s past year of commit activity
    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.

    jail-templates/apache-http’s past year of commit activity
    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…