Bootstrap cleanup (#4)

* README cleanup

* template migration

* convert percona to new bastillefile format

* convert gitlab to bastillefile format

* convert php to bastillefile format

---------

Co-authored-by: Barry McCormick <bmccormick@debianbeast.maildragon.com>
This commit is contained in:
Barry McCormick
2023-10-08 10:48:01 -07:00
committed by GitHub
parent 79a809a407
commit 11e0766184
116 changed files with 1053 additions and 264 deletions

View File

@@ -1,11 +1,6 @@
## influxdb ## influxdb
Bastille Template to bootstrap InfluxDB Bastille Template to bootstrap InfluxDB
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/influxdb bastille template TARGET databases/influxdb

View File

@@ -1,11 +1,6 @@
## mariadb ## mariadb
Bastille template to bootstrap MariaDB Server Bastille template to bootstrap MariaDB Server
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/mariadb bastille template TARGET databases/mariadb

View File

@@ -1,11 +1,6 @@
# Memcached # Memcached
Bastille template to bootstrap Memcached Bastille template to bootstrap Memcached
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/memcached bastille template TARGET databases/memcached

View File

@@ -1,11 +1,6 @@
## mysql ## mysql
Bastille template to bootstrap MySQL Bastille template to bootstrap MySQL
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/mysql-server bastille template TARGET databases/mysql-server

View File

@@ -0,0 +1,4 @@
PKG percona57-server
PKG percona57-client
SYSRC mysql_enable=YES
SERVICE mysql-server start

View File

@@ -0,0 +1,15 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/percona/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/percona/commits/master)
## percona
Bastille Template: percona
Fetch and apply this template with:
```shell
bastille bootstrap https://gitlab.com/bastillebsd-templates/percona
bastille template TARGET bastillebsd-templates/percona
```
## Description
This template installs a percona server and client.

View File

@@ -1,11 +1,6 @@
## redis ## redis
Bastille template to bootstrap Redis Bastille template to bootstrap Redis
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/redis bastille template TARGET databases/redis

View File

@@ -1,11 +1,6 @@
## tile38 ## tile38
Bastille template to bootstrap Tile38 Bastille template to bootstrap Tile38
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET databases/tile38-server bastille template TARGET databases/tile38-server

View File

@@ -1,11 +1,6 @@
# Jenkins # Jenkins
Bastille template to bootstrap Jenkins Bastille template to bootstrap Jenkins
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET devel/jenkins bastille template TARGET devel/jenkins

View File

@@ -1,11 +1,6 @@
## dnsmasq ## dnsmasq
Bastille template to bootstrap dnsmasq Bastille template to bootstrap dnsmasq
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET dns/dnsmasq bastille template TARGET dns/dnsmasq

View File

@@ -1,11 +1,6 @@
## unbound-adblock ## unbound-adblock
Bastille template to bootstrap Unbound + adblock Bastille template to bootstrap Unbound + adblock
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET dns/unbound-adblock bastille template TARGET dns/unbound-adblock

View File

@@ -1,11 +1,6 @@
## unbound ## unbound
Bastille Template for an Unbound DNS container Bastille Template for an Unbound DNS container
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET dns/unbound bastille template TARGET dns/unbound

View File

@@ -0,0 +1,19 @@
ARG MINECRAFT_MEMX="1024M"
ARG MINECRAFT_MEMS="1024M"
ARG MINECRAFT_ARGS=""
CONFIG set enforce_statfs=1;
CONFIG set allow.mount.fdescfs;
CONFIG set allow.mount.procfs;
RESTART
PKG dialog4ports tmux openjdk17
MOUNT /usr/ports usr/ports nullfs ro 0 0
CP etc /
CP var /
CMD make -C /usr/ports/games/minecraft-server install clean
CP usr /
SYSRC minecraft_enable=YES
SYSRC minecraft_memx=${MINECRAFT_MEMX}
SYSRC minecraft_mems=${MINECRAFT_MEMS}
SYSRC minecraft_args=${MINECRAFT_ARGS}
SERVICE minecraft restart
RDR tcp 25565 25565

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019-2022, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,44 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/minecraft-server/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/minecraft-server/commits/master)
## minecraft-server
Bastille template for a minecraft server.
Note: by installing this template you agree to the terms of the [Minecraft EULA](https://aka.ms/MinecraftEULA).
This template includes the `eula=true` acceptance and `LICENSES_ACCEPTED+= minecraft`
settings. If you cannot abide the terms of the Minecraft EULA *do not* apply this template.
### requirements
Due to license restrictions (see above Minecraft EULA), redistribution of
Minecraft server is prohibited. This means you must build the package manually
from the FreeBSD ports tree.
This template will automate all the build steps but depends on `/usr/ports`
existing on the host system.
To install (or update) `/usr/ports` on the host system use `portsnap` as seen here:
```shell
ishmael ~ # portsnap fetch auto
```
Note: the ports tree is mounted read-only within the container.
## Apply template
```shell
ishmael ~ # bastille template TARGET bastillebsd-templates/minecraft-server
```
## Access server console
The minecraft server will run in `STANDALONE` mode meaning the service execution
will happen within a `tmux` session. To access this session use this command:
```shell
ishmael ~ # bastille service TARGET minecraft console
```
Tip: `tmux` session management is handled using `ctrl-b` prefix. To exit the
session press `ctrl-b d`.

View File

@@ -0,0 +1,2 @@
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0

View File

@@ -0,0 +1,4 @@
WRKDIRPREFIX= /var/ports
DISTDIR= /var/ports/distfiles
PACKAGES= /var/ports/packages
LICENSES_ACCEPTED+= minecraft

View File

@@ -0,0 +1,3 @@
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).
#Mon Oct 31 22:07:13 MDT 2022
eula=true

View File

@@ -0,0 +1,6 @@
# This file is auto-generated by 'make config'.
# Options for minecraft-server-1.19.2
_OPTIONS_READ=minecraft-server-1.19.2
_FILE_COMPLETE_OPTIONS_LIST= DAEMON STANDALONE
OPTIONS_FILE_SET+=DAEMON
OPTIONS_FILE_UNSET+=STANDALONE

View File

@@ -1,11 +1,6 @@
# OpenJDK # OpenJDK
Bastille template to bootstrap OpenJDK Bastille template to bootstrap OpenJDK
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET java/openjdk bastille template TARGET java/openjdk

View File

@@ -1,11 +1,6 @@
## golang ## golang
Bastille template to bootstrap Go Devel Bastille template to bootstrap Go Devel
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/go-devel bastille template TARGET lang/go-devel

View File

@@ -1,11 +1,6 @@
## golang ## golang
Bastille template to bootstrap Go Bastille template to bootstrap Go
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/go bastille template TARGET lang/go

View File

@@ -1,11 +1,6 @@
## golang ## golang
Bastille template to bootstrap Golang 119 Bastille template to bootstrap Golang 119
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/go119 bastille template TARGET lang/go119

View File

@@ -1,11 +1,6 @@
## golang ## golang
Bastille template to bootstrap Go 1.21 Bastille template to bootstrap Go 1.21
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/go121 bastille template TARGET lang/go121

View File

@@ -1,11 +1,6 @@
## luajit ## luajit
Bastille template to bootstrap LuaJIT Bastille template to bootstrap LuaJIT
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/luajit bastille template TARGET lang/luajit

29
lang/perl/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019, Christer Edwards
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1
lang/perl/PKG Normal file
View File

@@ -0,0 +1 @@
perl5-devel

10
lang/perl/README.md Normal file
View File

@@ -0,0 +1,10 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/perl/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/perl/commits/master)
## perl
Bastille Template to bootstrap perl5-devel
## Usage
```shell
bastille template TARGET bastillebsd-templates/perl
```

3
lang/php/Bastillefile Normal file
View File

@@ -0,0 +1,3 @@
PKG php74
SYSRC php_fpm_enable=YES
SERVICE php-fpm start

29
lang/php/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019, Christer Edwards
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

7
lang/php/README.md Normal file
View File

@@ -0,0 +1,7 @@
# PHP
Bastille template to bootstrap PHP
## Usage
```shell
bastille template TARGET bastillebsd-templates/php
```

View File

@@ -1,11 +1,6 @@
# Python # Python
Bastille template to bootstrap Python Bastille template to bootstrap Python
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/python bastille template TARGET lang/python

29
lang/ruby/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019, Christer Edwards
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1
lang/ruby/PKG Normal file
View File

@@ -0,0 +1 @@
ruby

10
lang/ruby/README.md Normal file
View File

@@ -0,0 +1,10 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/ruby/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/ruby/commits/master)
## ruby
Bastille template to bootstrap ruby
## Usage
```shell
bastille template TARGET bastillebsd-templates/ruby
```

View File

@@ -1,11 +1,6 @@
## rust # rust
Bastille Template to bootstrap Rust Bastille Template to bootstrap Rust
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET lang/rust bastille template TARGET lang/rust

View File

@@ -1,11 +1,6 @@
## postfix ## postfix
Bastille template to bootstrap postfix Bastille template to bootstrap postfix
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET mail/postfix bastille template TARGET mail/postfix

7
misc/n8n/Bastillefile Normal file
View File

@@ -0,0 +1,7 @@
PKG npm
CMD mkdir /usr/local/etc/rc.d/
CMD npm install pm2@latest -g
CMD npm install n8n@latest -g
CMD pm2 start n8n
CMD pm2 startup
CMD pm2 save

29
misc/n8n/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019-2022, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

12
misc/n8n/README.md Normal file
View File

@@ -0,0 +1,12 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/n8n/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/n8n/commits/master)
## n8n
Bastille Template for a n8n
## Usage
```shell
ishmael ~ # bastille template TARGET bastillebsd-templates/n8n
```

View File

@@ -0,0 +1,11 @@
ARG port=80
ARG version="1.22.0"
PKG npm-node14 git-lite
CMD npm install pm2 -g
CMD pm2 install pm2-logrotate
CMD pm2 startup
CMD git clone -b "${version}" https://github.com/louislam/uptime-kuma.git
CMD cp -R uptime-kuma/ .
CMD npm run setup
CMD pm2 start server/server.js --name uptime-kuma -- --port="${port}" --host=0.0.0.0
CMD pm2 save

30
misc/uptime-kuma/LICENSE Normal file
View File

