standardizing templates to Bastillefile syntax & cleanup

This commit is contained in:
Christer Edwards
2021-12-24 21:47:04 -07:00
parent ed664ae8e9
commit ef70687808
217 changed files with 218 additions and 1917 deletions

View File

@@ -1,29 +0,0 @@
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

@@ -1,15 +1,12 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/dnsmasq/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/dnsmasq/commits/master)
## dnsmasq
Bastille template to bootstrap dnsmasq
## Bootstrap
```shell
bastille bootstrap https://gitlab.com/bastillebsd-templates/dnsmasq
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage
```shell
bastille template TARGET bastillebsd-templates/dnsmasq
bastille template TARGET dns/dnsmasq
```

View File

@@ -1,29 +0,0 @@
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

@@ -1,18 +1,13 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/unbound-adblock/badges/main/pipeline.svg)](https://gitlab.com/bastillebsd-templates/unbound-adblock/commits/main)
## unbound-adblock
Bastille template to bootstrap Unbound + adblock
## Bootstrap
```shell
bastille bootstrap https://gitlab.com/bastillebsd-templates/unbound-adblock
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage
```shell
bastille template TARGET bastillebsd-templates/unbound-adblock
bastille template TARGET dns/unbound-adblock
```

8
dns/unbound/Bastillefile Normal file
View File

@@ -0,0 +1,8 @@
CP usr /
PKG ca_root_nss unbound
SYSRC unbound_enable=YES
CMD chown unbound:wheel /usr/local/etc/unbound
CMD /usr/local/sbin/unbound-control-setup
CMD /usr/local/sbin/unbound-checkconf && echo "nameserver 127.0.0.1" > /etc/resolv.conf
SERVICE unbound restart
CMD host bastillebsd.org

View File

@@ -1,5 +0,0 @@
chown unbound:wheel /usr/local/etc/unbound
/usr/local/sbin/unbound-control-setup
/usr/local/sbin/unbound-checkconf && echo "nameserver 127.0.0.1" > /etc/resolv.conf
service unbound restart
host bastille.org

View File

@@ -1,29 +0,0 @@
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

@@ -1 +0,0 @@
usr

View File

@@ -1 +0,0 @@
ca_root_nss unbound

View File

@@ -1,15 +1,12 @@
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/unbound/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/unbound/commits/master)
## unbound
Bastille Template for an Unbound DNS container
## Bootstrap
```shell
bastille bootstrap https://gitlab.com/bastillebsd-templates/unbound
bastille bootstrap https://github.com/bastillebsd/templates
```
## Usage
```shell
bastille template TARGET bastillebsd-templates/unbound
bastille template TARGET dns/unbound
```

View File

@@ -1 +0,0 @@
unbound_enable=YES