Go to file
Kjeld Schouten-Lebbing cd5adfd94b
Jailman v1.1.0 (#24)
* set branch (+2 squashed commit)

Squashed commit:

[e322f24] remove placeholder

[8647131] palceholder

* Code cleanup and (primarily) consolidation (#21)

* set branch

* Exit 1 on iocage create failure

* - Move jailcreate to global function
- Remove Jailcreate.sh

* Add dataset creation function

* - add test script to test new global changes
- also create folder in jail with createmount

* fix

* make test executable

* more verbosity, fixing folder creation

* moving global dataset create

* move jails to new dataset-mount creation function

* remove test jail and test branch-ref

* Add Nextcloud (#22)

* Basic working nextcloud integration

* Enable persistent reinstall of Nextcloud

* prepare for dev merge

* Licence alert

* Add external database and integrated jail

* small improvements and update script

* Add mariadb to dev (#31)

* Working MariaDB config

* - Set ZFS settings for DB on Nextcloud and MariaDB
- Cleanup MariaDB

* prepare for dev merge

* Niceify Readme (#34)

* put content from master into it

* Some readme itteration

* more niceification

* [WIP} Wiki workflow test (#37)

introduce automatic wiki generation

* Add Bitwarden support (#35)

* Nextcloud-Cleanup for v1.1.0 (#40)

* Nextcloud cleanup
- add db-type sanity check
- remove some integrated db checks
- Move ssl to /config/ssl
- remove integrated databases

* slight default tweaking

* fix mariadb install bug

* QA cycle
2020-03-13 23:59:05 +01:00
.github Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
docs Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
jails Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
wiki Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
.gitignore The Birth of JailMan (#2) 2020-03-06 21:32:55 +01:00
config.yml.example Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
global.sh Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00
jailman.sh Jailman v1.1.0 (#24) 2020-03-13 23:59:05 +01:00

JailMan is a collection of shell scripts designed to make it easier to install all sorts of iocage Jails on FreeNAS.


GitHub last commit Krihelimeter GitHub Release License: GPL v2 License

Intro

There are a lot of great scripts out there to create all sorts of custom jails on FreeNAS. Sadly enough, they all take their own approach to configuration, which lead to a lot of time wasted configuring all sorts of different scripts.

We do not aim to be some sort of XKCD like "solution to replace all solutions", but aim to simply improve, iterate and integrate the great work others have already put forward.

The goal of this project is to be able to install, update, reinstall, upgrade and delete most of your services by just running a single command using a single config file. While doing this we aim for a "docker like" scenario, where the jail is completely disposable and all configuration is saved outside of the jail.

Getting started

Installing

  • Get into FreeNAS using the in-gui console or SSH. Run the following commands to install jailman:
  • git clone https://github.com/Ornias1993/jailman.git
  • cd jailman
  • cp config.yml.example config.yml
  • edit config.yml to reflect your personal settings (optional, see "use")
  • Run one of the commands under "How-To Use"

Updating

This script includes an autoupdate feature which checks if changes to the script has been posted to github.

How-To Use

Replace $jailname with the name of the jail you want to install. For supported jails, please see this readme or config.yml.example

  • First: CD into the directory you downloaded jailman into (see above) example: cd /root/jailman

  • Install: ./jailman.sh -i $jailname Example: ./jailman.sh -i sonarr

  • ReInstall: ./jailman.sh -r $jailname Example: ./jailman.sh -r sonarr

  • Destroy ./jailman.sh -d $jailname Example: ./jailman.sh -d sonarr

You can also do multiple jails in one pass: Example: jailman.sh -i sonarr radarr lidarr

This installs the jail, creates the config dataset if needed, installs all packages and sets them up for you. Only thing you need to do is do the setup of the packages in their respective GUI. All settings for the applications inside the jails are persistent across reinstalls, so don't worry reinstalling!

config.yml.example includes basic configuration for all jails. Basic means: The same setup as a FreeNAS plugin would've, DHCP on bridge0.

Currently Supported Services

General

  • organizr
  • py-kms
  • nextcloud

Backend

  • mariadb

Downloads

  • transmission
  • jackett

Media

  • plex
  • tautulli
  • sonarr
  • radarr
  • lidarr

Get involved

Preparing your own copy of JailMan

Getting involved with JailMan and creating your own Jails, is really simple although experience with Bash, BSD and iocage is highly recommended.

  • Fork the JailMan Repository and clone your own fork to disk.
  • Create a new branch, starting from the dev branch (with all current development changes)
  • Open Jailman.sh and BRANCH="dev"into your own branch.

Making changes

To add a jail, you need 4 things:

  • A jailfolder under jails/
  • an install script in the jail folder, named install.sh
  • an update script in the jail folder, named update.sh
  • an entry in config.yml with the name of your jail

All jails created by JailMan start with their own persistant data folder in a seperate dataset, mounted under /config. You can safely use this, or create additional datasets and mount those.

To make your experience making changes to Jailman as easy as possible, we already made some convenience functions in global.sh, those are available to your jail install and update scripts from the start!

But above all: Have fun building it!

LICENCE

This work is dual licenced under GPLv2 and BSD-2 clause

Sub-Licences

Some sub-modules available under "jails" might be licenced under a different licence. Please be aware of this and take note of any LICENCE files signaling a differently licenced sub-module.


built-with-resentment contains-technical-debt