@@ -0,0 +1,30 @@
BSD 3-Clause License
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,9 @@
## Uptime-Kuma
Bastille Template for [Uptime Kuma](https://github.com/louislam/uptime-kuma) a self-hosted monitoring tool
## Usage
```shell
bastille template TARGET bastillebsd-templates/uptime-kuma
```

View File

@@ -0,0 +1,8 @@
CMD mkdir -p /usr/local/etc/pkg/repos
CMD echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
CONFIG set allow.mlock=1;
CONFIG set ip6=inherit;
RESTART
PKG jellyfin
SYSRC jellyfin_enable=TRUE
SERVICE jellyfin start

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,8 @@
## jellyfin
Bastille Template for Jellyfin
## Usage
```shell
bastille template TARGET bastillebsd-templates/jellyfin
```

View File

@@ -1,12 +1,6 @@
## plexmediaserver-plexpass ## plexmediaserver-plexpass
Bastille template for PlexMediaServer PlexPass Bastille template for PlexMediaServer PlexPass
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell

View File

@@ -1,11 +1,6 @@
## plexmediaserver ## plexmediaserver
Bastille Template for a Plex Server Jail Bastille Template for a Plex Server Jail
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET multimedia/plexmediaserver bastille template TARGET multimedia/plexmediaserver

View File

@@ -1,11 +1,6 @@
## prometheus ## prometheus
Bastille Template to bootstrap Prometheus. Bastille Template to bootstrap Prometheus.
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET net-mgmt/prometheus bastille template TARGET net-mgmt/prometheus

View File

@@ -0,0 +1,21 @@
ARG version="2.8.77"
ARG username="semaphore"
ARG password="SEmaPh0rE"
ARG email="semaphore@example.com"
ARG dbusername="semaphore_user"
ARG dbname="semaphore_db"
ARG dbpassword="SEmaPh0rE"
ARG rootpassdb="SEmaPh0rE"
ARG ipadd=$(ifconfig | grep 'inet' | awk -F ' ' '{ print $2 }')
PKG semaphore mysql80-server
CP usr /
CMD curl -L -O -C - https://github.com/ansible-semaphore/semaphore/releases/download/v"${version}"/semaphore_"${version}"_freebsd_amd64.tar.gz
CMD tar -zxvf semaphore_"${version}"_freebsd_amd64.tar.gz -C /usr/local/bin/ semaphore
CMD sed -i '' 's/"user": "",/"user": "${dbusername}",/g' /usr/local/etc/semaphore/config.json
CMD sed -i '' 's/"pass": "",/"pass": "${dbpassword}",/g' /usr/local/etc/semaphore/config.json
CMD sed -i '' 's/"name": "",/"name": "${dbname}",/g' /usr/local/etc/semaphore/config.json
SYSRC mysql_enable=YES
SERVICE mysql-server start
CMD mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '"${rootpassdb}"';CREATE DATABASE "${dbname}";CREATE USER '"${dbusername}"'@'"${ipadd}"' IDENTIFIED WITH mysql_native_password BY '"${dbpassword}"';GRANT ALL ON "${dbname}".* TO '"${dbusername}"'@'"${ipadd}"';FLUSH PRIVILEGES;";
CMD semaphore user add --admin --login "${username}" --name "${username}" --email "${email}" --password ${password}
CMD nohup semaphore server --config /usr/local/etc/semaphore/config.json &

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2022, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,9 @@
## semaphore
Bastille Template for Semaphore
## Usage
```shell
ishmael ~ # bastille template TARGET bastillebsd-templates/semaphore
```

View File

@@ -0,0 +1,59 @@
{
"mysql": {
"host": "127.0.0.1:3306",
"user": "",
"pass": "",
"name": "",
"options": null
},
"bolt": {
"host": "",
"user": "",
"pass": "",
"name": "",
"options": null
},
"postgres": {
"host": "",
"user": "",
"pass": "",
"name": "",
"options": null
},
"dialect": "mysql",
"port": "",
"interface": "",
"tmp_path": "/tmp/semaphore",
"cookie_hash": "",
"cookie_encryption": "",
"access_key_encryption": "",
"email_sender": "",
"email_host": "",
"email_port": "",
"email_username": "",
"email_password": "",
"web_host": "",
"ldap_binddn": "",
"ldap_bindpassword": "",
"ldap_server": "",
"ldap_searchdn": "",
"ldap_searchfilter": "",
"ldap_mappings": {
"dn": "",
"mail": "",
"uid": "",
"cn": ""
},
"telegram_chat": "",
"telegram_token": "",
"slack_url": "",
"max_parallel_tasks": 0,
"email_alert": false,
"email_secure": false,
"telegram_alert": false,
"slack_alert": false,
"ldap_enable": false,
"ldap_needtls": false,
"ssh_config_path": "",
"demo_mode": false
}

View File

@@ -1,11 +1,6 @@
## telegraf ## telegraf
Bastille Template to bootstrap Telegraf Bastille Template to bootstrap Telegraf
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET net-mgmt/telegraf bastille template TARGET net-mgmt/telegraf

View File

@@ -0,0 +1,4 @@
ARG version=7
PKG unifi"${version}"
SYSRC unifi_enable="YES"
SERVICE unifi start

7
net-mgmt/unifi/README.md Normal file
View File

@@ -0,0 +1,7 @@
# Unifi
Bastille template to bootstrap Unifi
## Usage
```shell
bastille template TARGET bastillebsd-templates/unifi
```

View File

@@ -0,0 +1,4 @@
PKG zabbix54-agent
CMD cp /usr/local/etc/zabbix54/zabbix_agentd.conf.sample /usr/local/etc/zabbix54/zabbix_agentd.conf
SYSRC zabbix_agentd_enable=YES
SERVICE zabbix_agentd start

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019-2021, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,27 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/zabbix-agent/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/zabbix-agent/commits/master)
## Usage
```shell
bastille template TARGET bastillebsd-templates/zabbix-agent
```
## Post Install Steps
Once this is done running there are a couple of manual steps you have to do. First edit the file
/usr/local/etc/zabbix5/zabbix_agentd.conf
and edit the following lines with your server ip/hostname, and your client's hostname:
Server=1.1.1.1
ServerActive=1.1.1.1
Hostname=hostname.domain.tld
then restart the zabbix agent:
```shell
bastille service TARGET zabbix-agentd restart
```
and at this point you can add this client to your zabbix server.

View File

@@ -0,0 +1,25 @@
INCLUDE bastillebsd-templates/nginx
INCLUDE bastillebsd-templates/mysql-server
PKG zabbix54-server zabbix54-frontend zabbix54-agent
SYSRC zabbix_server_enable=YES
SYSRC zabbix_agentd_enable=YES
SYSRC nginx_enable=YES
## Make the needed SCRIPTS directory
#CMD mkdir /usr/local/etc/zabbix5/scripts
## Overlay to the system the scripts needed
#OVERLAY zfs-discovery.sh /usr/local/zabbix5/scripts
#OVERLAY zpool-discovery.sh /usr/local/zabbix5/scripts
#OVERLAY nginx.conf /usr/local/etc/nginx/nginx.conf
# Set the correct owner for the scipts directory
#CMD chown -R zabbix /usr/lcoal/etc/zabbix5/scripts
#CMD chmod +x /usr/local/etc/zabbix5/scripts
CMD cp /usr/local/etc/zabbix54/zabbix_agentd.conf.sample /usr/local/etc/zabbix54/zabbix_agentd.conf
CMD cp /usr/local/etc/zabbix54/zabbix_server.conf.sample /usr/local/etc/zabbix54/zabbix_server.conf
SERVICE zabbix_agentd start
SERVICE zabbix_server start

View File

@@ -0,0 +1,9 @@
## zabbix-server
Bastille template to bootstrap zabbix-server
## Usage
```shell
bastille template TARGET bastillebsd-templates/zabbix-server
```

View File

@@ -0,0 +1,29 @@
## Change ARG values for customizing
ARG user=bazarr
ARG group=bazarr
ARG data_dir=/usr/local/bazarr
ARG out_port=6767
## allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute) but is not a requirement.
#CONFIG set allow.raw_sockets;
#################################################################
###################### DO NOT EDIT #############################
CONFIG set allow.mlock=1;
CONFIG set enforce_statfs=1
RESTART
PKG bazarr
SYSRC bazarr_enable=YES
SYSRC bazarr_user="${user}"
SYSRC bazarr_group="${group}"
SYSRC bazarr_data_dir="${data_dir}"
SERVICE bazarr start
RDR tcp ${out_port} 6767
#################################################################
#################################################################
## The updater is disabled by default. The pkg-message gives instructions on how to enable the updater but keep in mind: this can break things like pkg check -s and pkg remove for bazarr when the built-in updater replaces files. If you like to use the updater in bazarr UI, remove (#)
#CMD rm /usr/local/share/bazarr/package_info
#CMD chown -R ${user}:${group} /usr/local/share/bazarr/bin
SERVICE bazarr restart

