Commit a49d0705 authored by Christer Edwards's avatar Christer Edwards

update template for automated testing

parent 7ba68184
Pipeline #95790411 passed with stage
in 26 seconds
## A template test can assume a working Bastille installation and bootstrapped
## releases. Naming scheme follows `major-minor-release`.
bastille_template_test:
tags:
- bastille-template
- bastillebsd-template
script:
- doas bastille version
- doas bastille bootstrap "${CI_PROJECT_URL}"
- doas bastille create 11-3-release 11.3-RELEASE 10.17.89.113
- doas bastille create 12-0-release 12.0-RELEASE 10.17.89.120
- doas bastille create 12-1-release 12.1-RELEASE 10.17.89.121
- doas bastille start ALL
- doas bastille template ALL "${CI_PROJECT_NAMESPACE}"/"${CI_PROJECT_NAME}"
- doas bastille cmd ALL 'freebsd-version'
- doas bastille cmd ALL 'sysrc -ae'
- doas bastille cmd ALL 'ps -auxw'
- doas bastille pkg ALL 'audit -F'
- doas bastille stop ALL
- doas bastille destroy 11-3-release
- doas bastille destroy 12-0-release
- doas bastille destroy 12-1-release
haproxy -t && service haproxy restart
haproxy -t
# haproxy
Bastille Template for HAProxy Jail
## Status
[![pipeline status](https://gitlab.com/bastillebsd-templates/haproxy/badges/master/pipeline.svg)](https://gitlab.com/bastillebsd-templates/haproxy/commits/master)
STATUS: Testing
## haproxy
Bastille template to bootstrap HAProxy
## Bootstrap
```shell
bastille bootstrap https://gitlab.com/bastillebsd-templates/haproxy
```
## Usage
```shell
bastille template TARGET bastillebsd-templates/haproxy
```
haproxy start
haproxy_enable=YES
cloned_interfaces="carp0"
ifconfig_carp0="vhid 1 advskew 100 pass techbar 10.10.10.200/24"
-f /boot/loader.conf if_carp_load=YES
global
maxconn 2048
user haproxy
group haproxy
daemon
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
listen http-in
bind *:80
balance roundrobin
server web0 10.10.10.20:80 maxconn 1024 check
server web1 10.10.10.10:80 maxconn 1024 check
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment