Compare commits
7 Commits
fefe2e25f3
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| a2ae96d2ee | |||
| 2ef6b1b87c | |||
| b223d0ceef | |||
| 5a41932ba4 | |||
| 7e95be5d79 | |||
| 8d511f9cc4 | |||
| eec448bfe8 |
@@ -1,9 +1,9 @@
|
|||||||
pki:
|
pki:
|
||||||
cns:
|
cns:
|
||||||
- cr.lan
|
- cr.wks
|
||||||
- gcr-mirror.lan
|
- gcr-mirror.wks
|
||||||
- dr-mirror.lan
|
- dr-mirror.wks
|
||||||
- docker-registry.lan
|
- docker-registry.wks
|
||||||
#- ups.wks
|
#- ups.wks
|
||||||
systemd:
|
systemd:
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -1,17 +1,27 @@
|
|||||||
pki:
|
pki:
|
||||||
cns:
|
cns:
|
||||||
- docker-registry.lan
|
|
||||||
- zwave2mqtt.chaos
|
- zwave2mqtt.chaos
|
||||||
- auto.chaos
|
- auto.chaos
|
||||||
- auto-conf.chaos
|
- auto-conf.chaos
|
||||||
- pihole.chaos
|
- pihole.chaos
|
||||||
- nodered.chaos
|
- nodered.chaos
|
||||||
|
- rompr.chaos
|
||||||
|
|
||||||
os:
|
os:
|
||||||
release: bullseye
|
release: bookworm
|
||||||
|
|
||||||
systemd:
|
systemd:
|
||||||
service:
|
service:
|
||||||
|
container-rompr:
|
||||||
|
Unit:
|
||||||
|
Description: Rompr
|
||||||
|
After: network-online.target local-fs.target
|
||||||
|
Before: haproxy.service
|
||||||
|
Service:
|
||||||
|
ExecStart: /usr/bin/podman start -a rompr
|
||||||
|
ExecStop: /usr/bin/podman stop rompr
|
||||||
|
Install:
|
||||||
|
WantedBy: multi-user.target
|
||||||
container-node-red:
|
container-node-red:
|
||||||
Unit:
|
Unit:
|
||||||
Description: Node Red
|
Description: Node Red
|
||||||
@@ -155,6 +165,8 @@ haproxy:
|
|||||||
- host_z2m-ws hdr_beg(host) -i zwave2mqtt-ws.
|
- host_z2m-ws hdr_beg(host) -i zwave2mqtt-ws.
|
||||||
- host_pihole hdr_beg(host) -i pihole.
|
- host_pihole hdr_beg(host) -i pihole.
|
||||||
- host_nodered hdr_beg(host) -i nodered.
|
- host_nodered hdr_beg(host) -i nodered.
|
||||||
|
- host_rompr hdr_beg(host) -i rompr.
|
||||||
|
- host_salt hdr_beg(host) -i salt.
|
||||||
use_backends:
|
use_backends:
|
||||||
- auto if host_auto
|
- auto if host_auto
|
||||||
- auto-conf if host_auto-conf
|
- auto-conf if host_auto-conf
|
||||||
@@ -162,6 +174,8 @@ haproxy:
|
|||||||
- z2m-ws if host_z2m-ws
|
- z2m-ws if host_z2m-ws
|
||||||
- pihole if host_pihole
|
- pihole if host_pihole
|
||||||
- nodered if host_nodered
|
- nodered if host_nodered
|
||||||
|
- rompr if host_rompr
|
||||||
|
- saltgui if host_salt
|
||||||
backends:
|
backends:
|
||||||
backend1:
|
backend1:
|
||||||
name: auto
|
name: auto
|
||||||
@@ -221,4 +235,22 @@ haproxy:
|
|||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 1880
|
port: 1880
|
||||||
check: check
|
check: check
|
||||||
|
backend6:
|
||||||
|
name: rompr
|
||||||
|
balance: roundrobin
|
||||||
|
servers:
|
||||||
|
server1:
|
||||||
|
name: rompr
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 8081
|
||||||
|
check: check
|
||||||
|
backend7:
|
||||||
|
name: saltgui
|
||||||
|
balance: roundrobin
|
||||||
|
servers:
|
||||||
|
server1:
|
||||||
|
name: saltgui
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 3333
|
||||||
|
check: check
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
{% set canonical_name = salt['grains.get']('host') | regex_replace('[0-9]', '', ignorecase=True) -%}
|
{% if salt['grains.get']('host') | regex_match('.*[0-9][0-9]') %}
|
||||||
|
{% set canonical_name = salt['grains.get']('host') | regex_replace('[0-9]', '', ignorecase=True) %}
|
||||||
{% include './' + canonical_name + '.sls' ignore missing %}
|
{% include './' + canonical_name + '.sls' ignore missing %}
|
||||||
|
{% endif %}
|
||||||
{% include './' + salt['grains.get']('host') + '.sls' ignore missing %}
|
{% include './' + salt['grains.get']('host') + '.sls' ignore missing %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,94 +1,2 @@
|
|||||||
systemd:
|
os:
|
||||||
service:
|
release: bullseye
|
||||||
container-rompr:
|
|
||||||
Unit:
|
|
||||||
Description: Rompr
|
|
||||||
After: network-online.target local-fs.target
|
|
||||||
Before: haproxy.service
|
|
||||||
Service:
|
|
||||||
ExecStart: /usr/bin/podman start -a rompr
|
|
||||||
ExecStop: /usr/bin/podman stop rompr
|
|
||||||
Install:
|
|
||||||
WantedBy: multi-user.target
|
|
||||||
|
|
||||||
haproxy:
|
|
||||||
enabled: True
|
|
||||||
overwrite: True
|
|
||||||
global:
|
|
||||||
stats:
|
|
||||||
enable: True
|
|
||||||
socketpath: /var/lib/haproxy/stats
|
|
||||||
mode: 660
|
|
||||||
level: admin
|
|
||||||
# Optional extra bind parameter, for example to set the owner/group on the socket file
|
|
||||||
extra: user haproxy group haproxy
|
|
||||||
ssl-default-bind-ciphers: "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384"
|
|
||||||
ssl-default-bind-options: "no-sslv3 no-tlsv10 no-tlsv11"
|
|
||||||
|
|
||||||
user: haproxy
|
|
||||||
group: haproxy
|
|
||||||
chroot:
|
|
||||||
enable: True
|
|
||||||
path: /var/lib/haproxy
|
|
||||||
daemon: True
|
|
||||||
defaults:
|
|
||||||
mode: http
|
|
||||||
stats:
|
|
||||||
- enable
|
|
||||||
- uri: '/haproxy-status'
|
|
||||||
options:
|
|
||||||
- httplog
|
|
||||||
- dontlognull
|
|
||||||
- forwardfor
|
|
||||||
timeouts:
|
|
||||||
- connect 5000
|
|
||||||
- client 50000
|
|
||||||
- server 50000
|
|
||||||
- tunnel 80000 #longer timeouts for websockets
|
|
||||||
- http-request 5s
|
|
||||||
errorfiles:
|
|
||||||
400: /etc/haproxy/errors/400.http
|
|
||||||
403: /etc/haproxy/errors/403.http
|
|
||||||
408: /etc/haproxy/errors/408.http
|
|
||||||
500: /etc/haproxy/errors/500.http
|
|
||||||
502: /etc/haproxy/errors/502.http
|
|
||||||
503: /etc/haproxy/errors/503.http
|
|
||||||
504: /etc/haproxy/errors/504.http
|
|
||||||
#resolvers:
|
|
||||||
# local_dns:
|
|
||||||
# options:
|
|
||||||
# - nameserver resolvconf 192.168.10.1:53
|
|
||||||
# - resolve_retries 3
|
|
||||||
# - timeout retry 1s
|
|
||||||
# - hold valid 10s
|
|
||||||
listens:
|
|
||||||
stats:
|
|
||||||
bind:
|
|
||||||
- "127.0.0.1:9110"
|
|
||||||
mode: http
|
|
||||||
stats:
|
|
||||||
enable: True
|
|
||||||
uri: "/haproxy-status"
|
|
||||||
refresh: "20s"
|
|
||||||
frontends:
|
|
||||||
frontend1:
|
|
||||||
name: www-http
|
|
||||||
bind:
|
|
||||||
- "*:80"
|
|
||||||
- "*:443 ssl crt /etc/pki/chain ca-file /etc/pki/intca.crt"
|
|
||||||
default_backend: auto
|
|
||||||
acls:
|
|
||||||
- host_rompr hdr_beg(host) -i truhe.
|
|
||||||
use_backends:
|
|
||||||
- rompr if host_truhe
|
|
||||||
backends:
|
|
||||||
backend1:
|
|
||||||
name: rompr
|
|
||||||
balance: roundrobin
|
|
||||||
servers:
|
|
||||||
server1:
|
|
||||||
name: rompr
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 8080
|
|
||||||
check: check
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
os:
|
|
||||||
release: bullseye
|
|
||||||
|
|
||||||
@@ -8,4 +8,4 @@ include:
|
|||||||
- .hostconfig
|
- .hostconfig
|
||||||
- .sysctl
|
- .sysctl
|
||||||
- saltmine
|
- saltmine
|
||||||
- prometheus.node_exporter
|
#- prometheus.node_exporter
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
# which services are available?
|
# which services are available?
|
||||||
#
|
#
|
||||||
services:
|
services:
|
||||||
{%- if grains.get('domain') in ['lan', 'wks'] %}
|
{%- if grains.get('domain') in ['lan', 'wks', 'nr5', 'consul'] %}
|
||||||
- apt-cache: apt-cache.lan/
|
- apt-cache: apt-cache.service.nr5/
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -17,3 +17,4 @@ prometheus:
|
|||||||
collector.filesystem.ignored-mount-points: ^/(sys|proc|dev|run)($|/)
|
collector.filesystem.ignored-mount-points: ^/(sys|proc|dev|run)($|/)
|
||||||
collector.filesystem.ignored-fs-types: ^(nfs|cifs|glusterfs|autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs|tmpfs)$
|
collector.filesystem.ignored-fs-types: ^(nfs|cifs|glusterfs|autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs|tmpfs)$
|
||||||
no-collector.systemd:
|
no-collector.systemd:
|
||||||
|
no-collector.rapl:
|
||||||
|
|||||||
Reference in New Issue
Block a user