29
net-p2p/bazarr/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

15
net-p2p/bazarr/README.md Normal file
View File

@@ -0,0 +1,15 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/bazarr/badges/main/pipeline.svg)](https://gitlab.com/bastillebsd-templates/bazarr/commits/main)
## Bazarr
Bazarr is a companion application to Sonarr and Radarr that manages and downloads subtitles based on your requirements.
## Usage
```shell
bastille template TARGET bastillebsd-templates/bazarr
```
For more options edit `/usr/local/bastille/templates/bastillebsd-templates/bazarr/Bastillefile`

View File

@@ -0,0 +1,29 @@
## Change ARG values for customizing
ARG user=lidarr
ARG group=lidarr
ARG data_dir=/usr/local/lidarr
ARG out_port=8686
## allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute) but is not a requirement.
#CONFIG set allow.raw_sockets;
#################################################################
###################### DO NOT EDIT #############################
CONFIG set allow.mlock=1;
CONFIG set enforce_statfs=1;
RESTART
PKG lidarr
SYSRC lidarr_enable=YES
SYSRC lidarr_user="${user}"
SYSRC lidarr_group="${group}"
SYSRC lidarr_data_dir="${data_dir}"
SERVICE lidarr start
RDR tcp ${out_port} 8686
#################################################################
#################################################################
## The updater is disabled by default. The pkg-message gives instructions on how to enable the updater but keep in mind: this can break things like pkg check -s and pkg remove for lidarr when the built-in updater replaces files. If you like to use the updater in lidarr UI, remove (#)
#CMD rm /usr/local/share/lidarr/package_info
#CMD chown -R ${user}:${group} /usr/local/share/lidarr/bin
SERVICE lidarr restart

29
net-p2p/lidarr/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

16
net-p2p/lidarr/README.md Normal file
View File

@@ -0,0 +1,16 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/lidarr/badges/main/pipeline.svg)](https://gitlab.com/bastillebsd-templates/lidarr/commits/main)
## Lidarr
Lidarr is a music collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new tracks from your favorite artists and will grab, sort and rename them. It can also be configured
to automatically upgrade the quality of files already downloaded when a better quality format becomes available.
## Usage
```shell
bastille template TARGET bastillebsd-templates/lidarr
```
For more options edit `/usr/local/bastille/templates/bastillebsd-templates/lidarr/Bastillefile`

View File

@@ -0,0 +1,29 @@
## Change ARG values for customizing
ARG user=prowlarr
ARG group=prowlarr
ARG data_dir=/usr/local/prowlarr
ARG out_port=9696
## allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute) but is not a requirement.
#CONFIG set allow.raw_sockets;
#################################################################
###################### DO NOT EDIT #############################
CONFIG set allow.mlock=1; #
CONFIG set ip6=inherit; #
RESTART #
PKG prowlarr #
SYSRC prowlarr_enable=YES #
SYSRC prowlarr_user="${user}" #
SYSRC prowlarr_group="${group}" #
SYSRC prowlarr_data_dir="${data_dir}" #
SERVICE prowlarr start #
RDR tcp ${out_port} 9696 #
#################################################################
#################################################################
## The updater is disabled by default. The pkg-message gives instructions on how to enable the updater but keep in mind: this can break things like pkg check -s and pkg remove for prowlarr when the built-in updater replaces files. If you like to use the updater in Prowlarr UI, remove (#)
#CMD rm /usr/local/share/prowlarr/package_info
#CMD chown -R ${user}:${group} /usr/local/share/prowlarr/bin
SERVICE prowlarr restart

29
net-p2p/prowlarr/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

View File

@@ -0,0 +1,12 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/prowlarr/badges/main/pipeline.svg)](https://gitlab.com/bastillebsd-templates/prowlarr/commits/main)
## Prowlarr
Prowlarr is an indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps. Prowlarr supports management of both Torrent Trackers and Usenet Indexers. It integrates seamlessly with Lidarr, Mylar3, Radarr, Readarr, and Sonarr offering complete management of your indexers with no per app Indexer setup required (we do it all).
## Usage
```shell
bastille template TARGET bastillebsd-templates/prowlarr
```
For more options edit `/usr/local/bastille/templates/bastillebsd-templates/Prowlarr/Bastillefile`

View File

@@ -0,0 +1,6 @@
CONFIG set allow.mlock=1;
CONFIG set ip6=inherit;
RESTART
PKG radarr
SYSRC radarr_enable="YES"
SERVICE radarr start

29
net-p2p/radarr/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

11
net-p2p/radarr/README.md Normal file
View File

@@ -0,0 +1,11 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/radarr/badges/main/pipeline.svg)](https://gitlab.com/bastillebsd-templates/radarr/commits/main)
## Radarr
Bastille Template for Radarr
## Usage
```shell
bastille template TARGET bastillebsd-templates/radarr
```

View File

@@ -0,0 +1,6 @@
CONFIG set allow.mlock=1;
CONFIG set ip6=inherit;
RESTART
PKG sonarr
SYSRC sonarr_enable="YES"
SERVICE sonarr start

29
net-p2p/sonarr/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2023, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

8
net-p2p/sonarr/README.md Normal file
View File

@@ -0,0 +1,8 @@
## sonarr
Bastille Template for Sonarr
## Usage
```shell
bastille template TARGET bastillebsd-templates/sonarr
```

View File

@@ -1,11 +1,6 @@
## asterisk ## asterisk
Bastille template to boostrap asterisk Bastille template to boostrap asterisk
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET net/asterisk bastille template TARGET net/asterisk

View File

@@ -1,11 +1,6 @@
# openssh-server # openssh-server
Bastille template to bootstrap openssh-server Bastille template to bootstrap openssh-server
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET security/openssh-server bastille template TARGET security/openssh-server

View File

@@ -1,11 +1,6 @@
# Vault # Vault
Bastille template for Hashicorp Vault Bastille template for Hashicorp Vault
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET security/vault bastille template TARGET security/vault

View File

@@ -1,11 +1,6 @@
## zsh-antigen ## zsh-antigen
Bastille Template to setup zsh-antigen Bastille Template to setup zsh-antigen
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET shells/zsh-antigen bastille template TARGET shells/zsh-antigen

View File

@@ -1,11 +1,6 @@
# consul # consul
Bastille template to bootstrap consul Bastille template to bootstrap consul
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET sysutils/consul bastille template TARGET sysutils/consul

View File

@@ -1,11 +1,6 @@
# salt-master # salt-master
Bastille template to bootstrap Salt Master Bastille template to bootstrap Salt Master
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET sysutils/salt-master bastille template TARGET sysutils/salt-master

View File

@@ -1,11 +1,6 @@
# salt-minion # salt-minion
Bastille template to bootstrap Salt Minion Bastille template to bootstrap Salt Minion
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
ishmael ~ # bastille template TARGET sysutils/salt-minion ishmael ~ # bastille template TARGET sysutils/salt-minion

View File

@@ -1,12 +1,6 @@
## syslog-ng ## syslog-ng
Bastille template to bootstrap syslog-ng Bastille template to bootstrap syslog-ng
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET sysutils/syslog-ng bastille template TARGET sysutils/syslog-ng

View File

@@ -1,11 +1,6 @@
# Tarsnap # Tarsnap
Bastille template for Tarsnap Bastille template for Tarsnap
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd-templates/tarsnap
```
## Usage ## Usage
```shell ```shell
bastille template TARGET sysutils/tarsnap bastille template TARGET sysutils/tarsnap

View File

@@ -1,11 +1,6 @@
# elasticsearch # elasticsearch
Bastille template to bootstrap Elasticserch 7 Bastille template to bootstrap Elasticserch 7
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET textproc/elasticsearch7 bastille template TARGET textproc/elasticsearch7

View File

@@ -1,11 +1,6 @@
## kibana ## kibana
Bastille template to bootstrap kibana 7 Bastille template to bootstrap kibana 7
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET textproc/kibana7 bastille template TARGET textproc/kibana7

View File

@@ -0,0 +1,18 @@
bastille_template_test:
tags:
- bastille-template
- bastillebsd-template
script:
- doas bastille version
- doas bastille bootstrap "${CI_PROJECT_URL}"
- doas bastille create 122-jail 12.2-RELEASE 10.17.89.122
- doas bastille create 130-jail 13.0-RELEASE 10.17.89.130
- doas bastille template ALL "${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}"
- doas bastille cmd ALL freebsd-version
- doas bastille sysrc ALL -ae
- doas bastille cmd ALL ps -auxw
- doas bastille cmd ALL sockstat -4
- doas bastille pkg ALL audit -F
- doas bastille stop ALL
- doas bastille destroy 122-jail
- doas bastille destroy 130-jail

View File

@@ -0,0 +1,8 @@
PKG adguard-exporter
SYSRC adguard_exporter_enable=YES
SYSRC adguard_exporter_username=adguard
SYSRC adguard_exporter_password=BastilleBSD!
SYSRC adguard_exporter_hostname=${JAIL_IP}
SYSRC adguard_exporter_port=80
SYSRC adguard_exporter_protocol=http
SERVICE adguard_exporter restart

View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2021, Christer Edwards <christer.edwards@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,8 @@
## adguardhome-exporter
Bastille Template for Adguard Home Prometheus Exporter
## Usage
```shell
bastille template TARGET bastillebsd-templates/adguardhome-exporter
```

View File

@@ -1,11 +1,6 @@
## adguardhome ## adguardhome
Bastille Template for Adguard Home Bastille Template for Adguard Home
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET dns/adguardhome bastille template TARGET dns/adguardhome

View File

@@ -1,11 +1,6 @@
## apache ## apache
Bastille template to bootstrap Apache Bastille template to bootstrap Apache
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET www/apache bastille template TARGET www/apache

View File

@@ -1,11 +1,6 @@
## Caddy ## Caddy
Bastille template to bootstrap Caddy Bastille template to bootstrap Caddy
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET www/caddy bastille template TARGET www/caddy

View File

@@ -1,11 +1,6 @@
# Firefox ## Firefox
Bastille template to bootstrap Firefox Bastille template to bootstrap Firefox
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET www/firefox bastille template TARGET www/firefox

View File

@@ -1,11 +1,6 @@
## gitea ## gitea
Bastille template to bootstrap gitea Bastille template to bootstrap gitea
## Bootstrap
```shell
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage ## Usage
```shell ```shell
bastille template TARGET www/gitea --arg SECRET_KEY=`openssl rand -base64 16` --arg JWT_SECRET=`openssl rand -base64 32` --arg INTERNAL_TOKEN=`openssl rand -base64 64` bastille template TARGET www/gitea --arg SECRET_KEY=`openssl rand -base64 16` --arg JWT_SECRET=`openssl rand -base64 32` --arg INTERNAL_TOKEN=`openssl rand -base64 64`

View File

@@ -0,0 +1,3 @@
PKG gitlab-ce
SYSRC gitlab_enable=YES
SERVICE gitlab start

29
www/gitlab-ce/LICENSE Normal file
View File

@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2019, Christer Edwards
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1
www/gitlab-ce/PKG Normal file
View File

@@ -0,0 +1 @@
gitlab-ce

Some files were not shown because too many files have changed in this diff Show More