mirror of
https://github.com/BastilleBSD/templates.git
synced 2025-12-10 17:00:30 +01:00
consolidation and cleanup
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2018-2021, Christer Edwards <christer.edwards@gmail.com>
|
||||
Copyright (c) 2018-2023, Christer Edwards <christer.edwards@gmail.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Bastille Combined Templates
|
||||
|
||||
## Status - Beta
|
||||
This repository is a collection of Bastille templates all aggregated into
|
||||
one place. This means you can add ALL the templates with one command. What's
|
||||
more, the structure mimicks the FreeBSD ports tree. This means that you should
|
||||
be able to find a template in a standard location to match any package origin.
|
||||
|
||||
Code is being tested to support this new combined method alongside the existing
|
||||
format. This means you can still use your existing custom templates while also
|
||||
taking advantage of the new combined collection.
|
||||
|
||||
This status will be removed once this new support has been added and merged.
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://github.com/bastillebsd/templates
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET [pkg/origin]
|
||||
```
|
||||
|
||||
### Examples
|
||||
```
|
||||
bastille template TARGET www/nginx
|
||||
bastille template TARGET shells/zsh
|
||||
bastille template TARGET lang/python311
|
||||
bastille template TARGET databases/mariadb1011-server
|
||||
...etc...
|
||||
|
||||
```
|
||||
@@ -1,3 +1,3 @@
|
||||
PKG mariadb105-server
|
||||
PKG mariadb1011-server
|
||||
SYSRC mysql_enable=YES
|
||||
SERVICE mysql-server restart
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
PKG mysql57-server
|
||||
PKG mysql80-server
|
||||
SYSRC mysql_enable=YES
|
||||
SERVICE mysql-server restart
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
PKG percona57-server percona57-client
|
||||
SYSRC mysql_enable=YES
|
||||
SERVICE mysql-server start
|
||||
@@ -1 +1 @@
|
||||
PKG openjdk13
|
||||
PKG openjdk20
|
||||
|
||||
1
lang/go-devel/Bastillefile
Normal file
1
lang/go-devel/Bastillefile
Normal file
@@ -0,0 +1 @@
|
||||
PKG go-devel
|
||||
@@ -1,5 +1,5 @@
|
||||
# PHP
|
||||
Bastille template to bootstrap PHP
|
||||
## golang
|
||||
Bastille template to bootstrap Go Devel
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET lang/php
|
||||
bastille template TARGET lang/go-devel
|
||||
```
|
||||
@@ -1,5 +1,5 @@
|
||||
## golang
|
||||
Bastille template to bootstrap Golang
|
||||
Bastille template to bootstrap Go
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET lang/golang
|
||||
bastille template TARGET lang/go
|
||||
```
|
||||
1
lang/go119/Bastillefile
Normal file
1
lang/go119/Bastillefile
Normal file
@@ -0,0 +1 @@
|
||||
PKG go119
|
||||
@@ -1,5 +1,5 @@
|
||||
## perl
|
||||
Bastille Template to bootstrap perl5-devel
|
||||
## golang
|
||||
Bastille template to bootstrap Golang 119
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET lang/perl
|
||||
bastille template TARGET lang/go119
|
||||
```
|
||||
1
lang/go120/Bastillefile
Normal file
1
lang/go120/Bastillefile
Normal file
@@ -0,0 +1 @@
|
||||
PKG go120
|
||||
@@ -1,5 +1,5 @@
|
||||
## ruby
|
||||
Bastille template to bootstrap ruby
|
||||
## golang
|
||||
Bastille template to bootstrap Go 1.20
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET lang/ruby
|
||||
bastille template TARGET lang/go120
|
||||
```
|
||||
1
lang/go121/Bastillefile
Normal file
1
lang/go121/Bastillefile
Normal file
@@ -0,0 +1 @@
|
||||
PKG go121
|
||||
@@ -1,5 +1,5 @@
|
||||
## percona
|
||||
Bastille Template: percona
|
||||
## golang
|
||||
Bastille template to bootstrap Go 1.21
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET databases/percona
|
||||
bastille template TARGET lang/go121
|
||||
```
|
||||
@@ -1 +0,0 @@
|
||||
PKG perl5-devel
|
||||
@@ -1,3 +0,0 @@
|
||||
PKG php74
|
||||
SYSRC php_fpm_enable=YES
|
||||
SERVICE php-fpm start
|
||||
@@ -1,2 +1,2 @@
|
||||
PKG python3 python
|
||||
PKG python
|
||||
CMD python -VV
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
PKG ruby
|
||||
@@ -1,4 +0,0 @@
|
||||
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
|
||||
@@ -1,28 +0,0 @@
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://github.com/bastillebsd/templates
|
||||
```
|
||||
|
||||
## 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.
|
||||
@@ -1,25 +0,0 @@
|
||||
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
|
||||
@@ -1,14 +0,0 @@
|
||||
## zabbix-server
|
||||
Bastille template to bootstrap zabbix-server
|
||||
|
||||
## Bootstrap
|
||||
|
||||
```shell
|
||||
bastille bootstrap https://github.com/bastillebsd/templates
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/zabbix-server
|
||||
```
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/asterisk
|
||||
bastille template TARGET net/asterisk
|
||||
```
|
||||
|
||||
@@ -8,7 +8,7 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/openssh-server
|
||||
bastille template TARGET security/openssh-server
|
||||
```
|
||||
|
||||
## Optional:
|
||||
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/vault
|
||||
bastille template TARGET security/vault
|
||||
```
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
PKG bastille
|
||||
SYSRC bastille_enable=YES
|
||||
SYSRC cloned_interfaces+=lo1
|
||||
@@ -1,12 +0,0 @@
|
||||
# bastille
|
||||
Bastille template to bootstrap bastille
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
bastille bootstrap https://github.com/bastillebsd/templates
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET sysutils/bastille
|
||||
```
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/consul
|
||||
bastille template TARGET sysutils/consul
|
||||
```
|
||||
|
||||
@@ -9,5 +9,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/syslog-ng
|
||||
bastille template TARGET sysutils/syslog-ng
|
||||
```
|
||||
|
||||
@@ -8,7 +8,7 @@ bastille bootstrap https://github.com/bastillebsd-templates/tarsnap
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/tarsnap
|
||||
bastille template TARGET sysutils/tarsnap
|
||||
```
|
||||
|
||||
## Post Install
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# elasticsearch
|
||||
Bastille template to bootstrap Elasticserch
|
||||
Bastille template to bootstrap Elasticserch 7
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/elasticsearch
|
||||
bastille template TARGET textproc/elasticsearch7
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
## kibana
|
||||
Bastille template to bootstrap kibana
|
||||
Bastille template to bootstrap kibana 7
|
||||
|
||||
## Bootstrap
|
||||
```shell
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET www/kibana
|
||||
bastille template TARGET textproc/kibana7
|
||||
```
|
||||
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/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`
|
||||
```
|
||||
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd-templates/grafana
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/grafana
|
||||
bastille template TARGET www/grafana
|
||||
```
|
||||
|
||||
@@ -8,5 +8,5 @@ bastille bootstrap https://github.com/bastillebsd/templates
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
bastille template TARGET bastillebsd-templates/nextcloud
|
||||
bastille template TARGET www/nextcloud
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user