Compare commits
No commits in common. "master" and "ipv6_picking" have entirely different histories.
master
...
ipv6_picki
123 changed files with 972 additions and 7349 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,4 +2,3 @@
|
||||||
.venv
|
.venv
|
||||||
.cache
|
.cache
|
||||||
*.pyc
|
*.pyc
|
||||||
.bw_debug_history
|
|
||||||
|
|
@ -1,148 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
from bundlewrap.exceptions import RemoteException
|
|
||||||
from bundlewrap.utils.cmdline import get_target_nodes
|
|
||||||
from bundlewrap.utils.ui import io
|
|
||||||
from bundlewrap.repo import Repository
|
|
||||||
from os.path import realpath, dirname
|
|
||||||
|
|
||||||
|
|
||||||
# parse args
|
|
||||||
parser = ArgumentParser()
|
|
||||||
parser.add_argument("targets", nargs="*", default=['bundle:routeros'], help="bw nodes selector")
|
|
||||||
parser.add_argument("--yes", action="store_true", default=False, help="skip confirmation prompts")
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
|
|
||||||
def wait_up(node):
|
|
||||||
sleep(5)
|
|
||||||
while True:
|
|
||||||
try:
|
|
||||||
node.run_routeros('/system/resource/print')
|
|
||||||
except RemoteException:
|
|
||||||
sleep(2)
|
|
||||||
continue
|
|
||||||
else:
|
|
||||||
io.debug(f"{node.name}: is up")
|
|
||||||
sleep(10)
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade_switch_os(node):
|
|
||||||
# get versions for comparison
|
|
||||||
with io.job(f"{node.name}: checking OS version"):
|
|
||||||
response = node.run_routeros('/system/package/update/check-for-updates').raw[-1]
|
|
||||||
installed_os = bw.libs.version.Version(response['installed-version'])
|
|
||||||
latest_os = bw.libs.version.Version(response['latest-version'])
|
|
||||||
io.debug(f"{node.name}: installed: {installed_os} >= latest: {latest_os}")
|
|
||||||
|
|
||||||
# compare versions
|
|
||||||
if installed_os >= latest_os:
|
|
||||||
# os is up to date
|
|
||||||
io.stdout(f"{node.name}: os up to date ({installed_os})")
|
|
||||||
else:
|
|
||||||
# confirm os upgrade
|
|
||||||
if not args.yes and not io.ask(
|
|
||||||
f"{node.name}: upgrade os from {installed_os} to {latest_os}?", default=True
|
|
||||||
):
|
|
||||||
io.stdout(f"{node.name}: skipped by user")
|
|
||||||
return
|
|
||||||
|
|
||||||
# download os
|
|
||||||
with io.job(f"{node.name}: downloading OS"):
|
|
||||||
response = node.run_routeros('/system/package/update/download').raw[-1]
|
|
||||||
io.debug(f"{node.name}: OS upgrade download response: {response['status']}")
|
|
||||||
|
|
||||||
# install and wait for reboot
|
|
||||||
with io.job(f"{node.name}: upgrading OS"):
|
|
||||||
try:
|
|
||||||
response = node.run_routeros('/system/package/update/install').raw[-1]
|
|
||||||
except RemoteException:
|
|
||||||
pass
|
|
||||||
wait_up(node)
|
|
||||||
|
|
||||||
# verify new os version
|
|
||||||
with io.job(f"{node.name}: checking new OS version"):
|
|
||||||
new_os = bw.libs.version.Version(node.run_routeros('/system/package/update/check-for-updates').raw[-1]['installed-version'])
|
|
||||||
if new_os == latest_os:
|
|
||||||
io.stdout(f"{node.name}: OS successfully upgraded from {installed_os} to {new_os}")
|
|
||||||
else:
|
|
||||||
raise Exception(f"{node.name}: OS upgrade failed, expected {latest_os}, got {new_os}")
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade_switch_firmware(node):
|
|
||||||
# get versions for comparison
|
|
||||||
with io.job(f"{node.name}: checking Firmware version"):
|
|
||||||
response = node.run_routeros('/system/routerboard/print').raw[-1]
|
|
||||||
current_firmware = bw.libs.version.Version(response['current-firmware'])
|
|
||||||
upgrade_firmware = bw.libs.version.Version(response['upgrade-firmware'])
|
|
||||||
io.debug(f"{node.name}: firmware installed: {current_firmware}, upgrade: {upgrade_firmware}")
|
|
||||||
|
|
||||||
# compare versions
|
|
||||||
if current_firmware >= upgrade_firmware:
|
|
||||||
# firmware is up to date
|
|
||||||
io.stdout(f"{node.name}: firmware is up to date ({current_firmware})")
|
|
||||||
else:
|
|
||||||
# confirm firmware upgrade
|
|
||||||
if not args.yes and not io.ask(
|
|
||||||
f"{node.name}: upgrade firmware from {current_firmware} to {upgrade_firmware}?", default=True
|
|
||||||
):
|
|
||||||
io.stdout(f"{node.name}: skipped by user")
|
|
||||||
return
|
|
||||||
|
|
||||||
# upgrade firmware
|
|
||||||
with io.job(f"{node.name}: upgrading Firmware"):
|
|
||||||
node.run_routeros('/system/routerboard/upgrade')
|
|
||||||
|
|
||||||
# reboot and wait
|
|
||||||
with io.job(f"{node.name}: rebooting"):
|
|
||||||
try:
|
|
||||||
node.run_routeros('/system/reboot')
|
|
||||||
except RemoteException:
|
|
||||||
pass
|
|
||||||
wait_up(node)
|
|
||||||
|
|
||||||
# verify firmware version
|
|
||||||
new_firmware = bw.libs.version.Version(node.run_routeros('/system/routerboard/print').raw[-1]['current-firmware'])
|
|
||||||
if new_firmware == upgrade_firmware:
|
|
||||||
io.stdout(f"{node.name}: firmware successfully upgraded from {current_firmware} to {new_firmware}")
|
|
||||||
else:
|
|
||||||
raise Exception(f"firmware upgrade failed, expected {upgrade_firmware}, got {new_firmware}")
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade_switch(node):
|
|
||||||
with io.job(f"{node.name}: checking"):
|
|
||||||
# check if routeros
|
|
||||||
if node.os != 'routeros':
|
|
||||||
io.progress_advance(2)
|
|
||||||
io.stdout(f"{node.name}: skipped, unsupported os {node.os}")
|
|
||||||
return
|
|
||||||
|
|
||||||
# check switch reachability
|
|
||||||
try:
|
|
||||||
node.run_routeros('/system/resource/print')
|
|
||||||
except RemoteException as error:
|
|
||||||
io.progress_advance(2)
|
|
||||||
io.stdout(f"{node.name}: skipped, error {error}")
|
|
||||||
return
|
|
||||||
|
|
||||||
upgrade_switch_os(node)
|
|
||||||
io.progress_advance(1)
|
|
||||||
|
|
||||||
upgrade_switch_firmware(node)
|
|
||||||
io.progress_advance(1)
|
|
||||||
|
|
||||||
|
|
||||||
with io:
|
|
||||||
bw = Repository(dirname(dirname(realpath(__file__))))
|
|
||||||
|
|
||||||
nodes = get_target_nodes(bw, args.targets)
|
|
||||||
|
|
||||||
io.progress_set_total(len(nodes) * 2)
|
|
||||||
io.stdout(f"upgrading {len(nodes)} switches: {', '.join([node.name for node in sorted(nodes)])}")
|
|
||||||
|
|
||||||
for node in sorted(nodes):
|
|
||||||
upgrade_switch(node)
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from bundlewrap.repo import Repository
|
|
||||||
from os.path import realpath, dirname
|
|
||||||
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument('node', help='Node to generate passwords for')
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
bw = Repository(dirname(dirname(realpath(__file__))))
|
|
||||||
node = bw.get_node(args.node)
|
|
||||||
|
|
||||||
if node.password:
|
|
||||||
print(f"password: {node.password}")
|
|
||||||
|
|
||||||
for metadata_key in sorted([
|
|
||||||
'users/root/password',
|
|
||||||
]):
|
|
||||||
if value := node.metadata.get(metadata_key, None):
|
|
||||||
print(f"{metadata_key}: {value}")
|
|
||||||
|
|
@ -3,4 +3,4 @@
|
||||||
from bundlewrap.repo import Repository
|
from bundlewrap.repo import Repository
|
||||||
from os.path import realpath, dirname
|
from os.path import realpath, dirname
|
||||||
|
|
||||||
bw = Repository(dirname(dirname(realpath(__file__))))
|
repo = Repository(dirname(dirname(realpath(__file__))))
|
||||||
|
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from bundlewrap.repo import Repository
|
|
||||||
from os.path import realpath, dirname
|
|
||||||
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
from dataclasses import dataclass
|
|
||||||
from typing import Optional, List
|
|
||||||
|
|
||||||
bw = Repository(dirname(dirname(realpath(__file__))))
|
|
||||||
|
|
||||||
VAULT=bw.vault.decrypt('encrypt$gAAAAABpLgX_xxb5NmNCl3cgHM0JL65GT6PHVXO5gwly7IkmWoEgkCDSuAcSAkNFB8Tb4RdnTdpzVQEUL1XppTKVto_O7_b11GjATiyQYiSfiQ8KZkTKLvk=').value
|
|
||||||
BW_TAG = "bw"
|
|
||||||
BUNDLEWRAP_FIELD_LABEL = "bundlewrap node id"
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class OpResult:
|
|
||||||
stdout: str
|
|
||||||
stderr: str
|
|
||||||
returncode: int
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
for node in bw.nodes_in_group('routeros'):
|
|
||||||
upsert_node_item(
|
|
||||||
node_name=node.name,
|
|
||||||
node_uuid=node.metadata.get('id'),
|
|
||||||
username=node.username,
|
|
||||||
password=node.password,
|
|
||||||
url=f'http://{node.hostname}',
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def run_op(args):
|
|
||||||
proc = subprocess.run(
|
|
||||||
["op", "--vault", VAULT] + args,
|
|
||||||
env=os.environ.copy(),
|
|
||||||
capture_output=True,
|
|
||||||
text=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
if proc.returncode != 0:
|
|
||||||
raise RuntimeError(
|
|
||||||
f"op {' '.join(args)} failed with code {proc.returncode}:\n"
|
|
||||||
f"STDOUT:\n{proc.stdout}\n\nSTDERR:\n{proc.stderr}"
|
|
||||||
)
|
|
||||||
|
|
||||||
return OpResult(stdout=proc.stdout, stderr=proc.stderr, returncode=proc.returncode)
|
|
||||||
|
|
||||||
|
|
||||||
def op_item_list_bw():
|
|
||||||
out = run_op([
|
|
||||||
"item", "list",
|
|
||||||
"--tags", BW_TAG,
|
|
||||||
"--format", "json",
|
|
||||||
])
|
|
||||||
stdout = out.stdout.strip()
|
|
||||||
return json.loads(stdout) if stdout else []
|
|
||||||
|
|
||||||
|
|
||||||
def op_item_get(item_id):
|
|
||||||
args = ["item", "get", item_id, "--format", "json"]
|
|
||||||
return json.loads(run_op(args).stdout)
|
|
||||||
|
|
||||||
|
|
||||||
def op_item_create(title, node_uuid, username, password, url):
|
|
||||||
print(f"creating {title}")
|
|
||||||
return json.loads(run_op([
|
|
||||||
"item", "create",
|
|
||||||
"--category", "LOGIN",
|
|
||||||
"--title", title,
|
|
||||||
"--tags", BW_TAG,
|
|
||||||
"--url", url,
|
|
||||||
"--format", "json",
|
|
||||||
f"username={username}",
|
|
||||||
f"password={password}",
|
|
||||||
f"{BUNDLEWRAP_FIELD_LABEL}[text]={node_uuid}",
|
|
||||||
]).stdout)
|
|
||||||
|
|
||||||
|
|
||||||
def op_item_edit(item_id, title, username, password, url):
|
|
||||||
print(f"updating {title}")
|
|
||||||
return json.loads(run_op([
|
|
||||||
"item", "edit",
|
|
||||||
item_id,
|
|
||||||
"--title", title,
|
|
||||||
"--url", url,
|
|
||||||
"--format", "json",
|
|
||||||
f"username={username}",
|
|
||||||
f"password={password}",
|
|
||||||
]).stdout)
|
|
||||||
|
|
||||||
|
|
||||||
def find_node_item_id(node_uuid):
|
|
||||||
for summary in op_item_list_bw():
|
|
||||||
item_id = summary.get("id")
|
|
||||||
if not item_id:
|
|
||||||
continue
|
|
||||||
|
|
||||||
item = op_item_get(item_id)
|
|
||||||
for field in item.get("fields") or []:
|
|
||||||
label = field.get("label")
|
|
||||||
value = field.get("value")
|
|
||||||
if label == BUNDLEWRAP_FIELD_LABEL and value == node_uuid:
|
|
||||||
return item_id
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def upsert_node_item(node_name, node_uuid, username, password, url):
|
|
||||||
if item_id := find_node_item_id(node_uuid):
|
|
||||||
return op_item_edit(
|
|
||||||
item_id=item_id,
|
|
||||||
title=node_name,
|
|
||||||
username=username,
|
|
||||||
password=password,
|
|
||||||
url=url,
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return op_item_create(
|
|
||||||
title=node_name,
|
|
||||||
node_uuid=node_uuid,
|
|
||||||
username=username,
|
|
||||||
password=password,
|
|
||||||
url=url,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
|
@ -4,21 +4,20 @@ from bundlewrap.repo import Repository
|
||||||
from os.path import realpath, dirname
|
from os.path import realpath, dirname
|
||||||
from sys import argv
|
from sys import argv
|
||||||
from ipaddress import ip_network, ip_interface
|
from ipaddress import ip_network, ip_interface
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
if len(argv) != 3:
|
||||||
|
print(f'usage: {argv[0]} <node> <client>')
|
||||||
|
exit(1)
|
||||||
|
|
||||||
# get info from repo
|
|
||||||
repo = Repository(dirname(dirname(realpath(__file__))))
|
repo = Repository(dirname(dirname(realpath(__file__))))
|
||||||
server_node = repo.get_node('htz.mails')
|
server_node = repo.get_node(argv[1])
|
||||||
available_clients = server_node.metadata.get('wireguard/clients').keys()
|
|
||||||
|
|
||||||
# parse args
|
if argv[2] not in server_node.metadata.get('wireguard/clients'):
|
||||||
parser = argparse.ArgumentParser(description='Generate WireGuard client configuration.')
|
print(f'client {argv[2]} not found in: {server_node.metadata.get("wireguard/clients").keys()}')
|
||||||
parser.add_argument('client', choices=available_clients, help='The client name to generate the configuration for.')
|
exit(1)
|
||||||
args = parser.parse_args()
|
|
||||||
|
data = server_node.metadata.get(f'wireguard/clients/{argv[2]}')
|
||||||
|
|
||||||
# get cert
|
|
||||||
data = server_node.metadata.get(f'wireguard/clients/{args.client}')
|
|
||||||
vpn_network = ip_interface(server_node.metadata.get('wireguard/my_ip')).network
|
vpn_network = ip_interface(server_node.metadata.get('wireguard/my_ip')).network
|
||||||
allowed_ips = [
|
allowed_ips = [
|
||||||
vpn_network,
|
vpn_network,
|
||||||
|
|
@ -44,15 +43,10 @@ Endpoint = {ip_interface(server_node.metadata.get('network/external/ipv4')).ip}:
|
||||||
PersistentKeepalive = 10
|
PersistentKeepalive = 10
|
||||||
'''
|
'''
|
||||||
|
|
||||||
answer = input("print config or qrcode? [Cq]: ").strip().upper()
|
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
|
||||||
match answer:
|
print(conf)
|
||||||
case '' | 'C':
|
print('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<')
|
||||||
print('>>>>>>>>>>>>>>>')
|
|
||||||
print(conf)
|
if input("print qrcode? [Yn]: ").upper() in ['', 'Y']:
|
||||||
print('<<<<<<<<<<<<<<<')
|
|
||||||
case 'Q':
|
|
||||||
import pyqrcode
|
import pyqrcode
|
||||||
print(pyqrcode.create(conf).terminal(quiet_zone=1))
|
print(pyqrcode.create(conf).terminal(quiet_zone=1))
|
||||||
case _:
|
|
||||||
print(f'Invalid option "{answer}".')
|
|
||||||
exit(1)
|
|
||||||
|
|
@ -13,14 +13,16 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'exec': {
|
'exec': {
|
||||||
'apcupsd': {
|
repo.libs.hashable.hashable({
|
||||||
'commands': ["sudo /usr/local/share/telegraf/apcupsd"],
|
'commands': ["sudo /usr/local/share/telegraf/apcupsd"],
|
||||||
'name_override': "apcupsd",
|
'name_override': "apcupsd",
|
||||||
'data_format': "influx",
|
'data_format': "influx",
|
||||||
'interval': '30s',
|
'interval': '30s',
|
||||||
'flush_interval': '30s',
|
'flush_interval': '30s',
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ defaults = {
|
||||||
'apt-listchanges': {
|
'apt-listchanges': {
|
||||||
'installed': False,
|
'installed': False,
|
||||||
},
|
},
|
||||||
'ca-certificates': {},
|
|
||||||
},
|
},
|
||||||
'config': {
|
'config': {
|
||||||
'DPkg': {
|
'DPkg': {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
$TTL 86400
|
|
||||||
@ IN SOA localhost. root.localhost. (
|
|
||||||
1 ; Serial
|
|
||||||
604800 ; Refresh
|
|
||||||
86400 ; Retry
|
|
||||||
2419200 ; Expire
|
|
||||||
86400 ) ; Negative Cache TTL
|
|
||||||
IN NS localhost.
|
|
||||||
|
|
@ -29,7 +29,6 @@ view "${view_name}" {
|
||||||
|
|
||||||
% if view_conf['is_internal']:
|
% if view_conf['is_internal']:
|
||||||
recursion yes;
|
recursion yes;
|
||||||
include "/etc/bind/zones.rfc1918";
|
|
||||||
% else:
|
% else:
|
||||||
recursion no;
|
recursion no;
|
||||||
rate-limit {
|
rate-limit {
|
||||||
|
|
@ -63,6 +62,9 @@ view "${view_name}" {
|
||||||
file "/var/lib/bind/${view_name}/${zone_name}";
|
file "/var/lib/bind/${view_name}/${zone_name}";
|
||||||
};
|
};
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
|
include "/etc/bind/named.conf.default-zones";
|
||||||
|
include "/etc/bind/zones.rfc1918";
|
||||||
};
|
};
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "25.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "26.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "27.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "28.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "29.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "30.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
zone "254.169.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
|
|
||||||
|
|
@ -142,21 +142,3 @@ actions['named-checkconf'] = {
|
||||||
'svc_systemd:bind9:reload',
|
'svc_systemd:bind9:reload',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# beantwortet Anfragen nach privaten IP-Adressen mit NXDOMAIN, statt sie ins Internet weiterzuleiten
|
|
||||||
files['/etc/bind/zones.rfc1918'] = {
|
|
||||||
'needed_by': [
|
|
||||||
'svc_systemd:bind9',
|
|
||||||
],
|
|
||||||
'triggers': [
|
|
||||||
'svc_systemd:bind9:reload',
|
|
||||||
],
|
|
||||||
}
|
|
||||||
files['/etc/bind/db.empty'] = {
|
|
||||||
'needed_by': [
|
|
||||||
'svc_systemd:bind9',
|
|
||||||
],
|
|
||||||
'triggers': [
|
|
||||||
'svc_systemd:bind9:reload',
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -49,13 +49,13 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'bind': {
|
'bind': [{
|
||||||
'default': {
|
|
||||||
'urls': ['http://localhost:8053/xml/v3'],
|
'urls': ['http://localhost:8053/xml/v3'],
|
||||||
'gather_memory_contexts': False,
|
'gather_memory_contexts': False,
|
||||||
'gather_views': True,
|
'gather_views': True,
|
||||||
},
|
}],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -112,11 +112,6 @@ def process_recording(filename):
|
||||||
|
|
||||||
sample_num += samples_per_block - overlapping_samples
|
sample_num += samples_per_block - overlapping_samples
|
||||||
|
|
||||||
# move to PROCESSED_RECORDINGS_DIR
|
|
||||||
|
|
||||||
os.makedirs(PROCESSED_RECORDINGS_DIR, exist_ok=True)
|
|
||||||
shutil.move(os.path.join(RECORDINGS_DIR, filename), os.path.join(PROCESSED_RECORDINGS_DIR, filename))
|
|
||||||
|
|
||||||
|
|
||||||
# write a spectrogram using the sound from start to end of the event
|
# write a spectrogram using the sound from start to end of the event
|
||||||
def write_event(current_event, soundfile, samplerate):
|
def write_event(current_event, soundfile, samplerate):
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,5 @@ do
|
||||||
-t "3600" \
|
-t "3600" \
|
||||||
-c:a flac \
|
-c:a flac \
|
||||||
-compression_level 12 \
|
-compression_level 12 \
|
||||||
"recordings/current/$DATE.flac"
|
"recordings/$DATE.flac"
|
||||||
|
|
||||||
mv "recordings/current/$DATE.flac" "recordings/$DATE.flac"
|
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ urllib3.disable_warnings()
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
HUE_IP = "${hue_ip}" # replace with your bridge IP
|
HUE_IP = "10.0.0.134" # replace with your bridge IP
|
||||||
HUE_APP_KEY = "${hue_app_key}" # local only
|
HUE_APP_KEY = "${hue_app_key}" # local only
|
||||||
HUE_DEVICE_ID = "31f58786-3242-4e88-b9ce-23f44ba27bbe"
|
HUE_DEVICE_ID = "31f58786-3242-4e88-b9ce-23f44ba27bbe"
|
||||||
TEMPERATURE_LOG_DIR = "/opt/bootshorn/temperatures"
|
TEMPERATURE_LOG_DIR = "/opt/bootshorn/temperatures"
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,11 @@ directories = {
|
||||||
'owner': 'ckn',
|
'owner': 'ckn',
|
||||||
'group': 'ckn',
|
'group': 'ckn',
|
||||||
},
|
},
|
||||||
'/opt/bootshorn/temperatures': {
|
|
||||||
'owner': 'ckn',
|
|
||||||
'group': 'ckn',
|
|
||||||
},
|
|
||||||
'/opt/bootshorn/recordings': {
|
'/opt/bootshorn/recordings': {
|
||||||
'owner': 'ckn',
|
'owner': 'ckn',
|
||||||
'group': 'ckn',
|
'group': 'ckn',
|
||||||
},
|
},
|
||||||
'/opt/bootshorn/recordings/current': {
|
'/opt/bootshorn/temperatures': {
|
||||||
'owner': 'ckn',
|
'owner': 'ckn',
|
||||||
'group': 'ckn',
|
'group': 'ckn',
|
||||||
},
|
},
|
||||||
|
|
@ -38,7 +34,6 @@ files = {
|
||||||
'/opt/bootshorn/temperature': {
|
'/opt/bootshorn/temperature': {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': {
|
||||||
'hue_ip': repo.get_node('home.hue').hostname,
|
|
||||||
'hue_app_key': repo.vault.decrypt('encrypt$gAAAAABoc2WxZCLbxl-Z4IrSC97CdOeFgBplr9Fp5ujpd0WCCCPNBUY_WquHN86z8hKLq5Y04dwq8TdJW0PMSOSgTFbGgdp_P1q0jOBLEKaW9IIT1YM88h-JYwLf9QGDV_5oEfvnBCtO'),
|
'hue_app_key': repo.vault.decrypt('encrypt$gAAAAABoc2WxZCLbxl-Z4IrSC97CdOeFgBplr9Fp5ujpd0WCCCPNBUY_WquHN86z8hKLq5Y04dwq8TdJW0PMSOSgTFbGgdp_P1q0jOBLEKaW9IIT1YM88h-JYwLf9QGDV_5oEfvnBCtO'),
|
||||||
},
|
},
|
||||||
'owner': 'ckn',
|
'owner': 'ckn',
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def ssh_keys(metadata):
|
||||||
'users': {
|
'users': {
|
||||||
'build-agent': {
|
'build-agent': {
|
||||||
'authorized_users': {
|
'authorized_users': {
|
||||||
f'build-server@{other_node.name}': {}
|
f'build-server@{other_node.name}'
|
||||||
for other_node in repo.nodes
|
for other_node in repo.nodes
|
||||||
if other_node.has_bundle('build-server')
|
if other_node.has_bundle('build-server')
|
||||||
for architecture in other_node.metadata.get('build-server/architectures').values()
|
for architecture in other_node.metadata.get('build-server/architectures').values()
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ def ssh_keys(metadata):
|
||||||
'users': {
|
'users': {
|
||||||
'build-ci': {
|
'build-ci': {
|
||||||
'authorized_users': {
|
'authorized_users': {
|
||||||
f'build-server@{other_node.name}': {}
|
f'build-server@{other_node.name}'
|
||||||
for other_node in repo.nodes
|
for other_node in repo.nodes
|
||||||
if other_node.has_bundle('build-server')
|
if other_node.has_bundle('build-server')
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ defaults = {
|
||||||
'sources': {
|
'sources': {
|
||||||
'crystal': {
|
'crystal': {
|
||||||
# https://software.opensuse.org/download.html?project=devel%3Alanguages%3Acrystal&package=crystal
|
# https://software.opensuse.org/download.html?project=devel%3Alanguages%3Acrystal&package=crystal
|
||||||
# curl -fsSL https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_Testing/Release.key
|
|
||||||
'urls': {
|
'urls': {
|
||||||
'http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_Testing/',
|
'http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_Testing/',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
17
bundles/dovecot/files/dovecot-sql.conf
Normal file
17
bundles/dovecot/files/dovecot-sql.conf
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
connect = host=${host} dbname=${name} user=${user} password=${password}
|
||||||
|
driver = pgsql
|
||||||
|
default_pass_scheme = ARGON2ID
|
||||||
|
|
||||||
|
user_query = SELECT '/var/vmail/%u' AS home, 'vmail' AS uid, 'vmail' AS gid
|
||||||
|
|
||||||
|
iterate_query = SELECT CONCAT(users.name, '@', domains.name) AS user \
|
||||||
|
FROM users \
|
||||||
|
LEFT JOIN domains ON users.domain_id = domains.id \
|
||||||
|
WHERE redirect IS NULL
|
||||||
|
|
||||||
|
password_query = SELECT CONCAT(users.name, '@', domains.name) AS user, password \
|
||||||
|
FROM users \
|
||||||
|
LEFT JOIN domains ON users.domain_id = domains.id \
|
||||||
|
WHERE redirect IS NULL \
|
||||||
|
AND users.name = SPLIT_PART('%u', '@', 1) \
|
||||||
|
AND domains.name = SPLIT_PART('%u', '@', 2)
|
||||||
|
|
@ -1,17 +1,13 @@
|
||||||
dovecot_config_version = ${config_version}
|
|
||||||
dovecot_storage_version = ${storage_version}
|
|
||||||
|
|
||||||
protocols = imap lmtp sieve
|
protocols = imap lmtp sieve
|
||||||
auth_mechanisms = plain login
|
auth_mechanisms = plain login
|
||||||
|
mail_privileged_group = mail
|
||||||
ssl = required
|
ssl = required
|
||||||
ssl_server_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
ssl_cert = </var/lib/dehydrated/certs/${node.metadata.get('mailserver/hostname')}/fullchain.pem
|
||||||
ssl_server_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
ssl_key = </var/lib/dehydrated/certs/${node.metadata.get('mailserver/hostname')}/privkey.pem
|
||||||
ssl_server_dh_file = /etc/dovecot/dhparam.pem
|
ssl_dh = </etc/dovecot/dhparam.pem
|
||||||
ssl_client_ca_dir = /etc/ssl/certs
|
ssl_client_ca_dir = /etc/ssl/certs
|
||||||
mail_driver = maildir
|
mail_location = maildir:${node.metadata.get('mailserver/maildir')}/%u:INDEX=${node.metadata.get('mailserver/maildir')}/index/%u
|
||||||
mail_path = ${maildir}/%{user}
|
mail_plugins = fts fts_xapian
|
||||||
mail_index_path = ${maildir}/index/%{user}
|
|
||||||
mail_plugins = fts fts_flatcurve
|
|
||||||
|
|
||||||
namespace inbox {
|
namespace inbox {
|
||||||
inbox = yes
|
inbox = yes
|
||||||
|
|
@ -34,46 +30,14 @@ namespace inbox {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# postgres passdb userdb
|
passdb {
|
||||||
|
driver = sql
|
||||||
sql_driver = pgsql
|
args = /etc/dovecot/dovecot-sql.conf
|
||||||
|
|
||||||
pgsql main {
|
|
||||||
parameters {
|
|
||||||
host = ${db_host}
|
|
||||||
dbname = ${db_name}
|
|
||||||
user = ${db_user}
|
|
||||||
password = ${db_password}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
# use sql for userdb too, to enable iterate_query
|
||||||
passdb sql {
|
userdb {
|
||||||
passdb_default_password_scheme = ARGON2ID
|
driver = sql
|
||||||
|
args = /etc/dovecot/dovecot-sql.conf
|
||||||
query = SELECT \
|
|
||||||
CONCAT(users.name, '@', domains.name) AS "user", \
|
|
||||||
password \
|
|
||||||
FROM users \
|
|
||||||
LEFT JOIN domains ON users.domain_id = domains.id \
|
|
||||||
WHERE redirect IS NULL \
|
|
||||||
AND users.name = SPLIT_PART('%{user}', '@', 1) \
|
|
||||||
AND domains.name = SPLIT_PART('%{user}', '@', 2)
|
|
||||||
}
|
|
||||||
|
|
||||||
mail_uid = vmail
|
|
||||||
mail_gid = vmail
|
|
||||||
|
|
||||||
userdb sql {
|
|
||||||
query = SELECT \
|
|
||||||
'/var/vmail/%{user}' AS home, \
|
|
||||||
'vmail' AS uid, \
|
|
||||||
'vmail' AS gid
|
|
||||||
|
|
||||||
iterate_query = SELECT \
|
|
||||||
CONCAT(users.name, '@', domains.name) AS username \
|
|
||||||
FROM users \
|
|
||||||
LEFT JOIN domains ON users.domain_id = domains.id \
|
|
||||||
WHERE redirect IS NULL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service auth {
|
service auth {
|
||||||
|
|
@ -103,9 +67,10 @@ service stats {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
service managesieve-login {
|
service managesieve-login {
|
||||||
#inet_listener sieve {}
|
inet_listener sieve {
|
||||||
process_min_avail = 1
|
}
|
||||||
process_limit = 1
|
process_min_avail = 0
|
||||||
|
service_count = 1
|
||||||
vsz_limit = 64 M
|
vsz_limit = 64 M
|
||||||
}
|
}
|
||||||
service managesieve {
|
service managesieve {
|
||||||
|
|
@ -113,53 +78,31 @@ service managesieve {
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol imap {
|
protocol imap {
|
||||||
mail_plugins = fts fts_flatcurve imap_sieve
|
mail_plugins = $mail_plugins imap_sieve
|
||||||
mail_max_userip_connections = 50
|
mail_max_userip_connections = 50
|
||||||
imap_idle_notify_interval = 29 mins
|
imap_idle_notify_interval = 29 mins
|
||||||
}
|
}
|
||||||
protocol lmtp {
|
protocol lmtp {
|
||||||
mail_plugins = fts fts_flatcurve sieve
|
mail_plugins = $mail_plugins sieve
|
||||||
}
|
}
|
||||||
|
protocol sieve {
|
||||||
# Persönliches Skript (deine alte Datei /var/vmail/sieve/%u.sieve)
|
plugin {
|
||||||
sieve_script personal {
|
sieve = /var/vmail/sieve/%u.sieve
|
||||||
driver = file
|
sieve_storage = /var/vmail/sieve/%u/
|
||||||
# Verzeichnis mit (evtl. mehreren) Sieve-Skripten des Users
|
}
|
||||||
path = /var/vmail/sieve/%{user}/
|
|
||||||
# Aktives Skript (entspricht früher "sieve = /var/vmail/sieve/%u.sieve")
|
|
||||||
active_path = /var/vmail/sieve/%{user}.sieve
|
|
||||||
}
|
|
||||||
|
|
||||||
# Globales After-Skript (dein früheres "sieve_after = …")
|
|
||||||
sieve_script after {
|
|
||||||
type = after
|
|
||||||
driver = file
|
|
||||||
path = /var/vmail/sieve/global/spam-to-folder.sieve
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# fulltext search
|
# fulltext search
|
||||||
language en {
|
plugin {
|
||||||
|
fts = xapian
|
||||||
|
fts_xapian = partial=3 full=20 verbose=0
|
||||||
|
fts_autoindex = yes
|
||||||
|
fts_enforced = yes
|
||||||
|
# Index attachements
|
||||||
|
fts_decoder = decode2text
|
||||||
}
|
}
|
||||||
language de {
|
|
||||||
default = yes
|
|
||||||
}
|
|
||||||
language_tokenizers = generic email-address
|
|
||||||
|
|
||||||
fts flatcurve {
|
|
||||||
substring_search = yes
|
|
||||||
# rotate_count = 5000 # DB-Rotation nach X Mails
|
|
||||||
# rotate_time = 5s # oder zeitbasiert rotieren
|
|
||||||
# optimize_limit = 10
|
|
||||||
# min_term_size = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
fts_autoindex = yes
|
|
||||||
fts_decoder_driver = script
|
|
||||||
fts_decoder_script_socket_path = decode2text
|
|
||||||
|
|
||||||
service indexer-worker {
|
service indexer-worker {
|
||||||
process_limit = ${indexer_cores}
|
vsz_limit = ${indexer_ram}
|
||||||
vsz_limit = ${indexer_ram}M
|
|
||||||
}
|
}
|
||||||
service decode2text {
|
service decode2text {
|
||||||
executable = script /usr/local/libexec/dovecot/decode2text.sh
|
executable = script /usr/local/libexec/dovecot/decode2text.sh
|
||||||
|
|
@ -169,39 +112,24 @@ service decode2text {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mailbox Junk {
|
# spam filter
|
||||||
sieve_script learn_spam {
|
plugin {
|
||||||
driver = file
|
sieve_plugins = sieve_imapsieve sieve_extprograms
|
||||||
type = before
|
sieve_dir = /var/vmail/sieve/%u/
|
||||||
cause = copy
|
sieve = /var/vmail/sieve/%u.sieve
|
||||||
path = /var/vmail/sieve/global/learn-spam.sieve
|
sieve_pipe_bin_dir = /var/vmail/sieve/bin
|
||||||
}
|
sieve_extensions = +vnd.dovecot.pipe
|
||||||
}
|
|
||||||
|
|
||||||
imapsieve_from Junk {
|
sieve_after = /var/vmail/sieve/global/spam-to-folder.sieve
|
||||||
sieve_script learn_ham {
|
|
||||||
driver = file
|
|
||||||
type = before
|
|
||||||
cause = copy
|
|
||||||
path = /var/vmail/sieve/global/learn-ham.sieve
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Extprograms-Plugin einschalten
|
# From elsewhere to Spam folder
|
||||||
sieve_plugins {
|
imapsieve_mailbox1_name = Junk
|
||||||
sieve_extprograms = yes
|
imapsieve_mailbox1_causes = COPY
|
||||||
}
|
imapsieve_mailbox1_before = file:/var/vmail/sieve/global/learn-spam.sieve
|
||||||
|
|
||||||
# Welche Sieve-Erweiterungen dürfen genutzt werden?
|
# From Spam folder to elsewhere
|
||||||
# Empfehlung: nur global erlauben (nicht in User-Skripten):
|
imapsieve_mailbox2_name = *
|
||||||
sieve_global_extensions {
|
imapsieve_mailbox2_from = Junk
|
||||||
vnd.dovecot.pipe = yes
|
imapsieve_mailbox2_causes = COPY
|
||||||
# vnd.dovecot.filter = yes # nur falls gebraucht
|
imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve
|
||||||
# vnd.dovecot.execute = yes # nur falls gebraucht
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verzeichnis mit deinen Skripten/Binaries für :pipe
|
|
||||||
sieve_pipe_bin_dir = /var/vmail/sieve/bin
|
|
||||||
# (optional, analog für :filter / :execute)
|
|
||||||
# sieve_filter_bin_dir = /var/vmail/sieve/filter
|
|
||||||
# sieve_execute_bin_dir = /var/vmail/sieve/execute
|
|
||||||
|
|
@ -44,16 +44,6 @@ files = {
|
||||||
'context': {
|
'context': {
|
||||||
'admin_email': node.metadata.get('mailserver/admin_email'),
|
'admin_email': node.metadata.get('mailserver/admin_email'),
|
||||||
'indexer_ram': node.metadata.get('dovecot/indexer_ram'),
|
'indexer_ram': node.metadata.get('dovecot/indexer_ram'),
|
||||||
'config_version': node.metadata.get('dovecot/config_version'),
|
|
||||||
'storage_version': node.metadata.get('dovecot/storage_version'),
|
|
||||||
'maildir': node.metadata.get('mailserver/maildir'),
|
|
||||||
'hostname': node.metadata.get('mailserver/hostname'),
|
|
||||||
'db_host': node.metadata.get('mailserver/database/host'),
|
|
||||||
'db_name': node.metadata.get('mailserver/database/name'),
|
|
||||||
'db_user': node.metadata.get('mailserver/database/user'),
|
|
||||||
'db_password': node.metadata.get('mailserver/database/password'),
|
|
||||||
'indexer_cores': node.metadata.get('vm/cores'),
|
|
||||||
'indexer_ram': node.metadata.get('vm/ram')//2,
|
|
||||||
},
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
'pkg_apt:'
|
'pkg_apt:'
|
||||||
|
|
@ -62,9 +52,29 @@ files = {
|
||||||
'svc_systemd:dovecot:restart',
|
'svc_systemd:dovecot:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'/etc/dovecot/dovecot-sql.conf': {
|
||||||
|
'content_type': 'mako',
|
||||||
|
'context': node.metadata.get('mailserver/database'),
|
||||||
|
'needs': {
|
||||||
|
'pkg_apt:'
|
||||||
|
},
|
||||||
|
'triggers': {
|
||||||
|
'svc_systemd:dovecot:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
'/etc/dovecot/dhparam.pem': {
|
'/etc/dovecot/dhparam.pem': {
|
||||||
'content_type': 'any',
|
'content_type': 'any',
|
||||||
},
|
},
|
||||||
|
'/etc/dovecot/dovecot-sql.conf': {
|
||||||
|
'content_type': 'mako',
|
||||||
|
'context': node.metadata.get('mailserver/database'),
|
||||||
|
'needs': {
|
||||||
|
'pkg_apt:'
|
||||||
|
},
|
||||||
|
'triggers': {
|
||||||
|
'svc_systemd:dovecot:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
'/var/vmail/sieve/global/spam-to-folder.sieve': {
|
'/var/vmail/sieve/global/spam-to-folder.sieve': {
|
||||||
'owner': 'vmail',
|
'owner': 'vmail',
|
||||||
'group': 'vmail',
|
'group': 'vmail',
|
||||||
|
|
@ -121,6 +131,7 @@ svc_systemd = {
|
||||||
'action:letsencrypt_update_certificates',
|
'action:letsencrypt_update_certificates',
|
||||||
'action:dovecot_generate_dhparam',
|
'action:dovecot_generate_dhparam',
|
||||||
'file:/etc/dovecot/dovecot.conf',
|
'file:/etc/dovecot/dovecot.conf',
|
||||||
|
'file:/etc/dovecot/dovecot-sql.conf',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ defaults = {
|
||||||
'dovecot-sieve': {},
|
'dovecot-sieve': {},
|
||||||
'dovecot-managesieved': {},
|
'dovecot-managesieved': {},
|
||||||
# fulltext search
|
# fulltext search
|
||||||
'dovecot-flatcurve': {}, # buster-backports
|
'dovecot-fts-xapian': {}, # buster-backports
|
||||||
'poppler-utils': {}, # pdftotext
|
'poppler-utils': {}, # pdftotext
|
||||||
'catdoc': {}, # catdoc, catppt, xls2csv
|
'catdoc': {}, # catdoc, catppt, xls2csv
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ def ssh_keys(metadata):
|
||||||
'users': {
|
'users': {
|
||||||
'downloads': {
|
'downloads': {
|
||||||
'authorized_users': {
|
'authorized_users': {
|
||||||
f'build-server@{other_node.name}': {}
|
f'build-server@{other_node.name}'
|
||||||
for other_node in repo.nodes
|
for other_node in repo.nodes
|
||||||
if other_node.has_bundle('build-server')
|
if other_node.has_bundle('build-server')
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ files['/etc/gitea/app.ini'] = {
|
||||||
),
|
),
|
||||||
'owner': 'git',
|
'owner': 'git',
|
||||||
'mode': '0600',
|
'mode': '0600',
|
||||||
'context': node.metadata.get('gitea'),
|
'context': node.metadata['gitea'],
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:gitea:restart',
|
'svc_systemd:gitea:restart',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
||||||
panel['gridPos']['y'] = (row_id - 1) * panel['gridPos']['h']
|
panel['gridPos']['y'] = (row_id - 1) * panel['gridPos']['h']
|
||||||
|
|
||||||
if 'display_name' in panel_config:
|
if 'display_name' in panel_config:
|
||||||
panel['fieldConfig']['defaults']['displayName'] = panel_config['display_name']
|
panel['fieldConfig']['defaults']['displayName'] = '${'+panel_config['display_name']+'}'
|
||||||
|
|
||||||
if panel_config.get('stacked'):
|
if panel_config.get('stacked'):
|
||||||
panel['fieldConfig']['defaults']['custom']['stacking']['mode'] = 'normal'
|
panel['fieldConfig']['defaults']['custom']['stacking']['mode'] = 'normal'
|
||||||
|
|
@ -158,14 +158,13 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
||||||
host=monitored_node.name,
|
host=monitored_node.name,
|
||||||
negative=query_config.get('negative', False),
|
negative=query_config.get('negative', False),
|
||||||
boolean_to_int=query_config.get('boolean_to_int', False),
|
boolean_to_int=query_config.get('boolean_to_int', False),
|
||||||
over=query_config.get('over', None),
|
minimum=query_config.get('minimum', None),
|
||||||
filters={
|
filters={
|
||||||
'host': monitored_node.name,
|
'host': monitored_node.name,
|
||||||
**query_config['filters'],
|
**query_config['filters'],
|
||||||
},
|
},
|
||||||
exists=query_config.get('exists', []),
|
exists=query_config.get('exists', []),
|
||||||
function=query_config.get('function', None),
|
function=query_config.get('function', None),
|
||||||
multiply=query_config.get('multiply', None),
|
|
||||||
).strip()
|
).strip()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -179,3 +178,4 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ files = {
|
||||||
'/usr/local/share/telegraf/cpu_frequency': {
|
'/usr/local/share/telegraf/cpu_frequency': {
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:telegraf.service:restart',
|
'svc_systemd:telegraf:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,17 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'sensors': {
|
'sensors': {repo.libs.hashable.hashable({
|
||||||
'default': {
|
|
||||||
'timeout': '2s',
|
'timeout': '2s',
|
||||||
},
|
})},
|
||||||
},
|
|
||||||
'exec': {
|
'exec': {
|
||||||
'cpu_frequency': {
|
repo.libs.hashable.hashable({
|
||||||
'commands': ["sudo /usr/local/share/telegraf/cpu_frequency"],
|
'commands': ["sudo /usr/local/share/telegraf/cpu_frequency"],
|
||||||
'name_override': "cpu_frequency",
|
'name_override': "cpu_frequency",
|
||||||
'data_format': "influx",
|
'data_format': "influx",
|
||||||
},
|
}),
|
||||||
# repo.libs.hashable.hashable({
|
# repo.libs.hashable.hashable({
|
||||||
# 'commands': ["/bin/bash -c 'expr $(cat /sys/class/thermal/thermal_zone0/temp) / 1000'"],
|
# 'commands': ["/bin/bash -c 'expr $(cat /sys/class/thermal/thermal_zone0/temp) / 1000'"],
|
||||||
# 'name_override': "cpu_temperature",
|
# 'name_override': "cpu_temperature",
|
||||||
|
|
@ -35,4 +34,5 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,14 +52,13 @@ def subnets(metadata):
|
||||||
if 'mac' in network_conf
|
if 'mac' in network_conf
|
||||||
)
|
)
|
||||||
|
|
||||||
for id, (network_name, network_conf) in enumerate(sorted(metadata.get('network').items())):
|
for network_name, network_conf in metadata.get('network').items():
|
||||||
dhcp_server_config = network_conf.get('dhcp_server_config', None)
|
dhcp_server_config = network_conf.get('dhcp_server_config', None)
|
||||||
|
|
||||||
if dhcp_server_config:
|
if dhcp_server_config:
|
||||||
_network = ip_network(dhcp_server_config['subnet'])
|
_network = ip_network(dhcp_server_config['subnet'])
|
||||||
|
|
||||||
subnet4.add(hashable({
|
subnet4.add(hashable({
|
||||||
'id': id + 1,
|
|
||||||
'subnet': dhcp_server_config['subnet'],
|
'subnet': dhcp_server_config['subnet'],
|
||||||
'pools': [
|
'pools': [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,58 @@
|
||||||
https://github.com/SirPlease/L4D2-Competitive-Rework/blob/master/Dedicated%20Server%20Install%20Guide/README.md
|
https://developer.valvesoftware.com/wiki/List_of_L4D2_Cvars
|
||||||
|
|
||||||
```python
|
Dead Center c1m1_hotel
|
||||||
'tick60_maps': {
|
Dead Center c1m2_streets
|
||||||
'port': 27030,
|
Dead Center c1m3_mall
|
||||||
# add command line arguments
|
Dead Center c1m4_atrium
|
||||||
'arguments': ['-tickrate 60'],
|
Dark Carnival c2m1_highway
|
||||||
# stack overlays, first is uppermost
|
Dark Carnival c2m2_fairgrounds
|
||||||
'overlays': ['tickrate', 'standard'],
|
Dark Carnival c2m3_coaster
|
||||||
# server.cfg contents
|
Dark Carnival c2m4_barns
|
||||||
'config': [
|
Dark Carnival c2m5_concert
|
||||||
# configs from overlays are accessible via server_${overlay}.cfg
|
Swamp Fever c3m1_plankcountry
|
||||||
'exec server_tickrate.cfg',
|
Swamp Fever c3m2_swamp
|
||||||
# add more options
|
Swamp Fever c3m3_shantytown
|
||||||
'sv_minupdaterate 101',
|
Swamp Fever c3m4_plantation
|
||||||
'sv_maxupdaterate 101',
|
Hard Rain c4m1_milltown_a
|
||||||
'sv_mincmdrate 101',
|
Hard Rain c4m2_sugarmill_a
|
||||||
'sv_maxcmdrate 101',
|
Hard Rain c4m3_sugarmill_b
|
||||||
'sv_consistency 0',
|
Hard Rain c4m4_milltown_b
|
||||||
],
|
Hard Rain c4m5_milltown_escape
|
||||||
},
|
The Parish c5m1_waterfront_sndscape
|
||||||
```
|
The Parish c5m1_waterfront
|
||||||
|
The Parish c5m2_park
|
||||||
|
The Parish c5m3_cemetery
|
||||||
|
The Parish c5m4_quarter
|
||||||
|
The Parish c5m5_bridge
|
||||||
|
The Passing c6m1_riverbank
|
||||||
|
The Passing c6m2_bedlam
|
||||||
|
The Passing c6m3_port
|
||||||
|
The Sacrifice c7m1_docks
|
||||||
|
The Sacrifice c7m2_barge
|
||||||
|
The Sacrifice c7m3_port
|
||||||
|
No Mercy c8m1_apartment
|
||||||
|
No Mercy c8m2_subway
|
||||||
|
No Mercy c8m3_sewers
|
||||||
|
No Mercy c8m4_interior
|
||||||
|
No Mercy c8m5_rooftop
|
||||||
|
Crash Course c9m1_alleys
|
||||||
|
Crash Course c9m2_lots
|
||||||
|
Death Toll c10m1_caves
|
||||||
|
Death Toll c10m2_drainage
|
||||||
|
Death Toll c10m3_ranchhouse
|
||||||
|
Death Toll c10m4_mainstreet
|
||||||
|
Death Toll c10m5_houseboat
|
||||||
|
Dead Air c11m1_greenhouse
|
||||||
|
Dead Air c11m2_offices
|
||||||
|
Dead Air c11m3_garage
|
||||||
|
Dead Air c11m4_terminal
|
||||||
|
Dead Air c11m5_runway
|
||||||
|
Blood Harvest c12m1_hilltop
|
||||||
|
Blood Harvest c12m2_traintunnel
|
||||||
|
Blood Harvest c12m3_bridge
|
||||||
|
Blood Harvest c12m4_barn
|
||||||
|
Blood Harvest c12m5_cornfield
|
||||||
|
Cold Stream c13m1_alpinecreek
|
||||||
|
Cold Stream c13m2_southpinestream
|
||||||
|
Cold Stream c13m3_memorialbridge
|
||||||
|
Cold Stream c13m4_cutthroatcreek
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
function steam() {
|
|
||||||
# for systemd, so it can terminate the process (for other things sudo would have been enough)
|
|
||||||
setpriv --reuid=steam --regid=steam --init-groups "$@" <&0
|
|
||||||
export HOME=/opt/l4d2/steam
|
|
||||||
}
|
|
||||||
|
|
||||||
function workshop() {
|
|
||||||
steam mkdir -p "/opt/l4d2/overlays/${overlay}/left4dead2/addons"
|
|
||||||
steam /opt/l4d2/scripts/steam-workshop-download --out "/opt/l4d2/overlays/${overlay}/left4dead2/addons" "$@"
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
source /opt/l4d2/scripts/helpers
|
|
||||||
overlay=$(basename "$0")
|
|
||||||
|
|
||||||
# https://github.com/SirPlease/L4D2-Competitive-Rework
|
|
||||||
|
|
||||||
steam mkdir -p /opt/l4d2/overlays/$overlay/left4dead2
|
|
||||||
test -d /opt/l4d2/overlays/$overlay/left4dead2/cfg/cfgogl || \
|
|
||||||
curl -L https://github.com/SirPlease/L4D2-Competitive-Rework/archive/refs/heads/master.tar.gz | steam tar -xz --strip-components=1 -C /opt/l4d2/overlays/$overlay/left4dead2
|
|
||||||
|
|
@ -1,128 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
source /opt/l4d2/scripts/helpers
|
|
||||||
overlay=$(basename "$0")
|
|
||||||
|
|
||||||
steam mkdir -p /opt/l4d2/overlays/$overlay/left4dead2/addons
|
|
||||||
cd /opt/l4d2/overlays/$overlay/left4dead2/addons
|
|
||||||
|
|
||||||
# https://l4d2center.com/maps/servers/l4d2center_maps_sync.sh.txt ->
|
|
||||||
|
|
||||||
# Exit immediately if a command exits with a non-zero status.
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Function to print error messages
|
|
||||||
error_exit() {
|
|
||||||
echo "Error: $1" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Check if the current directory ends with /left4dead2/addons
|
|
||||||
current_dir=$(pwd)
|
|
||||||
expected_dir="/left4dead2/addons"
|
|
||||||
|
|
||||||
if [[ ! "$current_dir" == *"$expected_dir" ]]; then
|
|
||||||
error_exit "Script must be run from your L4D2 \"addons\" folder. Current directory: $current_dir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for required commands
|
|
||||||
for cmd in curl md5sum 7z; do
|
|
||||||
if ! command -v "$cmd" >/dev/null 2>&1; then
|
|
||||||
error_exit "Required command '$cmd' is not installed. Please install it and retry."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# URL of the CSV file
|
|
||||||
CSV_URL="https://l4d2center.com/maps/servers/index.csv"
|
|
||||||
|
|
||||||
# Temporary file to store CSV
|
|
||||||
TEMP_CSV=$(mktemp)
|
|
||||||
|
|
||||||
# Ensure temporary file is removed on exit
|
|
||||||
trap 'rm -f "$TEMP_CSV"' EXIT
|
|
||||||
|
|
||||||
echo "Downloading CSV from $CSV_URL..."
|
|
||||||
curl -sSL -o "$TEMP_CSV" "$CSV_URL" || error_exit "Failed to download CSV."
|
|
||||||
|
|
||||||
declare -A map_md5
|
|
||||||
declare -A map_links
|
|
||||||
|
|
||||||
# Read CSV and populate associative arrays
|
|
||||||
{
|
|
||||||
# Skip the first line (header)
|
|
||||||
IFS= read -r header
|
|
||||||
|
|
||||||
while IFS=';' read -r Name Size MD5 DownloadLink || [[ $Name ]]; do
|
|
||||||
# Trim whitespace
|
|
||||||
Name=$(echo "$Name" | xargs)
|
|
||||||
MD5=$(echo "$MD5" | xargs)
|
|
||||||
DownloadLink=$(echo "$DownloadLink" | xargs)
|
|
||||||
|
|
||||||
# Populate associative arrays
|
|
||||||
map_md5["$Name"]="$MD5"
|
|
||||||
map_links["$Name"]="$DownloadLink"
|
|
||||||
done
|
|
||||||
} < "$TEMP_CSV"
|
|
||||||
|
|
||||||
# Get list of expected VPK files
|
|
||||||
expected_vpk=("${!map_md5[@]}")
|
|
||||||
|
|
||||||
# Remove VPK files not in expected list or with mismatched MD5
|
|
||||||
echo "Cleaning up existing VPK files..."
|
|
||||||
for file in *.vpk; do
|
|
||||||
# Check if it's a regular file
|
|
||||||
if [[ -f "$file" ]]; then
|
|
||||||
if [[ -z "${map_md5["$file"]}" ]]; then
|
|
||||||
echo "Removing unexpected file: $file"
|
|
||||||
rm -f "$file"
|
|
||||||
else
|
|
||||||
# Calculate MD5
|
|
||||||
echo "Calculating MD5 for existing file: $file..."
|
|
||||||
current_md5=$(md5sum "$file" | awk '{print $1}')
|
|
||||||
expected_md5="${map_md5["$file"]}"
|
|
||||||
|
|
||||||
if [[ "$current_md5" != "$expected_md5" ]]; then
|
|
||||||
echo "MD5 mismatch for $file. Removing."
|
|
||||||
rm -f "$file"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Download and extract missing or updated VPK files
|
|
||||||
echo "Processing required VPK files..."
|
|
||||||
for vpk in "${expected_vpk[@]}"; do
|
|
||||||
if [[ ! -f "$vpk" ]]; then
|
|
||||||
echo "Downloading and extracting $vpk..."
|
|
||||||
download_url="${map_links["$vpk"]}"
|
|
||||||
|
|
||||||
if [[ -z "$download_url" ]]; then
|
|
||||||
echo "No download link found for $vpk. Skipping."
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
encoded_url=$(echo "$download_url" | sed 's/ /%20/g')
|
|
||||||
|
|
||||||
# Download the .7z file to a temporary location
|
|
||||||
TEMP_7Z=$(mktemp --suffix=.7z)
|
|
||||||
curl -# -L -o "$TEMP_7Z" "$encoded_url"
|
|
||||||
|
|
||||||
# Check if the download was successful
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "Failed to download $download_url. Skipping."
|
|
||||||
rm -f "$TEMP_7Z"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Extract the .7z file
|
|
||||||
7z x -y "$TEMP_7Z" || { echo "Failed to extract $TEMP_7Z. Skipping."; rm -f "$TEMP_7Z"; continue; }
|
|
||||||
|
|
||||||
# Remove the temporary .7z file
|
|
||||||
rm -f "$TEMP_7Z"
|
|
||||||
|
|
||||||
else
|
|
||||||
echo "$vpk is already up to date."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Synchronization complete."
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
source /opt/l4d2/scripts/helpers
|
|
||||||
overlay=$(basename "$0")
|
|
||||||
|
|
||||||
# Ions Vocalizer
|
|
||||||
workshop -i 698857882
|
|
||||||
|
|
||||||
# admin system
|
|
||||||
workshop --item 2524204971
|
|
||||||
steam mkdir -p "/opt/l4d2/overlays/${overlay}/left4dead2/ems/admin system"
|
|
||||||
steam echo "STEAM_1:0:12376499" > "/opt/l4d2/overlays/${overlay}/left4dead2/ems/admin system/admins.txt"
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
source /opt/l4d2/scripts/helpers
|
|
||||||
overlay=$(basename "$0")
|
|
||||||
|
|
||||||
# server config
|
|
||||||
# https://github.com/SirPlease/L4D2-Competitive-Rework/blob/7ecc3a32a5e2180d6607a40119ff2f3c072502a9/cfg/server.cfg#L58-L69
|
|
||||||
# https://www.programmersought.com/article/513810199514/
|
|
||||||
steam mkdir -p /opt/l4d2/overlays/$overlay/left4dead2/cfg
|
|
||||||
steam cat <<'EOF' > /opt/l4d2/overlays/$overlay/left4dead2/cfg/server.cfg
|
|
||||||
# https://github.com/SirPlease/L4D2-Competitive-Rework/blob/7ecc3a32a5e2180d6607a40119ff2f3c072502a9/cfg/server.cfg#L58-L69
|
|
||||||
sv_minrate 100000
|
|
||||||
sv_maxrate 100000
|
|
||||||
nb_update_frequency 0.014
|
|
||||||
net_splitpacket_maxrate 50000
|
|
||||||
net_maxcleartime 0.0001
|
|
||||||
fps_max 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# install tickrate enabler
|
|
||||||
steam mkdir -p "/opt/l4d2/overlays/${overlay}/left4dead2/addons"
|
|
||||||
for file in tickrate_enabler.dll tickrate_enabler.so tickrate_enabler.vdf
|
|
||||||
do
|
|
||||||
curl -L "https://github.com/SirPlease/L4D2-Competitive-Rework/raw/refs/heads/master/addons/${file}" -o "/opt/l4d2/overlays/${overlay}/left4dead2/addons/${file}"
|
|
||||||
done
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
source /opt/l4d2/scripts/helpers
|
|
||||||
overlay=$(basename "$0")
|
|
||||||
|
|
||||||
workshop --collection 121115793 # Back To School
|
|
||||||
|
|
||||||
workshop --item 2957035482 # hehe30-part1
|
|
||||||
workshop --item 2973628334 # hehe30-part2
|
|
||||||
workshop --item 3013844371 # hehe30-part3
|
|
||||||
|
|
||||||
workshop --item 3478461158 # 虚伪黎明(Dawn's Deception)
|
|
||||||
workshop --item 3478934394 # 虚伪黎明(Dawn's Deception)PART2
|
|
||||||
|
|
@ -1,13 +1,40 @@
|
||||||
// defaults
|
hostname "CroneKorkN : ${name}"
|
||||||
hostname ${server_name}
|
sv_contact "admin@sublimity.de"
|
||||||
|
|
||||||
|
|
||||||
|
sv_steamgroup "${','.join(steamgroups)}"
|
||||||
|
|
||||||
|
rcon_password "${rcon_password}"
|
||||||
|
|
||||||
|
|
||||||
motd_enabled 0
|
motd_enabled 0
|
||||||
rcon_password ${rcon_password}
|
|
||||||
sv_steamgroup "38347879"
|
|
||||||
|
|
||||||
mp_autoteambalance 0
|
|
||||||
sv_forcepreload 1
|
|
||||||
|
|
||||||
// server specific
|
sv_cheats 1
|
||||||
% for line in config:
|
|
||||||
${line}
|
|
||||||
% endfor
|
sv_consistency 0
|
||||||
|
|
||||||
|
|
||||||
|
sv_lan 0
|
||||||
|
|
||||||
|
|
||||||
|
sv_allow_lobby_connect_only 0
|
||||||
|
|
||||||
|
|
||||||
|
sv_gametypes "coop,realism,survival,versus,teamversus,scavenge,teamscavenge"
|
||||||
|
|
||||||
|
|
||||||
|
sv_minrate 30000
|
||||||
|
sv_maxrate 60000
|
||||||
|
sv_mincmdrate 66
|
||||||
|
sv_maxcmdrate 101
|
||||||
|
|
||||||
|
|
||||||
|
sv_logsdir "logs-${name}" //Folder in the game directory where server logs will be stored.
|
||||||
|
log on //Creates a logfile (on | off)
|
||||||
|
sv_logecho 0 //default 0; Echo log information to the console.
|
||||||
|
sv_logfile 1 //default 1; Log server information in the log file.
|
||||||
|
sv_log_onefile 0 //default 0; Log server information to only one file.
|
||||||
|
sv_logbans 1 //default 0;Log server bans in the server logs.
|
||||||
|
sv_logflush 0 //default 0; Flush the log files to disk on each write (slow).
|
||||||
|
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
# -- DEFINE FUNCTIONS AND VARIABLES -- #
|
|
||||||
|
|
||||||
function steam() {
|
|
||||||
# for systemd, so it can terminate the process (for other things sudo would have been enough)
|
|
||||||
setpriv --reuid=steam --regid=steam --init-groups "$@" <&0
|
|
||||||
export HOME=/opt/l4d2/steam
|
|
||||||
}
|
|
||||||
|
|
||||||
# -- PREPARE SYSTEM -- #
|
|
||||||
|
|
||||||
getent passwd steam >/dev/null || useradd -M -d /opt/l4d2 -s /bin/bash steam
|
|
||||||
mkdir -p /opt/l4d2 /tmp/dumps
|
|
||||||
chown steam:steam /opt/l4d2 /tmp/dumps
|
|
||||||
dpkg --add-architecture i386
|
|
||||||
apt update
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt install -y libc6:i386 lib32z1
|
|
||||||
|
|
||||||
# workshop downloader
|
|
||||||
test -f /opt/l4d2/scripts/steam-workshop-download || \
|
|
||||||
steam wget -4 https://git.sublimity.de/cronekorkn/steam-workshop-downloader/raw/branch/master/steam-workshop-download -P /opt/l4d2/scripts
|
|
||||||
steam chmod +x /opt/l4d2/scripts/steam-workshop-download
|
|
||||||
|
|
||||||
# -- STEAM -- #
|
|
||||||
|
|
||||||
steam mkdir -p /opt/l4d2/steam
|
|
||||||
test -f /opt/l4d2/steam/steamcmd_linux.tar.gz || \
|
|
||||||
steam wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz -P /opt/l4d2/steam
|
|
||||||
test -f /opt/l4d2/steam/steamcmd.sh || \
|
|
||||||
steam tar -xvzf /opt/l4d2/steam/steamcmd_linux.tar.gz -C /opt/l4d2/steam
|
|
||||||
|
|
||||||
# fix for: /opt/l4d2/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
|
|
||||||
steam mkdir -p /opt/l4d2/steam/.steam # needs to be in steam users home dir
|
|
||||||
readlink /opt/l4d2/steam/.steam/sdk32 | grep -q ^/opt/l4d2/steam/linux32$ || \
|
|
||||||
steam ln -sf /opt/l4d2/steam/linux32 /opt/l4d2/steam/.steam/sdk32
|
|
||||||
readlink /opt/l4d2/steam/.steam/sdk64 | grep -q ^/opt/l4d2/steam/linux64$ || \
|
|
||||||
steam ln -sf /opt/l4d2/steam/linux64 /opt/l4d2/steam/.steam/sdk64
|
|
||||||
|
|
||||||
# -- INSTALL -- #
|
|
||||||
|
|
||||||
# erst die windows deps zu installieren scheint ein workaround für x64 zu sein?
|
|
||||||
steam mkdir -p /opt/l4d2/installation
|
|
||||||
steam /opt/l4d2/steam/steamcmd.sh \
|
|
||||||
+force_install_dir /opt/l4d2/installation \
|
|
||||||
+login anonymous \
|
|
||||||
+@sSteamCmdForcePlatformType windows \
|
|
||||||
+app_update 222860 validate \
|
|
||||||
+quit
|
|
||||||
steam /opt/l4d2/steam/steamcmd.sh \
|
|
||||||
+force_install_dir /opt/l4d2/installation \
|
|
||||||
+login anonymous \
|
|
||||||
+@sSteamCmdForcePlatformType linux \
|
|
||||||
+app_update 222860 validate \
|
|
||||||
+quit
|
|
||||||
|
|
||||||
# -- OVERLAYS -- #
|
|
||||||
|
|
||||||
for overlay_path in /opt/l4d2/scripts/overlays/*; do
|
|
||||||
overlay=$(basename "$overlay_path")
|
|
||||||
steam mkdir -p /opt/l4d2/overlays/$overlay
|
|
||||||
bash -xeuo pipefail "$overlay_path"
|
|
||||||
test -f /opt/l4d2/overlays/$overlay/left4dead2/cfg/server.cfg && \
|
|
||||||
steam cp /opt/l4d2/overlays/$overlay/left4dead2/cfg/server.cfg /opt/l4d2/overlays/$overlay/left4dead2/cfg/server_$overlay.cfg
|
|
||||||
done
|
|
||||||
|
|
||||||
# -- SERVERS -- #
|
|
||||||
|
|
||||||
#steam rm -rf /opt/l4d2/servers
|
|
||||||
steam mkdir -p /opt/l4d2/servers
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
name=""
|
|
||||||
port=""
|
|
||||||
configfile=""
|
|
||||||
overlays=""
|
|
||||||
arguments=""
|
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
|
||||||
case "$1" in
|
|
||||||
-n|--name)
|
|
||||||
name="$2"; shift 2
|
|
||||||
;;
|
|
||||||
-p|--port)
|
|
||||||
port="$2"; shift 2
|
|
||||||
;;
|
|
||||||
-c|--config)
|
|
||||||
configfile="$2"; shift 2
|
|
||||||
;;
|
|
||||||
-o|--overlay)
|
|
||||||
overlays="/opt/l4d2/overlays/$2:$overlays"; shift 2
|
|
||||||
;;
|
|
||||||
--)
|
|
||||||
shift
|
|
||||||
arguments+="$@"
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "ERROR: unknown argument $1"; exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
[[ -n "${name}" ]] || { echo "ERROR: -n/--name missing"; exit 1; }
|
|
||||||
[[ -n "${port}" ]] || { echo "ERROR: -p/--port missing"; exit 1; }
|
|
||||||
|
|
||||||
# -- HELPER FUNCTIONS -- #
|
|
||||||
|
|
||||||
function steam() {
|
|
||||||
# für systemd, damit es den prozess beenden kann
|
|
||||||
setpriv --reuid=steam --regid=steam --init-groups "$@"
|
|
||||||
export HOME=/opt/l4d2/steam
|
|
||||||
}
|
|
||||||
|
|
||||||
# -- TIDY UP -- #
|
|
||||||
|
|
||||||
mountpoint -q "/opt/l4d2/servers/$name/merged" && umount "/opt/l4d2/servers/$name/merged"
|
|
||||||
steam rm -rf "/opt/l4d2/servers/$name"
|
|
||||||
|
|
||||||
# -- CREATE DIRECTORIES -- #
|
|
||||||
|
|
||||||
steam mkdir -p \
|
|
||||||
"/opt/l4d2/servers/$name" \
|
|
||||||
"/opt/l4d2/servers/$name/work" \
|
|
||||||
"/opt/l4d2/servers/$name/upper" \
|
|
||||||
"/opt/l4d2/servers/$name/merged"
|
|
||||||
|
|
||||||
# -- MOUNT OVERLAYFS -- #
|
|
||||||
|
|
||||||
mount -t overlay overlay \
|
|
||||||
-o "lowerdir=$overlays/opt/l4d2/installation,upperdir=/opt/l4d2/servers/$name/upper,workdir=/opt/l4d2/servers/$name/work" \
|
|
||||||
"/opt/l4d2/servers/$name/merged"
|
|
||||||
|
|
||||||
# -- REPLACE SERVER.CFG -- #
|
|
||||||
|
|
||||||
if [[ -n "$configfile" ]]; then
|
|
||||||
cp "$configfile" "/opt/l4d2/servers/$name/merged/left4dead2/cfg/server.cfg"
|
|
||||||
chown steam:steam "/opt/l4d2/servers/$name/merged/left4dead2/cfg/server.cfg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# -- RUN L4D2 -- #
|
|
||||||
|
|
||||||
steam "/opt/l4d2/servers/$name/merged/srcds_run" -norestart -pidfile "/opt/l4d2/servers/$name/pid" -game left4dead2 -ip 0.0.0.0 -port "$port" +hostname "Crone_$name" +map c1m1_hotel $arguments
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
name=""
|
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
|
||||||
case "$1" in
|
|
||||||
-n|--name)
|
|
||||||
name="$2"; shift 2
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "ERROR: unknown argument $1"; exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
mountpoint -q "/opt/l4d2/servers/$name/merged" && umount "/opt/l4d2/servers/$name/merged"
|
|
||||||
steam rm -rf "/opt/l4d2/servers/$name"
|
|
||||||
|
|
@ -1,105 +1,122 @@
|
||||||
users = {
|
assert node.has_bundle('steam') and node.has_bundle('steam-workshop-download')
|
||||||
'steam': {
|
|
||||||
'home': '/opt/l4d2/steam',
|
|
||||||
'shell': '/bin/bash',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/opt/l4d2': {
|
'/opt/steam/left4dead2-servers': {
|
||||||
'owner': 'steam', 'group': 'steam',
|
'owner': 'steam',
|
||||||
},
|
'group': 'steam',
|
||||||
'/opt/l4d2/steam': {
|
'mode': '0755',
|
||||||
'owner': 'steam', 'group': 'steam',
|
|
||||||
},
|
|
||||||
'/opt/l4d2/configs': {
|
|
||||||
'owner': 'steam', 'group': 'steam',
|
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/opt/l4d2/scripts': {
|
# Current zfs doesnt support zfs upperdir. The support was added in October 2022. Move upperdir - unused anyway -
|
||||||
'owner': 'steam', 'group': 'steam',
|
# to another dir. Also move workdir alongside it, as it has to be on same fs.
|
||||||
},
|
'/opt/steam-zfs-overlay-workarounds': {
|
||||||
'/opt/l4d2/scripts/overlays': {
|
'owner': 'steam',
|
||||||
'owner': 'steam', 'group': 'steam',
|
'group': 'steam',
|
||||||
|
'mode': '0755',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
files = {
|
# /opt/steam/steam/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
|
||||||
'/opt/l4d2/setup': {
|
symlinks = {
|
||||||
'mode': '755',
|
'/opt/steam/steam/.steam/sdk32': {
|
||||||
'triggers': {
|
'target': '/opt/steam/steam/linux32',
|
||||||
'svc_systemd:left4dead2-initialize.service:restart',
|
'owner': 'steam',
|
||||||
},
|
'group': 'steam',
|
||||||
},
|
}
|
||||||
'/opt/l4d2/start': {
|
|
||||||
'mode': '755',
|
|
||||||
'triggers': {
|
|
||||||
f'svc_systemd:left4dead2-{server_name}.service:restart'
|
|
||||||
for server_name in node.metadata.get('left4dead2/servers').keys()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'/opt/l4d2/stop': {
|
|
||||||
'mode': '755',
|
|
||||||
'triggers': {
|
|
||||||
f'svc_systemd:left4dead2-{server_name}.service:restart'
|
|
||||||
for server_name in node.metadata.get('left4dead2/servers').keys()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'/opt/l4d2/scripts/helpers': {
|
|
||||||
'source': 'scripts/helpers',
|
|
||||||
'mode': '755',
|
|
||||||
'triggers': {
|
|
||||||
'svc_systemd:left4dead2-initialize.service:restart',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for overlay in node.metadata.get('left4dead2/overlays'):
|
#
|
||||||
files[f'/opt/l4d2/scripts/overlays/{overlay}'] = {
|
# SERVERS
|
||||||
'source': f'scripts/overlays/{overlay}',
|
#
|
||||||
'mode': '755',
|
|
||||||
'triggers': {
|
for name, config in node.metadata.get('left4dead2/servers').items():
|
||||||
'svc_systemd:left4dead2-initialize.service:restart',
|
|
||||||
},
|
#overlay
|
||||||
|
directories[f'/opt/steam/left4dead2-servers/{name}'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
}
|
||||||
|
directories[f'/opt/steam-zfs-overlay-workarounds/{name}/upper'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
}
|
||||||
|
directories[f'/opt/steam-zfs-overlay-workarounds/{name}/workdir'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_systemd = {
|
# conf
|
||||||
'left4dead2-initialize.service': {
|
files[f'/opt/steam/left4dead2-servers/{name}/left4dead2/cfg/server.cfg'] = {
|
||||||
'enabled': True,
|
|
||||||
'running': None,
|
|
||||||
'needs': {
|
|
||||||
'tag:left4dead2-packages',
|
|
||||||
'file:/opt/l4d2/setup',
|
|
||||||
'file:/usr/local/lib/systemd/system/left4dead2-initialize.service',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for server_name, config in node.metadata.get('left4dead2/servers').items():
|
|
||||||
files[f'/opt/l4d2/configs/{server_name}.cfg'] = {
|
|
||||||
'source': 'server.cfg',
|
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
|
'source': 'server.cfg',
|
||||||
'context': {
|
'context': {
|
||||||
'server_name': server_name,
|
'name': name,
|
||||||
'rcon_password': repo.vault.decrypt('encrypt$gAAAAABpAdZhxwJ47I1AXotuZmBvyZP1ecVTt9IXFkLI28JiVS74LKs9QdgIBz-FC-iXtIHHh_GVGxxKQZprn4UrXZcvZ57kCKxfHBs3cE2JiGnbWE8_mfs=').value,
|
'steamgroups': node.metadata.get('left4dead2/steamgroups'),
|
||||||
'config': config.get('config', []),
|
'rcon_password': config['rcon_password'],
|
||||||
},
|
},
|
||||||
'owner': 'steam',
|
'owner': 'steam',
|
||||||
'mode': '644',
|
'group': 'steam',
|
||||||
'triggers': {
|
'triggers': [
|
||||||
f'svc_systemd:left4dead2-{server_name}.service:restart',
|
f'svc_systemd:left4dead2-{name}.service:restart',
|
||||||
},
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_systemd[f'left4dead2-{server_name}.service'] = {
|
# service
|
||||||
'enabled': True,
|
svc_systemd[f'left4dead2-{name}.service'] = {
|
||||||
'running': True,
|
'needs': [
|
||||||
'tags': {
|
f'file:/opt/steam/left4dead2-servers/{name}/left4dead2/cfg/server.cfg',
|
||||||
'left4dead2-servers',
|
f'file:/usr/local/lib/systemd/system/left4dead2-{name}.service',
|
||||||
},
|
],
|
||||||
'needs': {
|
}
|
||||||
'svc_systemd:left4dead2-initialize.service',
|
|
||||||
f'file:/usr/local/lib/systemd/system/left4dead2-{server_name}.service',
|
#
|
||||||
},
|
# ADDONS
|
||||||
|
#
|
||||||
|
|
||||||
|
# base
|
||||||
|
files[f'/opt/steam/left4dead2-servers/{name}/left4dead2/addons/readme.txt'] = {
|
||||||
|
'content_type': 'any',
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
}
|
||||||
|
directories[f'/opt/steam/left4dead2-servers/{name}/left4dead2/addons'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'purge': True,
|
||||||
|
'triggers': [
|
||||||
|
f'svc_systemd:left4dead2-{name}.service:restart',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
for id in [
|
||||||
|
*config.get('workshop', []),
|
||||||
|
*node.metadata.get('left4dead2/workshop'),
|
||||||
|
]:
|
||||||
|
files[f'/opt/steam/left4dead2-servers/{name}/left4dead2/addons/{id}.vpk'] = {
|
||||||
|
'content_type': 'any',
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'triggers': [
|
||||||
|
f'svc_systemd:left4dead2-{name}.service:restart',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
# admin system
|
||||||
|
|
||||||
|
directories[f'/opt/steam/left4dead2-servers/{name}/left4dead2/ems/admin system'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'mode': '0755',
|
||||||
|
'triggers': [
|
||||||
|
f'svc_systemd:left4dead2-{name}.service:restart',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
files[f'/opt/steam/left4dead2-servers/{name}/left4dead2/ems/admin system/admins.txt'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'mode': '0755',
|
||||||
|
'content': '\n'.join(sorted(node.metadata.get('left4dead2/admins'))),
|
||||||
|
'triggers': [
|
||||||
|
f'svc_systemd:left4dead2-{name}.service:restart',
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,112 +1,110 @@
|
||||||
from re import match
|
assert node.has_bundle('steam')
|
||||||
from os import path, listdir
|
|
||||||
|
|
||||||
|
from shlex import quote
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
'apt': {
|
'steam': {
|
||||||
'packages': {
|
'games': {
|
||||||
'libc6_i386': { # installs libc6:i386
|
'left4dead2': 222860,
|
||||||
'tags': {'left4dead2-packages'},
|
|
||||||
},
|
|
||||||
'lib32z1': {
|
|
||||||
'tags': {'left4dead2-packages'},
|
|
||||||
},
|
|
||||||
'unzip': {
|
|
||||||
'tags': {'left4dead2-packages'},
|
|
||||||
},
|
|
||||||
'p7zip-full': { # l4d2center_maps_sync.sh
|
|
||||||
'tags': {'left4dead2-packages'},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'left4dead2': {
|
'left4dead2': {
|
||||||
'overlays': set(listdir(path.join(repo.path, 'bundles/left4dead2/files/scripts/overlays'))),
|
'servers': {},
|
||||||
'servers': {
|
'admins': set(),
|
||||||
# 'port': 27017,
|
'workshop': set(),
|
||||||
# 'overlays': ['competitive_rework'],
|
|
||||||
# 'arguments': ['-tickrate 60'],
|
|
||||||
# 'config': [
|
|
||||||
# 'exec server_original.cfg',
|
|
||||||
# 'sm_forcematch zonemod',
|
|
||||||
# ],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'nftables': {
|
|
||||||
'input': {
|
|
||||||
'udp dport { 27005, 27020 } accept',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'systemd': {
|
|
||||||
'units': {
|
|
||||||
'left4dead2-initialize.service': {
|
|
||||||
'Unit': {
|
|
||||||
'Description': 'initialize left4dead2',
|
|
||||||
'After': 'network-online.target',
|
|
||||||
},
|
|
||||||
'Service': {
|
|
||||||
'Type': 'oneshot',
|
|
||||||
'RemainAfterExit': 'yes',
|
|
||||||
'ExecStart': '/opt/l4d2/setup',
|
|
||||||
'StandardOutput': 'journal',
|
|
||||||
'StandardError': 'journal',
|
|
||||||
},
|
|
||||||
'Install': {
|
|
||||||
'WantedBy': {'multi-user.target'},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
|
'left4dead2/servers',
|
||||||
|
)
|
||||||
|
def rconn_password(metadata):
|
||||||
|
# only works from localhost!
|
||||||
|
return {
|
||||||
|
'left4dead2': {
|
||||||
|
'servers': {
|
||||||
|
server: {
|
||||||
|
'rcon_password': repo.vault.password_for(f'{node.name} left4dead2 {server} rcon', length=24),
|
||||||
|
}
|
||||||
|
for server in metadata.get('left4dead2/servers')
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'steam-workshop-download',
|
||||||
'systemd/units',
|
'systemd/units',
|
||||||
)
|
)
|
||||||
def server_units(metadata):
|
def server_units(metadata):
|
||||||
units = {}
|
units = {}
|
||||||
|
workshop = {}
|
||||||
|
|
||||||
for name, config in metadata.get('left4dead2/servers').items():
|
for name, config in metadata.get('left4dead2/servers').items():
|
||||||
assert match(r'^[A-z0-9-_-]+$', name)
|
# mount overlay
|
||||||
assert 27000 <= config["port"] <= 27100
|
mountpoint = f'/opt/steam/left4dead2-servers/{name}'
|
||||||
for overlay in config.get('overlays', []):
|
mount_unit_name = mountpoint[1:].replace('-', '\\x2d').replace('/', '-') + '.mount'
|
||||||
assert overlay in metadata.get('left4dead2/overlays'), f"unknown overlay {overlay}, known: {metadata.get('left4dead2/overlays')}"
|
units[mount_unit_name] = {
|
||||||
|
'Unit': {
|
||||||
|
'Description': f"Mount left4dead2 server {name} overlay",
|
||||||
|
'Conflicts': {'umount.target'},
|
||||||
|
'Before': {'umount.target'},
|
||||||
|
},
|
||||||
|
'Mount': {
|
||||||
|
'What': 'overlay',
|
||||||
|
'Where': mountpoint,
|
||||||
|
'Type': 'overlay',
|
||||||
|
'Options': ','.join([
|
||||||
|
'auto',
|
||||||
|
'lowerdir=/opt/steam/left4dead2',
|
||||||
|
f'upperdir=/opt/steam-zfs-overlay-workarounds/{name}/upper',
|
||||||
|
f'workdir=/opt/steam-zfs-overlay-workarounds/{name}/workdir',
|
||||||
|
]),
|
||||||
|
},
|
||||||
|
'Install': {
|
||||||
|
'RequiredBy': {
|
||||||
|
f'left4dead2-{name}.service',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
cmd = f'/opt/l4d2/start -n {name} -p {config["port"]}'
|
# individual workshop
|
||||||
|
workshop_ids = config.get('workshop', set()) | metadata.get('left4dead2/workshop', set())
|
||||||
if 'config' in config:
|
if workshop_ids:
|
||||||
cmd += f' -c /opt/l4d2/configs/{name}.cfg'
|
workshop[f'left4dead2-{name}'] = {
|
||||||
|
'ids': workshop_ids,
|
||||||
for overlay in config.get('overlays', []):
|
'path': f'/opt/steam/left4dead2-servers/{name}/left4dead2/addons',
|
||||||
cmd += f' -o {overlay}'
|
'user': 'steam',
|
||||||
|
'requires': {
|
||||||
if 'arguments' in config:
|
mount_unit_name,
|
||||||
cmd += ' -- ' + ' '.join(config['arguments'])
|
},
|
||||||
|
'required_by': {
|
||||||
|
f'left4dead2-{name}.service',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
# left4dead2 server unit
|
||||||
units[f'left4dead2-{name}.service'] = {
|
units[f'left4dead2-{name}.service'] = {
|
||||||
'Unit': {
|
'Unit': {
|
||||||
'Description': f'left4dead2 server {name}',
|
'Description': f'left4dead2 server {name}',
|
||||||
'After': {'left4dead2-initialize.service'},
|
'After': {'steam-update.service'},
|
||||||
'Requires': {'left4dead2-initialize.service'},
|
'Requires': {'steam-update.service'},
|
||||||
},
|
},
|
||||||
'Service': {
|
'Service': {
|
||||||
'Type': 'simple',
|
'User': 'steam',
|
||||||
'ExecStart': cmd,
|
'Group': 'steam',
|
||||||
'ExecStopPost': f'/opt/l4d2/stop -n {name}',
|
'WorkingDirectory': f'/opt/steam/left4dead2-servers/{name}',
|
||||||
|
'ExecStart': f'/opt/steam/left4dead2-servers/{name}/srcds_run -port {config["port"]} +exec server.cfg',
|
||||||
'Restart': 'on-failure',
|
'Restart': 'on-failure',
|
||||||
'Nice': -10,
|
|
||||||
'CPUWeight': 200,
|
|
||||||
'IOSchedulingClass': 'best-effort',
|
|
||||||
'IOSchedulingPriority': 0,
|
|
||||||
},
|
},
|
||||||
'Install': {
|
'Install': {
|
||||||
'WantedBy': {'multi-user.target'},
|
'WantedBy': {'multi-user.target'},
|
||||||
},
|
},
|
||||||
'triggers': {
|
|
||||||
f'svc_systemd:left4dead2-{name}.service:restart',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
'steam-workshop-download': workshop,
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': units,
|
'units': units,
|
||||||
},
|
},
|
||||||
|
|
@ -116,13 +114,14 @@ def server_units(metadata):
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'nftables/input',
|
'nftables/input',
|
||||||
)
|
)
|
||||||
def nftables(metadata):
|
def firewall(metadata):
|
||||||
ports = sorted(str(config["port"]) for config in metadata.get('left4dead2/servers').values())
|
ports = set(str(server['port']) for server in metadata.get('left4dead2/servers').values())
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'nftables': {
|
'nftables': {
|
||||||
'input': {
|
'input': {
|
||||||
f'ip protocol {{ tcp, udp }} th dport {{ {", ".join(ports)} }} accept'
|
f"tcp dport {{ {', '.join(sorted(ports))} }} accept",
|
||||||
|
f"udp dport {{ {', '.join(sorted(ports))} }} accept",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,9 @@ def generate_sysctl_key_value_pairs_from_json(json_data, parents=[]):
|
||||||
|
|
||||||
key_value_pairs = generate_sysctl_key_value_pairs_from_json(node.metadata.get('sysctl'))
|
key_value_pairs = generate_sysctl_key_value_pairs_from_json(node.metadata.get('sysctl'))
|
||||||
|
|
||||||
|
|
||||||
files= {
|
files= {
|
||||||
'/etc/sysctl.d/managed.conf': {
|
'/etc/sysctl.conf': {
|
||||||
'content': '\n'.join(
|
'content': '\n'.join(
|
||||||
sorted(
|
sorted(
|
||||||
f"{'.'.join(path)}={value}"
|
f"{'.'.join(path)}={value}"
|
||||||
|
|
@ -24,9 +25,6 @@ files= {
|
||||||
'svc_systemd:systemd-sysctl.service:restart',
|
'svc_systemd:systemd-sysctl.service:restart',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'/etc/modules-load.d/managed.conf': {
|
|
||||||
'content': '\n'.join(sorted(node.metadata.get('modules-load'))),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_systemd = {
|
svc_systemd = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
'sysctl': {
|
'sysctl': {},
|
||||||
'net.ipv4.icmp_ratelimit': '100',
|
|
||||||
},
|
|
||||||
'modules-load': set(),
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,12 @@ defaults = {
|
||||||
'locale': {
|
'locale': {
|
||||||
'default': ('en_US.UTF-8', 'UTF-8'),
|
'default': ('en_US.UTF-8', 'UTF-8'),
|
||||||
'installed': {
|
'installed': {
|
||||||
|
('de_AT.UTF-8', 'UTF-8'),
|
||||||
|
('de_CH.UTF-8', 'UTF-8'),
|
||||||
('de_DE.UTF-8', 'UTF-8'),
|
('de_DE.UTF-8', 'UTF-8'),
|
||||||
|
('de_LU.UTF-8', 'UTF-8'),
|
||||||
|
('en_CA.UTF-8', 'UTF-8'),
|
||||||
|
('en_GB.UTF-8', 'UTF-8'),
|
||||||
('en_US.UTF-8', 'UTF-8'),
|
('en_US.UTF-8', 'UTF-8'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -32,14 +32,10 @@ defaults = {
|
||||||
'tank/vmail': {
|
'tank/vmail': {
|
||||||
'mountpoint': '/var/vmail',
|
'mountpoint': '/var/vmail',
|
||||||
'compression': 'on',
|
'compression': 'on',
|
||||||
'atime': 'off',
|
|
||||||
'recordsize': '16384',
|
|
||||||
},
|
},
|
||||||
'tank/vmail/index': {
|
'tank/vmail/index': {
|
||||||
'mountpoint': '/var/vmail/index',
|
'mountpoint': '/var/vmail/index',
|
||||||
'compression': 'on',
|
'compression': 'on',
|
||||||
'atime': 'off',
|
|
||||||
'recordsize': '4096',
|
|
||||||
'com.sun:auto-snapshot': 'false',
|
'com.sun:auto-snapshot': 'false',
|
||||||
'backup': False,
|
'backup': False,
|
||||||
},
|
},
|
||||||
|
|
@ -82,7 +78,6 @@ def dns(metadata):
|
||||||
'dns': dns,
|
'dns': dns,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'letsencrypt/domains',
|
'letsencrypt/domains',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ def user(metadata):
|
||||||
'users': {
|
'users': {
|
||||||
'sshmon': {
|
'sshmon': {
|
||||||
'authorized_users': {
|
'authorized_users': {
|
||||||
'nagios@' + metadata.get('monitoring/icinga2_node'): {},
|
'nagios@' + metadata.get('monitoring/icinga2_node'),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,10 @@ def dhcp(metadata):
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'systemd/units',
|
'systemd/units',
|
||||||
'modules-load',
|
|
||||||
)
|
)
|
||||||
def units(metadata):
|
def units(metadata):
|
||||||
if node.has_bundle('systemd-networkd'):
|
if node.has_bundle('systemd-networkd'):
|
||||||
units = {}
|
units = {}
|
||||||
modules_load = set()
|
|
||||||
|
|
||||||
for network_name, network_conf in metadata.get('network').items():
|
for network_name, network_conf in metadata.get('network').items():
|
||||||
interface_type = network_conf.get('type', None)
|
interface_type = network_conf.get('type', None)
|
||||||
|
|
@ -98,15 +96,13 @@ def units(metadata):
|
||||||
|
|
||||||
# cake WIP
|
# cake WIP
|
||||||
|
|
||||||
if 'cake' in network_conf:
|
# if 'cake' in network_conf:
|
||||||
units[f'{network_name}.network']['CAKE'] = network_conf['cake']
|
# units[f'{network_name}.network']['CAKE'] = network_conf['cake']
|
||||||
modules_load.add('sch_cake')
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': units,
|
'units': units,
|
||||||
},
|
}
|
||||||
'modules-load': modules_load,
|
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'postfix': {
|
'postfix': [{}],
|
||||||
'default': {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -98,17 +98,17 @@ def zfs(metadata):
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'telegraf/inputs/postgresql/default',
|
'telegraf/config/inputs/postgresql',
|
||||||
)
|
)
|
||||||
def telegraf(metadata):
|
def telegraf(metadata):
|
||||||
return {
|
return {
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'postgresql': {
|
'postgresql': [{
|
||||||
'default': {
|
|
||||||
'address': f'postgres://root:{root_password}@localhost:5432/postgres',
|
'address': f'postgres://root:{root_password}@localhost:5432/postgres',
|
||||||
'databases': sorted(list(node.metadata.get('postgresql/databases').keys())),
|
'databases': sorted(list(node.metadata.get('postgresql/databases').keys())),
|
||||||
},
|
}],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
files = {
|
files = {
|
||||||
|
'/etc/modules-load.d/pppoe.conf': {
|
||||||
|
'content': 'pppoe\npppox\nppp_generic',
|
||||||
|
'mode': '0644',
|
||||||
|
},
|
||||||
'/etc/ppp/peers/isp': {
|
'/etc/ppp/peers/isp': {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'mode': '0644',
|
'mode': '0644',
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ defaults = {
|
||||||
'pppoe': {},
|
'pppoe': {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'modules-load': {
|
|
||||||
'pppoe',
|
|
||||||
'pppox',
|
|
||||||
'ppp_generic',
|
|
||||||
},
|
|
||||||
'nftables': {
|
'nftables': {
|
||||||
'nat': {
|
'nat': {
|
||||||
'oifname ppp0 masquerade',
|
'oifname ppp0 masquerade',
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,16 @@ defaults = {
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'telegraf/agent',
|
'telegraf/config/agent',
|
||||||
)
|
)
|
||||||
def telegraf(metadata):
|
def telegraf(metadata):
|
||||||
return {
|
return {
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'agent': {
|
'agent': {
|
||||||
'flush_interval': '30s',
|
'flush_interval': '30s',
|
||||||
'interval': '1m',
|
'interval': '30s',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ directories = {
|
||||||
},
|
},
|
||||||
'/var/lib/redis': {
|
'/var/lib/redis': {
|
||||||
'owner': 'redis',
|
'owner': 'redis',
|
||||||
'group': 'redis',
|
|
||||||
'mode': '0750',
|
'mode': '0750',
|
||||||
'needs': [
|
'needs': [
|
||||||
'pkg_apt:redis-server',
|
'pkg_apt:redis-server',
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,18 @@ $config['enable_installer'] = true;
|
||||||
/* Local configuration for Roundcube Webmail */
|
/* Local configuration for Roundcube Webmail */
|
||||||
|
|
||||||
$config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['password']}@${database['host']}/${database['name']}';
|
$config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['password']}@${database['host']}/${database['name']}';
|
||||||
$config['imap_host'] = 'ssl://${imap_host}';
|
$config['imap_host'] = 'localhost';
|
||||||
$config['imap_port'] = 993;
|
$config['smtp_host'] = 'tls://localhost';
|
||||||
#$config['imap_debug'] = true;
|
|
||||||
$config['smtp_host'] = 'tls://${imap_host}';
|
|
||||||
$config['smtp_port'] = 587;
|
|
||||||
$config['smtp_user'] = '%u';
|
$config['smtp_user'] = '%u';
|
||||||
$config['smtp_pass'] = '%p';
|
$config['smtp_pass'] = '%p';
|
||||||
#$config['smtp_debug'] = true;
|
|
||||||
$config['support_url'] = '';
|
$config['support_url'] = '';
|
||||||
$config['des_key'] = '${des_key}';
|
$config['des_key'] = '${des_key}';
|
||||||
$config['product_name'] = '${product_name}';
|
$config['product_name'] = '${product_name}';
|
||||||
$config['plugins'] = array(${', '.join(f'"{plugin}"' for plugin in plugins)});
|
$config['plugins'] = array(${', '.join(f'"{plugin}"' for plugin in plugins)});
|
||||||
$config['language'] = 'de_DE';
|
$config['language'] = 'de_DE';
|
||||||
|
$config['smtp_conn_options'] = array(
|
||||||
|
'ssl' => array(
|
||||||
|
'verify_peer' => false,
|
||||||
|
'verify_peer_name' => false,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ files['/opt/roundcube/config/config.inc.php'] = {
|
||||||
'des_key': node.metadata.get('roundcube/des_key'),
|
'des_key': node.metadata.get('roundcube/des_key'),
|
||||||
'database': node.metadata.get('roundcube/database'),
|
'database': node.metadata.get('roundcube/database'),
|
||||||
'plugins': node.metadata.get('roundcube/plugins'),
|
'plugins': node.metadata.get('roundcube/plugins'),
|
||||||
'imap_host': node.metadata.get('mailserver/hostname'),
|
|
||||||
},
|
},
|
||||||
'needs': [
|
'needs': [
|
||||||
'action:chown_roundcube',
|
'action:chown_roundcube',
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,11 +0,0 @@
|
||||||
files = {
|
|
||||||
# https://mikrotik.com/download/tools
|
|
||||||
'/usr/share/snmp/mibs/MIKROTIK-MIB.txt': {
|
|
||||||
'source': 'mikrotik.mib',
|
|
||||||
'content_type': 'binary',
|
|
||||||
'mode': '0644',
|
|
||||||
'needed_by': {
|
|
||||||
'svc_systemd:telegraf.service',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,444 +0,0 @@
|
||||||
input_defaults = {
|
|
||||||
"agents": [
|
|
||||||
f"udp://{routeros_node.hostname}:161"
|
|
||||||
for routeros_node in repo.nodes_in_group("routeros")
|
|
||||||
],
|
|
||||||
"agent_host_tag": "agent_host",
|
|
||||||
"version": 2,
|
|
||||||
"community": "public",
|
|
||||||
"max_repetitions": 5, # supposedly less spiky loads
|
|
||||||
"tags": {
|
|
||||||
"operating_system": "routeros",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
defaults = {
|
|
||||||
'apt': {
|
|
||||||
'packages': {
|
|
||||||
'snmp': {},
|
|
||||||
'snmp-mibs-downloader': {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"telegraf": {
|
|
||||||
"processors": {
|
|
||||||
"enum": {
|
|
||||||
"mikrotik_host_mapping":{
|
|
||||||
# - measurements get switch ip as agent_host tag
|
|
||||||
# - wie define a value mapping ip -> node name
|
|
||||||
# - agent_host gets translated and written into host tag
|
|
||||||
"tagpass": {
|
|
||||||
"operating_system": ["routeros"],
|
|
||||||
},
|
|
||||||
"mapping": [
|
|
||||||
{
|
|
||||||
"tag": "agent_host",
|
|
||||||
"dest": "host",
|
|
||||||
"default": "unknown",
|
|
||||||
"value_mappings": {
|
|
||||||
routeros_node.hostname: routeros_node.name
|
|
||||||
for routeros_node in repo.nodes_in_group("routeros")
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"inputs": {
|
|
||||||
"snmp": {
|
|
||||||
"mikrotik_switches_fast": {
|
|
||||||
"interval": "2m",
|
|
||||||
"collection_jitter": "20s",
|
|
||||||
**input_defaults,
|
|
||||||
"table": [
|
|
||||||
# CPU load (HR-MIB)
|
|
||||||
{
|
|
||||||
"name": "mikrotik_cpu",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrProcessorTable",
|
|
||||||
"field": [
|
|
||||||
{
|
|
||||||
"name": "frw_id",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrProcessorFrwID",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "load",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrProcessorLoad",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
# Storage (HR-MIB)
|
|
||||||
{
|
|
||||||
"name": "mikrotik_storage",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageTable",
|
|
||||||
"field": [
|
|
||||||
{
|
|
||||||
"name": "index",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageIndex",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "type",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageType",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "descr",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageDescr",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "alloc_unit",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageAllocationUnits",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "size",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageSize",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "used",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageUsed",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "alloc_failures",
|
|
||||||
"oid": "HOST-RESOURCES-MIB::hrStorageAllocationFailures",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
# MikroTik Health (table)
|
|
||||||
{
|
|
||||||
"name": "mikrotik_health",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrGaugeTable",
|
|
||||||
"field": [
|
|
||||||
{
|
|
||||||
"name": "sensor",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrGaugeName",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "value",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrGaugeValue",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "unit",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrGaugeUnit",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"mikrotik_switches_slow": {
|
|
||||||
"interval": "7m",
|
|
||||||
"collection_jitter": "2m",
|
|
||||||
**input_defaults,
|
|
||||||
"table": [
|
|
||||||
# Interface statistics (standard IF-MIB)
|
|
||||||
{
|
|
||||||
"name": "mikrotik_interface_generic",
|
|
||||||
"oid": "IF-MIB::ifTable",
|
|
||||||
"field": [
|
|
||||||
# 6: ethernetCsmacd (physischer Ethernet-Port)
|
|
||||||
# 24: softwareLoopback
|
|
||||||
# 53: propVirtual (oft VLANs bei MikroTik)
|
|
||||||
# 131: tunnel
|
|
||||||
# 135: l2vlan
|
|
||||||
# 161: ieee8023adLag (Bonding/LACP)
|
|
||||||
# 209: bridge
|
|
||||||
{
|
|
||||||
"name": "ifType",
|
|
||||||
"oid": "IF-MIB::ifType",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
|
|
||||||
# Labels (optional but recommended)
|
|
||||||
{
|
|
||||||
"name": "ifName",
|
|
||||||
"oid": "IF-MIB::ifName",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ifAlias",
|
|
||||||
"oid": "IF-MIB::ifAlias",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
|
|
||||||
# Bytes (64-bit)
|
|
||||||
{
|
|
||||||
"name": "in_octets",
|
|
||||||
"oid": "IF-MIB::ifHCInOctets",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_octets",
|
|
||||||
"oid": "IF-MIB::ifHCOutOctets",
|
|
||||||
},
|
|
||||||
|
|
||||||
# Packets (64-bit unicast)
|
|
||||||
{
|
|
||||||
"name": "in_ucast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCInUcastPkts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_ucast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCOutUcastPkts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "in_mcast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCInMulticastPkts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "in_bcast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCInBroadcastPkts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_mcast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCOutMulticastPkts",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_bcast_pkts",
|
|
||||||
"oid": "IF-MIB::ifHCOutBroadcastPkts",
|
|
||||||
},
|
|
||||||
|
|
||||||
# Drops / Errors
|
|
||||||
{
|
|
||||||
"name": "in_discards",
|
|
||||||
"oid": "IF-MIB::ifInDiscards",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_discards",
|
|
||||||
"oid": "IF-MIB::ifOutDiscards",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "in_errors",
|
|
||||||
"oid": "IF-MIB::ifInErrors",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "out_errors",
|
|
||||||
"oid": "IF-MIB::ifOutErrors",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
# Interface PoE
|
|
||||||
{
|
|
||||||
"name": "mikrotik_poe",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOETable",
|
|
||||||
"field": [
|
|
||||||
{
|
|
||||||
"name": "ifName",
|
|
||||||
"oid": "IF-MIB::ifName",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ifAlias",
|
|
||||||
"oid": "IF-MIB::ifAlias",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ifindex",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOEInterfaceIndex",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "status",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOEStatus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "voltage",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOEVoltage",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "current",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOECurrent",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "power",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrPOEPower",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"mikrotik_switches_very_slow": {
|
|
||||||
"interval": "20m",
|
|
||||||
"collection_jitter": "5m",
|
|
||||||
**input_defaults,
|
|
||||||
"table": [
|
|
||||||
# Interface statistics (MikroTik-specific mib)
|
|
||||||
{
|
|
||||||
"name": "mikrotik_interface_detailed",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTable",
|
|
||||||
"field": [
|
|
||||||
# Join key / label (usually identical to IF-MIB ifName)
|
|
||||||
{
|
|
||||||
"name": "ifName",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsName",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
|
|
||||||
# join IF-MIB for better labels
|
|
||||||
{
|
|
||||||
"name": "ifAlias",
|
|
||||||
"oid": "IF-MIB::ifAlias",
|
|
||||||
"is_tag": True,
|
|
||||||
},
|
|
||||||
|
|
||||||
# =========================
|
|
||||||
# Physical layer (L1/L2)
|
|
||||||
# =========================
|
|
||||||
# CRC/FCS errors → very often cabling, connectors, SFPs, signal quality (EMI)
|
|
||||||
{
|
|
||||||
"name": "rx_fcs_errors",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxFCSError",
|
|
||||||
},
|
|
||||||
# Alignment errors → typically duplex mismatch or PHY problems
|
|
||||||
{
|
|
||||||
"name": "rx_align_errors",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxAlignError",
|
|
||||||
},
|
|
||||||
# Code errors → PHY encoding errors (signal/SFP/PHY)
|
|
||||||
{
|
|
||||||
"name": "rx_code_errors",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxCodeError",
|
|
||||||
},
|
|
||||||
# Carrier errors → carrier lost (copper issues, autoneg, PHY instability)
|
|
||||||
{
|
|
||||||
"name": "rx_carrier_errors",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxCarrierError",
|
|
||||||
},
|
|
||||||
# Jabber → extremely long invalid frames (faulty NIC/PHY, very severe)
|
|
||||||
{
|
|
||||||
"name": "rx_jabber",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxJabber",
|
|
||||||
},
|
|
||||||
|
|
||||||
# ==================================
|
|
||||||
# Length / framing anomalies (diagnostic)
|
|
||||||
# ==================================
|
|
||||||
# Frames shorter than minimum (noise, collisions, broken sender)
|
|
||||||
{
|
|
||||||
"name": "rx_too_short",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxTooShort",
|
|
||||||
},
|
|
||||||
# Frames longer than allowed (MTU mismatch, framing errors)
|
|
||||||
{
|
|
||||||
"name": "rx_too_long",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxTooLong",
|
|
||||||
},
|
|
||||||
# Fragments (often collision-related or duplex mismatch)
|
|
||||||
{
|
|
||||||
"name": "rx_fragment",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxFragment",
|
|
||||||
},
|
|
||||||
# Generic length errors
|
|
||||||
{
|
|
||||||
"name": "rx_length_errors",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxLengthError",
|
|
||||||
},
|
|
||||||
|
|
||||||
# ==================
|
|
||||||
# Drops (real packet loss)
|
|
||||||
# ==================
|
|
||||||
# RX drops (queue/ASIC/policy/overload) → highly alert-worthy
|
|
||||||
{
|
|
||||||
"name": "rx_drop",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxDrop",
|
|
||||||
},
|
|
||||||
# TX drops (buffer/queue exhaustion, scheduling, ASIC limits)
|
|
||||||
{
|
|
||||||
"name": "tx_drop",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxDrop",
|
|
||||||
},
|
|
||||||
|
|
||||||
# =========================================
|
|
||||||
# Duplex / collision indicators
|
|
||||||
# (should be zero on full-duplex links)
|
|
||||||
# =========================================
|
|
||||||
# Total collisions (relevant only for half-duplex or misconfigurations)
|
|
||||||
{
|
|
||||||
"name": "tx_collisions",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxCollision",
|
|
||||||
},
|
|
||||||
# Late collisions → almost always duplex mismatch / bad autoneg
|
|
||||||
{
|
|
||||||
"name": "tx_late_collisions",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxLateCollision",
|
|
||||||
},
|
|
||||||
# Aggregate collision counter (context)
|
|
||||||
{
|
|
||||||
"name": "tx_total_collisions",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxTotalCollision",
|
|
||||||
},
|
|
||||||
# Excessive collisions → persistent duplex problems
|
|
||||||
{
|
|
||||||
"name": "tx_excessive_collisions",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxExcessiveCollision",
|
|
||||||
},
|
|
||||||
|
|
||||||
# ==================
|
|
||||||
# Flow control (diagnostic)
|
|
||||||
# ==================
|
|
||||||
# Pause frames received (peer throttling you)
|
|
||||||
{
|
|
||||||
"name": "rx_pause",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsRxPause",
|
|
||||||
},
|
|
||||||
# Pause frames sent (you throttling the peer)
|
|
||||||
{
|
|
||||||
"name": "tx_pause",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxPause",
|
|
||||||
},
|
|
||||||
# Pause frames actually honored
|
|
||||||
{
|
|
||||||
"name": "tx_pause_honored",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsTxPauseHonored",
|
|
||||||
},
|
|
||||||
|
|
||||||
# ==========
|
|
||||||
# Stability
|
|
||||||
# ==========
|
|
||||||
# Link-down events (loose cables, bad SFPs, PoE power drops, reboots)
|
|
||||||
{
|
|
||||||
"name": "link_downs",
|
|
||||||
"oid": "MIKROTIK-MIB::mtxrInterfaceStatsLinkDowns",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# @metadata_reactor.provides(
|
|
||||||
# 'telegraf/processors/enum',
|
|
||||||
# )
|
|
||||||
# def tag_important_ports(metadata):
|
|
||||||
# # We want a graph, only for important ports. We deem ports important, if they have untagged vlans configured.
|
|
||||||
# return {
|
|
||||||
# "telegraf": {
|
|
||||||
# "processors": {
|
|
||||||
# "enum": {
|
|
||||||
# f"mikrotik_port_mapping_{routeros_node.name}":{
|
|
||||||
# "tagpass": {
|
|
||||||
# "agent_host": [routeros_node.hostname],
|
|
||||||
# },
|
|
||||||
# "mapping": [
|
|
||||||
# {
|
|
||||||
# "tag": "ifName",
|
|
||||||
# "dest": "is_infra",
|
|
||||||
# "default": "false",
|
|
||||||
# "value_mappings": {
|
|
||||||
# port_name: "true"
|
|
||||||
# for port_name, port_conf in repo.libs.mikrotik.get_netbox_config_for(routeros_node)['interfaces'].items()
|
|
||||||
# if port_conf['mode'] == "tagged-all" or port_conf['tagged_vlans']
|
|
||||||
# if port_conf['type'] != "lag"
|
|
||||||
# },
|
|
||||||
# },
|
|
||||||
# ],
|
|
||||||
# }
|
|
||||||
# for routeros_node in repo.nodes_in_group("switches-mikrotik")
|
|
||||||
# },
|
|
||||||
# },
|
|
||||||
# },
|
|
||||||
# }
|
|
||||||
|
|
@ -27,15 +27,15 @@ routeros['/system/identity'] = {
|
||||||
# for topic in LOGGING_TOPICS:
|
# for topic in LOGGING_TOPICS:
|
||||||
# routeros[f'/system/logging?action=memory&topics={topic}'] = {}
|
# routeros[f'/system/logging?action=memory&topics={topic}'] = {}
|
||||||
|
|
||||||
routeros['/snmp'] = {
|
# routeros['/snmp'] = {
|
||||||
'enabled': True,
|
# 'enabled': True,
|
||||||
}
|
# }
|
||||||
routeros['/snmp/community?name=public'] = {
|
# routeros['/snmp/community?name=public'] = {
|
||||||
'addresses': '0.0.0.0/0',
|
# 'addresses': '0.0.0.0/0',
|
||||||
'disabled': False,
|
# 'disabled': False,
|
||||||
'read-access': True,
|
# 'read-access': True,
|
||||||
'write-access': False,
|
# 'write-access': False,
|
||||||
}
|
# }
|
||||||
|
|
||||||
routeros['/system/clock'] = {
|
routeros['/system/clock'] = {
|
||||||
'time-zone-autodetect': False,
|
'time-zone-autodetect': False,
|
||||||
|
|
@ -55,7 +55,7 @@ for vlan_name, vlan_id in node.metadata.get('routeros/vlans').items():
|
||||||
'vlan-id': vlan_id,
|
'vlan-id': vlan_id,
|
||||||
'interface': 'bridge',
|
'interface': 'bridge',
|
||||||
'tags': {
|
'tags': {
|
||||||
'routeros-vlans',
|
'routeros-vlan',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -68,33 +68,10 @@ for vlan_name, vlan_id in node.metadata.get('routeros/vlans').items():
|
||||||
'routeros-vlan-ports',
|
'routeros-vlan-ports',
|
||||||
},
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
'tag:routeros-vlans',
|
'tag:routeros-vlan',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for port_name, port_conf in node.metadata.get('routeros/ports').items():
|
|
||||||
untagged_vlan = node.metadata.get('routeros/vlan_groups')[port_conf.get('vlan_group')]['untagged']
|
|
||||||
|
|
||||||
routeros[f'/interface/bridge/port?interface={port_name}'] = {
|
|
||||||
'disabled': False,
|
|
||||||
'bridge': 'bridge',
|
|
||||||
'pvid': node.metadata.get('routeros/vlans')[untagged_vlan],
|
|
||||||
'tags': {
|
|
||||||
'routeros-ports'
|
|
||||||
},
|
|
||||||
'needs': {
|
|
||||||
'tag:routeros-vlan-ports',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
routeros[f'/interface?name={port_name}'] = {
|
|
||||||
'_comment': port_conf.get('description', ''),
|
|
||||||
}
|
|
||||||
|
|
||||||
if comment := port_conf.get('comment', None):
|
|
||||||
routeros[f'/interface/bridge/port?interface={port_name}']['_comment'] = comment
|
|
||||||
routeros[f'/interface?name={port_name}']['_comment'] = comment
|
|
||||||
|
|
||||||
# create IPs
|
# create IPs
|
||||||
for ip, ip_conf in node.metadata.get('routeros/ips').items():
|
for ip, ip_conf in node.metadata.get('routeros/ips').items():
|
||||||
routeros[f'/ip/address?address={ip}'] = {
|
routeros[f'/ip/address?address={ip}'] = {
|
||||||
|
|
@ -103,8 +80,7 @@ for ip, ip_conf in node.metadata.get('routeros/ips').items():
|
||||||
'routeros-ip',
|
'routeros-ip',
|
||||||
},
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
'tag:routeros-vlans',
|
'tag:routeros-vlan',
|
||||||
'tag:routeros-ports'
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,8 +90,7 @@ routeros['/interface/bridge?name=bridge'] = {
|
||||||
'priority': node.metadata.get('routeros/bridge_priority'),
|
'priority': node.metadata.get('routeros/bridge_priority'),
|
||||||
'protocol-mode': 'rstp',
|
'protocol-mode': 'rstp',
|
||||||
'needs': {
|
'needs': {
|
||||||
'tag:routeros-vlans',
|
'tag:routeros-vlan',
|
||||||
'tag:routeros-ports',
|
|
||||||
'tag:routeros-vlan-ports',
|
'tag:routeros-vlan-ports',
|
||||||
'tag:routeros-ip',
|
'tag:routeros-ip',
|
||||||
},
|
},
|
||||||
|
|
@ -127,7 +102,7 @@ routeros['/interface/vlan'] = {
|
||||||
'id-by': 'name',
|
'id-by': 'name',
|
||||||
},
|
},
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'tag:routeros-vlans',
|
'tag:routeros-vlan',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -139,6 +114,6 @@ routeros['/interface/bridge/vlan'] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'tag:routeros-vlans',
|
'tag:routeros-vlan',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,22 +11,24 @@ defaults = {
|
||||||
},
|
},
|
||||||
'smartctl': {},
|
'smartctl': {},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'exec': {
|
'exec': {
|
||||||
'smartctl_power_mode': {
|
h({
|
||||||
'commands': [
|
'commands': [
|
||||||
f'sudo /usr/local/share/telegraf/smartctl_power_mode',
|
f'sudo /usr/local/share/telegraf/smartctl_power_mode',
|
||||||
],
|
],
|
||||||
'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
'interval': '20s',
|
'interval': '20s',
|
||||||
},
|
}),
|
||||||
'smartctl_errors': {
|
h({
|
||||||
'commands': [
|
'commands': [
|
||||||
f'sudo /usr/local/share/telegraf/smartctl_errors',
|
f'sudo /usr/local/share/telegraf/smartctl_errors',
|
||||||
],
|
],
|
||||||
'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
'interval': '6h',
|
'interval': '6h',
|
||||||
}
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ def users(metadata):
|
||||||
'allow_users': set(
|
'allow_users': set(
|
||||||
name
|
name
|
||||||
for name, conf in metadata.get('users').items()
|
for name, conf in metadata.get('users').items()
|
||||||
if conf.get('authorized_keys', []) or conf.get('authorized_users', {})
|
if conf.get('authorized_keys', []) or conf.get('authorized_users', [])
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
54
bundles/steam/items.py
Normal file
54
bundles/steam/items.py
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
users = {
|
||||||
|
'steam': {
|
||||||
|
'home': '/opt/steam/steam',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
directories = {
|
||||||
|
'/opt/steam': {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'needs': [
|
||||||
|
'zfs_dataset:tank/steam',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
'/opt/steam/steam': {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
for game in node.metadata.get('steam/games'):
|
||||||
|
directories[f'/opt/steam/{game}'] = {
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
'needed_by': [
|
||||||
|
'svc_systemd:steam-update.service',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
files = {
|
||||||
|
'/opt/steam/steam/steamcmd_linux.tar.gz': {
|
||||||
|
'content_type': 'download',
|
||||||
|
'source': 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz',
|
||||||
|
'owner': 'steam',
|
||||||
|
'group': 'steam',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
actions = {
|
||||||
|
'extract_steamcmd': {
|
||||||
|
'command': """su - steam -c 'tar xfvz /opt/steam/steam/steamcmd_linux.tar.gz --directory /opt/steam/steam'""",
|
||||||
|
'unless': 'test -f /opt/steam/steam/steamcmd.sh',
|
||||||
|
'needs': [
|
||||||
|
'file:/opt/steam/steam/steamcmd_linux.tar.gz',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
svc_systemd['steam-update.service'] = {
|
||||||
|
'running': None,
|
||||||
|
'enabled': True,
|
||||||
|
'needs': {
|
||||||
|
'file:/usr/local/lib/systemd/system/steam-update.service',
|
||||||
|
}
|
||||||
|
}
|
||||||
52
bundles/steam/metadata.py
Normal file
52
bundles/steam/metadata.py
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'lib32gcc-s1': {},
|
||||||
|
'unzip': {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'steam': {
|
||||||
|
'games': {
|
||||||
|
'left4dead2': 222860,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'zfs': {
|
||||||
|
'datasets': {
|
||||||
|
'tank/steam': {
|
||||||
|
'mountpoint': '/opt/steam',
|
||||||
|
'backup': False,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'systemd/units',
|
||||||
|
)
|
||||||
|
def initial_unit(metadata):
|
||||||
|
return {
|
||||||
|
'systemd': {
|
||||||
|
'units': {
|
||||||
|
'steam-update.service': {
|
||||||
|
'Unit': {
|
||||||
|
'Description': 'steam: install and update games',
|
||||||
|
'After': 'network-online.target',
|
||||||
|
},
|
||||||
|
'Service': {
|
||||||
|
'Type': 'oneshot',
|
||||||
|
'User': 'steam',
|
||||||
|
'Group': 'steam',
|
||||||
|
'WorkingDirectory': '/opt/steam',
|
||||||
|
'ExecStart': {
|
||||||
|
f'/opt/steam/steam/steamcmd.sh +force_install_dir /opt/steam/{game} +login anonymous +app_update {id} validate +quit'
|
||||||
|
for game, id in metadata.get('steam/games').items()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'Install': {
|
||||||
|
'WantedBy': {'multi-user.target'},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
directories = {
|
directories = {
|
||||||
'/etc/sudoers.d': {
|
'/etc/sudoers.d': {
|
||||||
'mode': '0750',
|
'purge': True,
|
||||||
#'purge': True, # FIXME: purge after managed sudoers are ready
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,6 @@ defaults = {
|
||||||
'resolvconf': {
|
'resolvconf': {
|
||||||
'installed': False,
|
'installed': False,
|
||||||
},
|
},
|
||||||
'netplan.io': {
|
|
||||||
'installed': False,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
'systemd-swap': 2*(2**30), # 2GiB
|
'systemd-swap': 2*10**9,
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': {
|
'units': {
|
||||||
'swapfile.swap': {
|
'swapfile.swap': {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
from bundlewrap.utils.dicts import merge_dict
|
from bundlewrap.utils.dicts import merge_dict
|
||||||
|
|
||||||
files = {}
|
|
||||||
svc_systemd = {}
|
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/usr/local/lib/systemd/system': {
|
'/usr/local/lib/systemd/system': {
|
||||||
'purge': True,
|
'purge': True,
|
||||||
|
|
@ -45,9 +42,6 @@ for name, unit in node.metadata.get('systemd/units').items():
|
||||||
else:
|
else:
|
||||||
raise Exception(f'unknown type {extension}')
|
raise Exception(f'unknown type {extension}')
|
||||||
|
|
||||||
for attribute in ['needs', 'needed_by', 'triggers', 'triggered_by']:
|
|
||||||
if attribute in unit:
|
|
||||||
dependencies.setdefault(attribute, []).extend(unit.pop(attribute))
|
|
||||||
|
|
||||||
files[path] = {
|
files[path] = {
|
||||||
'content': repo.libs.systemd.generate_unitfile(unit),
|
'content': repo.libs.systemd.generate_unitfile(unit),
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ defaults = {
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'telegraf/inputs/exec',
|
'telegraf/config/inputs/exec',
|
||||||
)
|
)
|
||||||
def telegraf(metadata):
|
def telegraf(metadata):
|
||||||
return {
|
return {
|
||||||
|
|
@ -23,11 +23,11 @@ def telegraf(metadata):
|
||||||
'config': {
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'exec': {
|
'exec': {
|
||||||
'tasmota_charge': {
|
repo.libs.hashable.hashable({
|
||||||
'commands': ["/usr/local/share/telegraf/tasmota_charge"],
|
'commands': ["/usr/local/share/telegraf/tasmota_charge"],
|
||||||
'name_override': "tasmota_charge",
|
'name_override': "tasmota_charge",
|
||||||
'data_format': "influx",
|
'data_format': "influx",
|
||||||
},
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,19 @@
|
||||||
import tomlkit
|
import tomlkit
|
||||||
|
import json
|
||||||
|
from bundlewrap.metadata import MetadataJSONEncoder
|
||||||
def inner_dict_to_list(dict_of_dicts):
|
|
||||||
"""
|
|
||||||
Example:
|
|
||||||
{
|
|
||||||
'cpu': {
|
|
||||||
'default': {'something': True},
|
|
||||||
'another': {'something': False},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
becomes
|
|
||||||
{
|
|
||||||
'cpu': [
|
|
||||||
{'something': True},
|
|
||||||
{'something': False},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
return {
|
|
||||||
key: [value for _, value in sorted(dicts.items())]
|
|
||||||
for key, dicts in sorted(dict_of_dicts.items())
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
"/etc/telegraf/telegraf.conf": {
|
'/etc/telegraf/telegraf.conf': {
|
||||||
'owner': 'telegraf',
|
'content': tomlkit.dumps(
|
||||||
'group': 'telegraf',
|
json.loads(json.dumps(
|
||||||
'mode': '0440',
|
node.metadata.get('telegraf/config'),
|
||||||
'needs': [
|
cls=MetadataJSONEncoder,
|
||||||
"pkg_apt:telegraf",
|
)),
|
||||||
|
sort_keys=True,
|
||||||
|
),
|
||||||
|
'triggers': [
|
||||||
|
'svc_systemd:telegraf:restart',
|
||||||
],
|
],
|
||||||
'content': tomlkit.dumps({
|
|
||||||
'agent': node.metadata.get('telegraf/agent'),
|
|
||||||
'inputs': inner_dict_to_list(node.metadata.get('telegraf/inputs')),
|
|
||||||
'processors': inner_dict_to_list(node.metadata.get('telegraf/processors')),
|
|
||||||
'outputs': inner_dict_to_list(node.metadata.get('telegraf/outputs')),
|
|
||||||
}),
|
|
||||||
'triggers': {
|
|
||||||
'svc_systemd:telegraf.service:restart',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
'/usr/local/share/telegraf/procio': {
|
'/usr/local/share/telegraf/procio': {
|
||||||
'content_type': 'download',
|
'content_type': 'download',
|
||||||
|
|
@ -54,26 +27,9 @@ files = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
actions = {
|
svc_systemd['telegraf'] = {
|
||||||
'telegraf-test-config': {
|
|
||||||
'command': "sudo -u telegraf bash -c 'telegraf config check --config /etc/telegraf/telegraf.conf --strict-env-handling'",
|
|
||||||
'triggered': True,
|
|
||||||
'needs': [
|
'needs': [
|
||||||
'bundle:sudo',
|
|
||||||
'file:/etc/telegraf/telegraf.conf',
|
'file:/etc/telegraf/telegraf.conf',
|
||||||
'pkg_apt:telegraf',
|
'pkg_apt:telegraf',
|
||||||
],
|
],
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
svc_systemd = {
|
|
||||||
'telegraf.service': {
|
|
||||||
'needs': ['pkg_apt:telegraf'],
|
|
||||||
'preceded_by': {
|
|
||||||
'action:telegraf-test-config',
|
|
||||||
},
|
|
||||||
'needs': {
|
|
||||||
'action:telegraf-test-config',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ defaults = {
|
||||||
# needed by crystal plugins:
|
# needed by crystal plugins:
|
||||||
'libgc-dev': {},
|
'libgc-dev': {},
|
||||||
'libevent-dev': {},
|
'libevent-dev': {},
|
||||||
|
# crystal based (procio, pressure_stall):
|
||||||
|
'libpcre3': {},
|
||||||
},
|
},
|
||||||
'sources': {
|
'sources': {
|
||||||
'influxdata': {
|
'influxdata': {
|
||||||
|
|
@ -23,29 +25,26 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'agent': {
|
'agent': {
|
||||||
'hostname': node.name,
|
'hostname': node.name,
|
||||||
'collection_jitter': '20s',
|
'collection_jitter': '0s',
|
||||||
'flush_interval': '20s',
|
'flush_interval': '15s',
|
||||||
'flush_jitter': '5s',
|
'flush_jitter': '0s',
|
||||||
'interval': '2m',
|
'interval': '15s',
|
||||||
'metric_batch_size': 1000,
|
'metric_batch_size': 1000,
|
||||||
'metric_buffer_limit': 10000,
|
'metric_buffer_limit': 10000,
|
||||||
'omit_hostname': False,
|
'omit_hostname': False,
|
||||||
'round_interval': True,
|
'round_interval': True,
|
||||||
'skip_processors_after_aggregators': True,
|
|
||||||
},
|
},
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'cpu': {
|
'cpu': {h({
|
||||||
'default': {
|
|
||||||
'collect_cpu_time': False,
|
'collect_cpu_time': False,
|
||||||
'percpu': True,
|
'percpu': True,
|
||||||
'report_active': False,
|
'report_active': False,
|
||||||
'totalcpu': True,
|
'totalcpu': True,
|
||||||
},
|
})},
|
||||||
},
|
'disk': {h({
|
||||||
'disk': {
|
|
||||||
'default': {
|
|
||||||
'ignore_fs': [
|
'ignore_fs': [
|
||||||
'tmpfs',
|
'tmpfs',
|
||||||
'devtmpfs',
|
'devtmpfs',
|
||||||
|
|
@ -55,60 +54,42 @@ defaults = {
|
||||||
'aufs',
|
'aufs',
|
||||||
'squashfs',
|
'squashfs',
|
||||||
],
|
],
|
||||||
}
|
})},
|
||||||
},
|
'procstat': {h({
|
||||||
'procstat': {
|
|
||||||
'default': {
|
|
||||||
'interval': '60s',
|
'interval': '60s',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'fieldinclude': [
|
'fieldinclude': [
|
||||||
'cpu_usage',
|
'cpu_usage',
|
||||||
'memory_rss',
|
'memory_rss',
|
||||||
],
|
],
|
||||||
},
|
})},
|
||||||
},
|
'diskio': {h({
|
||||||
'diskio': {
|
|
||||||
'default': {
|
|
||||||
'device_tags': ["ID_PART_ENTRY_NUMBER"],
|
'device_tags': ["ID_PART_ENTRY_NUMBER"],
|
||||||
}
|
})},
|
||||||
},
|
'kernel': {h({})},
|
||||||
'kernel': {
|
'mem': {h({})},
|
||||||
'default': {},
|
'processes': {h({})},
|
||||||
},
|
'swap': {h({})},
|
||||||
'mem': {
|
'system': {h({})},
|
||||||
'default': {},
|
'net': {h({})},
|
||||||
},
|
|
||||||
'processes': {
|
|
||||||
'default': {},
|
|
||||||
},
|
|
||||||
'swap': {
|
|
||||||
'default': {},
|
|
||||||
},
|
|
||||||
'system': {
|
|
||||||
'default': {},
|
|
||||||
},
|
|
||||||
'net': {
|
|
||||||
'default': {},
|
|
||||||
},
|
|
||||||
'exec': {
|
'exec': {
|
||||||
# h({
|
h({
|
||||||
# 'commands': [
|
'commands': [
|
||||||
# f'sudo /usr/local/share/telegraf/procio',
|
f'sudo /usr/local/share/telegraf/procio',
|
||||||
# ],
|
],
|
||||||
# 'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
# 'interval': '20s',
|
'interval': '20s',
|
||||||
# }),
|
}),
|
||||||
'pressure_stall': {
|
h({
|
||||||
'commands': [
|
'commands': [
|
||||||
f'/usr/local/share/telegraf/pressure_stall',
|
f'/usr/local/share/telegraf/pressure_stall',
|
||||||
],
|
],
|
||||||
'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
'interval': '10s',
|
'interval': '10s',
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'processors': {},
|
|
||||||
'outputs': {},
|
|
||||||
},
|
},
|
||||||
'grafana_rows': {
|
'grafana_rows': {
|
||||||
'cpu',
|
'cpu',
|
||||||
|
|
@ -126,42 +107,22 @@ defaults = {
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'telegraf/outputs/influxdb_v2/default',
|
'telegraf/config/outputs/influxdb_v2',
|
||||||
)
|
)
|
||||||
def influxdb(metadata):
|
def influxdb(metadata):
|
||||||
influxdb_metadata = repo.get_node(metadata.get('telegraf/influxdb_node')).metadata.get('influxdb')
|
influxdb_metadata = repo.get_node(metadata.get('telegraf/influxdb_node')).metadata.get('influxdb')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'outputs': {
|
'outputs': {
|
||||||
'influxdb_v2': {
|
'influxdb_v2': [{
|
||||||
'default': {
|
|
||||||
'urls': [f"http://{influxdb_metadata['hostname']}:{influxdb_metadata['port']}"],
|
'urls': [f"http://{influxdb_metadata['hostname']}:{influxdb_metadata['port']}"],
|
||||||
'token': str(influxdb_metadata['writeonly_token']),
|
'token': str(influxdb_metadata['writeonly_token']),
|
||||||
'organization': influxdb_metadata['org'],
|
'organization': influxdb_metadata['org'],
|
||||||
'bucket': influxdb_metadata['bucket'],
|
'bucket': influxdb_metadata['bucket'],
|
||||||
},
|
}]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# crystal based (procio, pressure_stall):
|
|
||||||
@metadata_reactor.provides(
|
|
||||||
'apt/packages/libpcre2-8-0',
|
|
||||||
'apt/packages/libpcre3',
|
|
||||||
)
|
|
||||||
def libpcre(metadata):
|
|
||||||
if node.os == 'debian' and node.os_version >= (13,):
|
|
||||||
libpcre_package = 'libpcre2-8-0'
|
|
||||||
else:
|
|
||||||
libpcre_package = 'libpcre3'
|
|
||||||
|
|
||||||
return {
|
|
||||||
'apt': {
|
|
||||||
'packages': {
|
|
||||||
libpcre_package: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ defaults = {
|
||||||
'users': {
|
'users': {
|
||||||
'root': {
|
'root': {
|
||||||
'home': '/root',
|
'home': '/root',
|
||||||
'password': repo.vault.password_for(f'{node.name} user root', length=24),
|
'password': repo.vault.password_for(f'{node.name} user root'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -20,15 +20,11 @@ def authorized_users(metadata):
|
||||||
users[name] = {
|
users[name] = {
|
||||||
'authorized_keys': set(),
|
'authorized_keys': set(),
|
||||||
}
|
}
|
||||||
for authorized_user, options in config.get('authorized_users', {}).items():
|
for authorized_user in config.get('authorized_users', set()):
|
||||||
authorized_user_name, authorized_user_node = authorized_user.split('@')
|
authorized_user_name, authorized_user_node = authorized_user.split('@')
|
||||||
authorized_user_public_key = repo.get_node(authorized_user_node).metadata.get(f'users/{authorized_user_name}/pubkey')
|
users[name]['authorized_keys'].add(
|
||||||
|
repo.get_node(authorized_user_node).metadata.get(f'users/{authorized_user_name}/pubkey')
|
||||||
for command in options.get('commands', []):
|
)
|
||||||
users[name]['authorized_keys'].add(f'command="{command}" ' + authorized_user_public_key)
|
|
||||||
else:
|
|
||||||
users[name]['authorized_keys'].add(authorized_user_public_key)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'users': users,
|
'users': users,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ defaults = {
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'wol-sleeper/mac',
|
|
||||||
'wol-sleeper/wake_command',
|
'wol-sleeper/wake_command',
|
||||||
)
|
)
|
||||||
def wake_command(metadata):
|
def wake_command(metadata):
|
||||||
|
|
@ -54,8 +53,7 @@ def wake_command(metadata):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'wol-sleeper': {
|
'wol-sleeper': {
|
||||||
'mac': mac,
|
'wake_command': f"ssh -o StrictHostKeyChecking=no wol@{waker_hostname} 'wakeonlan {mac} && while ! ping {ip} -c1 -W3; do true; done'",
|
||||||
'wake_command': f"ssh -o StrictHostKeyChecking=no wol@{waker_hostname} '/usr/bin/wakeonlan {mac}' && while ! ping {ip} -c1 -W3; do true; done",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,25 +6,17 @@ defaults = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'users/wol/authorized_users',
|
'users/wol',
|
||||||
)
|
)
|
||||||
def user(metadata):
|
def user(metadata):
|
||||||
return {
|
return {
|
||||||
'users': {
|
'users': {
|
||||||
'wol': {
|
'wol': {
|
||||||
'authorized_users': {
|
'authorized_users': {
|
||||||
f'root@{ssh_client.name}': {
|
f'root@{node.name}'
|
||||||
'commands': {
|
for node in repo.nodes
|
||||||
'/usr/bin/wakeonlan ' + sleeper.metadata.get('wol-sleeper/mac')
|
if node.dummy == False and node.has_bundle('ssh')
|
||||||
for sleeper in repo.nodes
|
|
||||||
if sleeper.has_bundle('wol-sleeper')
|
|
||||||
and sleeper.metadata.get('wol-sleeper/waker') == node.name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for ssh_client in repo.nodes
|
|
||||||
if ssh_client.dummy == False and ssh_client.has_bundle('ssh')
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,9 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
'config': {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'zfs': {
|
'zfs': [{}],
|
||||||
'default': {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ KHyP5XgRU/pIOyOo3g6+qIkhgynHVYIBuPbFQGEbOuUg7noAwTC9B9pYXSRFq9wk
|
||||||
T/q8rqOBiyO9SWB9gMiem8HNAzUo5TbVp9xPv2pl3mNXwe5te92pjlWdktOsBZuy
|
T/q8rqOBiyO9SWB9gMiem8HNAzUo5TbVp9xPv2pl3mNXwe5te92pjlWdktOsBZuy
|
||||||
TfTgoj3y0HUY48He/z85aJ5j7gX5PU/6arxdABEBAAG0UGRldmVsOmxhbmd1YWdl
|
TfTgoj3y0HUY48He/z85aJ5j7gX5PU/6arxdABEBAAG0UGRldmVsOmxhbmd1YWdl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ZoE+dpIpAGKzN8MoQQ+fjgSheXar35p+8lOKrvrk7MmbQJlBQO+rM
|
||||||
D+c+iEYEExECAAYFAmCKr5QACgkQOzARt2udZSNdFQCgtpRzGoKr9VWnhv+/k4pk
|
IHdJiEYEExECAAYFAmCKr5QACgkQOzARt2udZSNdFQCgtpRzGoKr9VWnhv+/k4pk
|
||||||
Cmp9fycAn0pdJ2xIEsqxOjPBFVDh7Sahecuq
|
Cmp9fycAn0pdJ2xIEsqxOjPBFVDh7Sahecuq
|
||||||
=v2my
|
=yIwD
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
|
||||||
|
|
@ -1,186 +0,0 @@
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
||||||
mQINBGPL0F0BEAC8s6aFGXEkW0xvN5FSZKaM+rp9FX4EhWNfkKi7PaHEpZcjzC6J
|
|
||||||
gIwSwJP7o9L/LLtLYr68Df9sv+AktdzhY50T4zBQouEl6ps/ZaaiVoTsH8wLOp7g
|
|
||||||
/qDFJ8kH7quUU9Qh6AmirwmEddKmEZTrabg4OjeU/eJEEBJW8/NDc18lrqKC7S62
|
|
||||||
hjt+XE7VC+/C/4BLEN0OvNjYfi+2giwVOBAThlAtaryz010g2Nb/zSdjQQCEndQs
|
|
||||||
wlS4enVwklleLo76S63H60rxbh2WiNCvRAJMm6OytcXsQO5NPLt0wyk9FvXf9r6B
|
|
||||||
eQG8zabfA8u5pai+/a8CYgMijH+k1LmBT2j5hOIFDQmUE05aNTLNYQz6uy+emXJk
|
|
||||||
PtIf805D4nFYk1OSN/KZ3xYr+4+FtyfQ5Gj0blSPhsq7fJzoSDA2wTlx4Q6x7abS
|
|
||||||
txtsY78/LCqkRbSUHRKZq1t5jQ5laOV0D1MrLzQB2NFhTWDRHe6UrDOx/ea5ORBU
|
|
||||||
MH7iW27DOZkMgeyidBzAdgoHArO+n9/OLdf1TvpgPuchEX9mn1e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YZeY06VT+HBut6sWos61hH/4K/2Mr6YexER2DU6wC2
|
|
||||||
oUF0Z/BXs/FsJn8bxlEOfz0f7k+W8gDGjvESwsKcnagXUpArsD5EXChTNyKhwxx+
|
|
||||||
8MC9WBacGhziGC1I8xEDEuZF1YuINWusWY4h/Vx3fgTwNQmvnahXA5pFIFAHH3EW
|
|
||||||
JcX4+Ku0UUpBTz2zn0R1wWLLpmMwgMYFt5GfA86jJCYYnNbKWoC/3SZ5IMyln/QT
|
|
||||||
DWY3oXAoYHShs621rDjGI/NCFKIkblacmfLh+A7es/T552VRURFXaDHTDoAoJxmY
|
|
||||||
BiTKJkC9QvkHQUckSFEUC1MB9jczWJMOwiiDinuqTdu8j126b7RSRGViaWFuIFNl
|
|
||||||
Y3VyaXR5IEFyY2hpdmUgQXV0b21hdGljIFNpZ25pbmcgS2V5ICgxMi9ib29rd29y
|
|
||||||
bSkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBAWrkDQMDF55f0So
|
|
||||||
yCVM87WuwKjwBQJjy9BdAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4BAheA
|
|
||||||
AAoJECVM87WuwKjwT+IP/3oNbYJJuAi576J3aov4+tHleeoDtlhij3CNgkdJvkiv
|
|
||||||
6rSiKRNxqVbEi5A3+chJ7h0yHoCGYJdi8ciVEvwdbgduQaBrmdIR+Gt180KBWwQl
|
|
||||||
xSAMIb5+wuATnDoKykTiHy45vHsiXTyZ2IaPwAtcVsih42KOE/M2s27IfJZlQfQP
|
|
||||||
GDi0Uurzdl8RDQJiRZhNDJDp/MsCaIA8+MY+EIyiRjBf7cGmEBoNiCG+5xIChtD8
|
|
||||||
oFbragdcnIY39AfjVnAK136utBnEXUkjl9+hGCPVWOzPlnmBYelNTis2w6lwzbkm
|
|
||||||
FVVNXrKJCToOb0coOngxACBIZVHUEzGOYzTjkLjcsSnxoamFCxc1hVg8aikoai+H
|
|
||||||
nb/KMSB4/bpx1k9B4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nEqieGM+NFXRX7
|
|
||||||
hk2c33lCmcI7eiS4E+HBuH7gnIg7XDUnAYuIMScOVNVaVC33enEiVBVaIF0eWmad
|
|
||||||
OlyZJFS/WRMilLJWBR6VlkEOh2hIQEaqpTsuXlhnTBrThLzdgoCf4+3wa8fTF3Uj
|
|
||||||
x6edHejhxn+Tll2xOv/JM4pOd/iblYxyla7wh+yrO5tsFUcioBHyI15ceS30qA7/
|
|
||||||
lc0dA4kY1XQnKASRlkNgGaETFV02hjZjXgg2i2Ksw+534NkoJLZL/Rnf1eRMMqA1
|
|
||||||
BBwqjuAR3g11Xe/rjLpXd2zdVI5bK+C+3V8autvZo7upzW50QhQn9P68aCXrZjqE
|
|
||||||
2FgVHxa/czYdy/oDaznYRDhmlEC0YX/zqcsYm4A9LQpnGg2GT/avVNAtKSPH1Ap/
|
|
||||||
vK2yTOEhMaf54YLuUCUnju0evs5AB2GRpkFM1kHnZxMBnIhUMqbJXZs8TY2fVmOr
|
|
||||||
49e9OoynOhKH3wJxQoOf50RuQDh4xTiYpCPPLq890OJTrOiObSvFPMhrHvo//1zo
|
|
||||||
49elCVvtZNFk6IwlX2Tlu4OunHicwROs7yWUnEm8ZwE3PInHHi9UbRp6Tzsdd36n
|
|
||||||
5mmHfUAK/HdVRfYe0tDMmN5vCdvMNHSd2kU7zrT0tFscCCM5XJiQfOtVm6Rl5jz3
|
|
||||||
QdeWAjREHBd83ooNaKiqYnUhiQIzBBABCgAdFiEEgOl28UpQikjpyj/pvDciUsoc
|
|
||||||
+WQFAmPL2NUACgkQvDciUsoc+WT7iQ//e0HZMpvpdpD7HuLfq1mIjW2rxoYELI0s
|
|
||||||
419FO1jmoJmqR3OtsmYA7U62hCMqhP8HCDqc+cDFDBFdzSgcXLeXIPqEzD0OgkTX
|
|
||||||
tjY1Q7GthHBszUh8CNbXUWmiDY/mwe31tf7JsvdglJr0lXe2gPo8qKT35ckQyAXE
|
|
||||||
mKsVKoBya5owndv0cv4j7UueYwLy2ocuKIMKeQr0FoWxThr+P6/CCwq5teiUCWIZ
|
|
||||||
0hzuxYINOFdUsf7Cm332J+WBnvd1qekzbGkcZMURjbQiJ7H3pvdyrFBl0oHlunGq
|
|
||||||
fiMgy+2hXShcax/AEzPNEcULzIuwaXypZsHtIkEmQPbIsTMwmeZJmo3eappsGbml
|
|
||||||
ZSCgu5vOvyGJTlvgm6ssLisC5Y5QsPMZnCh7k1w97J71fp43tuGSkO0SWodz3tCw
|
|
||||||
+FGD3Z+INueHmNCMom9taDHv3Tqo1jTBufOzZ3sGXSKPayqTEulvtCB5ZJDw9+6H
|
|
||||||
rx6LKcHnziROyALWiBxfgizW8lk8mbgKp5H9oD0cer8n72jiA0LD5hrt8eTlAPCF
|
|
||||||
cKwmprr2BSJOGI84RezsfItCr1bMkQ1xLsBIgMYjHRPFdFdICJUsMtyqtBED1y7a
|
|
||||||
BCxJZr+0bZkjwgk8G8pKYSPVEmRRe35ulSTWybBSSAFd6bixYUj0nnswLw2Lm1Hj
|
|
||||||
NElx+hnv/0mJAlUEEAEKAD8WIQT7+r21QbXclVvZum7bFs9bsSUlxAUCY8vt8iEa
|
|
||||||
aHR0cDovL2dwZy5nYW5uZWZmLmRlL3BvbGljeS50eHQACgkQ2xbPW7ElJcRLNBAA
|
|
||||||
ulagMImbvWUHayliO89kmXBQdok8/9CutzekHOa6+NyjTapABGemuh+p+Y41T6rs
|
|
||||||
S86IJ/Nvu7uGniLqHUjm9jfjCIw4MGq5mI8qRyNQ9W44ntlvlkvtPEyquF23ofoy
|
|
||||||
opkBfXZT88omHiOXENwdINLobsMSKjyu1PiIMzQ313fR4GuvCyFdBPwIycuCFbio
|
|
||||||
1igiLmeNRO3g0V8leFSEh62KWnx95kxdZbS0Vz3LCvHH39wQSEZ/bUyJPM2OOjlz
|
|
||||||
edHD9wbi4rSvOxHBZmXN2uWZBpIHTtYTF/BfrRFRZNcQhKHO6xUkpG+8Bo3cmy4R
|
|
||||||
MVt8GPwac/W4qxuKzrONmZnDWO8tgQei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Wx9Z+cHe
|
|
||||||
Hp0CUDJAse6IIPScrf/dtMzzEkxfDWY+OgzSvaiTstRnqLpgiVkm52FlD2AYRgBd
|
|
||||||
nXXdJqOEgH6SimM+IpGDdboi/syIrn16PtBbEHvu1ypdhEb4YW39aKnpMhbRL6KI
|
|
||||||
bpWTSbX5haX6JqdZByqhL7D3bYZCUZ7xie1ta68u/8J1Zazy6COj9wdUouNnj7I6
|
|
||||||
tsaNBGjpoT1RlNL614D9vTxje4ErQwYaMCOs5XcthRaopcIVJwtAwzP/tCLVpSKi
|
|
||||||
uVqdEq3RhK8EkvXSm1iEH8qWjlASzdVgMFWB3zx2epH/IDHiJkjBuUUONNRDMUsC
|
|
||||||
R4AcZq27p9DkNw37rOrBQUBeYlmFwItE3nIQ7QRVXtlbm8tVLM56/YmMXae/Mwzh
|
|
||||||
M9W/TKDtccVwtHs2iFLNka1iXZsN3SmqgfiEEAiwpzrnKvCIS3jsi8GTv9td0erQ
|
|
||||||
Q5a7LATQwV0DNwqvT2pDp4PRZLH1HGkFVb+yY/XZG0PwYCmBkZUoQDl6P8f58l9C
|
|
||||||
18w52Cp5D5/oqiqtz0NLY+a61uQbfa2oeYDDEK3NGlXBdEAaQqHarkY8Gf44/ea8
|
|
||||||
aCsM9iH3DogBJGgIkhs2Face7OmedNkvc7LiRNz/z7Vm62F/mXSBHIMvQ0pwvRiK
|
|
||||||
bn5U7DwupeFEycZrqQEKsjwFjLxa
|
|
||||||
=QzR4
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
@ -1,186 +0,0 @@
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
||||||
mQINBGPL0BUBEADmW5NdOOHwPIJlgPu6JDcKw/NZJPR8lsD3K87ZM18gzyQZJD+w
|
|
||||||
ns6TSXOsx+BmpouHZgvh3FQADj/hhLjpNSqH5IH0xY7nic9BuSeyKx2WvfG62yxw
|
|
||||||
XcFkwTxoWpF3tg0cv+kT4VA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gWIQS4uAtbYj6rath3XEW3xdfW
|
|
||||||
NQlH+AUCY8vQGBcMgAHHT2rJ6TOzBn9S8z+kWexnFbBwXwIHAAAKCRC3xdfWNQlH
|
|
||||||
+E2DEADOwCe6UQAojyXmQSLPeRH9wfykeeAqVowt15L3SegF3CGf/WyPeA7o4fwg
|
|
||||||
60DMub81UtDanTB2s5ayGH/bzLhhDF/XjaotyEox6/J1/zpginVTnYRUs8mJempE
|
|
||||||
rWuirifsKHzh3VT/pv35rwblHhMdHj2txoZtTHa5MjgeRd3oT+NlbbG6firKCzGC
|
|
||||||
Vdw6sz478axa8tgwG65GPa/4lRZCfPYd62pA2HLlfFwjgDC5x1cOU6YRHVdX1VJ0
|
|
||||||
QEr++oOFWNi9grbBZjZpNSN2FFpXsvvA3zzaCGfUVZ5Ti4GKsC/RDbmIZFLQrF8v
|
|
||||||
1bETSQDWt4F56/njcQMcIOYp0yWBvRKhJUeEHVl3u+tGaMl74f59MZNPmNnY6y2d
|
|
||||||
aDIRMYJmcjagYcTSpFar6MziRN2vepQ0kVDxXoytmt05kNOLFkPgcKrqweVP7R5m
|
|
||||||
Vy+//w99drx47TwJeii7/GiuTN3FLc2gn5wmoeur3hksm05Kg99gxr8i1jeKGCGt
|
|
||||||
WLeA2Kh6deozOsAjyT+4cX4wh7mUO8lOTvRp/WRqqNo3aTdelVxdmKOjtqrukVjL
|
|
||||||
LaY1LLvlQE9K4jshcQBidr1NmdCl9zV/IZzP329juu4MvK7uyyzHSxXSG5jt0wu4
|
|
||||||
szIOzpgAqhsTasLQMi5Z1cdfy+NfqlVk/vmmSYSaBlmq2QgnX7RJRGViaWFuIEFy
|
|
||||||
Y2hpdmUgQXV0b21hdGljIFNpZ25pbmcgS2V5ICgxMi9ib29rd29ybSkgPGZ0cG1h
|
|
||||||
c3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBLi4C1tiPqtq2HdcRbfF19Y1CUf4
|
|
||||||
BQJjy9AVAhsDBQkPCZwABQsJCAcD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Kl/vT4ftrBHeSyV7eLwOYbe3/bw
|
9O/0qAIU+YW7ojbKv8fr+NB31TGhGYWASjYlN1NvPotRAK6339O0/Rqr9xGgy3AY
|
||||||
8VMx+lmMheD8/qJMia1om0iBBRSXRjY//f+Lllqm
|
SR+ic2Y610IM7xccKuTVAW9UofKQwJZChqae9VVZ
|
||||||
=TH3J
|
=J9CI
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
|
||||||
|
|
@ -1,99 +1,29 @@
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
mQINBGPIEtQBEADSkkGhaEytmsAzvHtUn/1/wIW5RTp6tHWlEsz3b2iZ3LEpNlfe
|
mQINBGPIEycBEACpG4qSjhxA6fh4QJVJxFVBvCFt9tVx/hDbKH0Ryy9iilyMeReC
|
||||||
EqfUiK88edtEFgmioozHif2ZBRj2pyV2gckPmXna2b0UOefAAibMSTYXwhUQRgw4
|
AS1/CZnSv/fhDNKmVPckf6on72z/ODwZcVfMV6DHkxmZ6x/tQrS6CWfKkupsON2H
|
||||||
DNbecJk6J3HfcsXBVO4jGcR98UCVmpslZkqax1b/q+ju5BGA1PBHZZqGyooVWdv2
|
KS3t4HUivahwHPlWtbfDqsWNwTAsZqklKpJQWY2ADPwurkbCmtYSjsgbLuWe23Pd
|
||||||
5fmJ6ZPdMWKr6lyCVbMKU3Z3zzsWlsqsA1aadNbwsg1vPHemVwGiI1esQFZo2ltS
|
nJpLTHtlChM0ntW/l7Le1zYjGPUGoxMJgjg1YG8fi2l/zS0Of8bdQ26ps+WRvrSQ
|
||||||
K37Ar9hJSMreVeU5k0Vrg5rWaQnNEjcpVJQMHapMxTG3RZzZrl6jMVCFKia4JWPk
|
RKhfAkfIgUiCXxBpDlN1spN73ZlAkaSb+myTfEKyJR55Yt9pHfkDdJh26RVgE1+N
|
||||||
LBcPL4GP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dD84BDahvEU/mIzZkln6Bhr
|
|
||||||
CnKRBt4mxHVs/jUR5IOBX5foEKJM3GFU+OQ0bi8gzYxfoF6mfO42Km2RvrqHpBJa
|
|
||||||
OtMEDP2hvCZi+O9WZYNna74u4IFEIpULAeoU3e/7B4DJNOtHTPRmdwpHrZBszrz7
|
|
||||||
tYTqYmqG1DjiGieki6Byvw0/9XIYoHZBuLu51iHj3WwOeuYj2Gi5boq+YXumW9xQ
|
|
||||||
gUgyWu8M6XFa4UCzpx50Zay/BWA9LsRxUUpDNCjysg4gDuw9WflUI+LdlrvKFBX9
|
|
||||||
AHMnjg==
|
|
||||||
=UiOS
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
|
||||||
|
|
@ -8,21 +8,16 @@ from(bucket: "${bucket}")
|
||||||
|> filter(fn: (r) => exists r["${exist}"]) // WTF
|
|> filter(fn: (r) => exists r["${exist}"]) // WTF
|
||||||
% endfor
|
% endfor
|
||||||
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) // aggregate early for best performance
|
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) // aggregate early for best performance
|
||||||
% if over is not None:
|
% if minimum:
|
||||||
|> filter(fn: (r) => r._value > ${over})
|
|> filter(fn: (r) => r._value > ${minimum})
|
||||||
% endif
|
% endif
|
||||||
% if function == 'derivative':
|
% if function == 'derivative':
|
||||||
|> derivative(nonNegative: true)
|
|> derivative(nonNegative: true)
|
||||||
% elif function == 'difference':
|
|
||||||
|> difference(nonNegative: true)
|
|
||||||
% endif
|
% endif
|
||||||
% if boolean_to_int:
|
% if boolean_to_int:
|
||||||
|> map(fn: (r) => ({r with _value: if r._value == true then 1 else 0 }))
|
|> map(fn: (r) => ({r with _value: if r._value == true then 1 else 0 }))
|
||||||
% endif
|
% endif
|
||||||
% if negative:
|
% if negative:
|
||||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||||
% endif
|
|
||||||
% if multiply is not None:
|
|
||||||
|> map(fn: (r) => ({r with _value: r._value * ${multiply}}))
|
|
||||||
% endif
|
% endif
|
||||||
|> yield(name: "mean")
|
|> yield(name: "mean")
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
},
|
},
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'soft_max': 3,
|
'soft_max': 3,
|
||||||
'display_name': '${__field.labels.resource}',
|
'display_name': '__field.labels.resource',
|
||||||
'unit': 'percent',
|
'unit': 'percent',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
'legend': {
|
'legend': {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'Bps',
|
'unit': 'Bps',
|
||||||
'display_name': '${__field.labels.name}',
|
'display_name': '__field.labels.name',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
},
|
},
|
||||||
'write': {
|
'write': {
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'Bps',
|
'unit': 'Bps',
|
||||||
'display_name': '${__field.labels.name}',
|
'display_name': '__field.labels.name',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
},
|
},
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
'unit': 'MHz',
|
'unit': 'MHz',
|
||||||
'display_name': '${__field.labels.cpu}',
|
'display_name': '__field.labels.cpu',
|
||||||
'min': 0,
|
'min': 0,
|
||||||
},
|
},
|
||||||
# 'temperature': {
|
# 'temperature': {
|
||||||
|
|
@ -57,6 +57,6 @@
|
||||||
},
|
},
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
'unit': 'degrees',
|
'unit': 'degrees',
|
||||||
'display_name': '${__field.labels.chip}',
|
'display_name': '__field.labels.chip',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'Bps',
|
'unit': 'Bps',
|
||||||
'display_name': '${__field.labels.interface}',
|
'display_name': '__field.labels.interface',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
},
|
},
|
||||||
'out': {
|
'out': {
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'Bps',
|
'unit': 'Bps',
|
||||||
'display_name': '${__field.labels.interface}',
|
'display_name': '__field.labels.interface',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
'function': 'max',
|
'function': 'max',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.queue}'
|
'display_name': '__field.labels.queue'
|
||||||
},
|
},
|
||||||
'size': {
|
'size': {
|
||||||
'stacked': True,
|
'stacked': True,
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
'function': 'max',
|
'function': 'max',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.queue}'
|
'display_name': '__field.labels.queue'
|
||||||
},
|
},
|
||||||
'age': {
|
'age': {
|
||||||
'stacked': True,
|
'stacked': True,
|
||||||
|
|
@ -42,6 +42,6 @@
|
||||||
'function': 'max',
|
'function': 'max',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.queue}'
|
'display_name': '__field.labels.queue'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
'cpu_usage',
|
'cpu_usage',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'over': 0.2,
|
'minimum': 0.2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'percent',
|
'unit': 'percent',
|
||||||
'display_name': '${__field.labels.process_name}',
|
'display_name': '__field.labels.process_name',
|
||||||
'legend': {
|
'legend': {
|
||||||
'displayMode': 'table',
|
'displayMode': 'table',
|
||||||
'placement': 'right',
|
'placement': 'right',
|
||||||
|
|
@ -32,11 +32,11 @@
|
||||||
'memory_rss',
|
'memory_rss',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'over': 10*(10**6),
|
'minimum': 10*(10**6),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'bytes',
|
'unit': 'bytes',
|
||||||
'display_name': '${__field.labels.process_name}',
|
'display_name': '__field.labels.process_name',
|
||||||
'legend': {
|
'legend': {
|
||||||
'displayMode': 'table',
|
'displayMode': 'table',
|
||||||
'placement': 'right',
|
'placement': 'right',
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'function': 'derivative',
|
'function': 'derivative',
|
||||||
'over': 1024,
|
'minimum': 1024,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'bytes',
|
'unit': 'bytes',
|
||||||
'display_name': '${__field.labels.comm}',
|
'display_name': '__field.labels.comm',
|
||||||
'legend': {
|
'legend': {
|
||||||
'displayMode': 'table',
|
'displayMode': 'table',
|
||||||
'placement': 'right',
|
'placement': 'right',
|
||||||
|
|
@ -34,11 +34,11 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'function': 'derivative',
|
'function': 'derivative',
|
||||||
'over': 1,
|
'minimum': 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'unit': 'bytes',
|
'unit': 'bytes',
|
||||||
'display_name': '${__field.labels.comm}',
|
'display_name': '__field.labels.comm',
|
||||||
'legend': {
|
'legend': {
|
||||||
'displayMode': 'table',
|
'displayMode': 'table',
|
||||||
'placement': 'right',
|
'placement': 'right',
|
||||||
|
|
|
||||||
|
|
@ -1,97 +0,0 @@
|
||||||
{
|
|
||||||
'critical': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'generic': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': [
|
|
||||||
'in_errors',
|
|
||||||
'out_errors',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'difference',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
'mikrotik': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_detailed',
|
|
||||||
'_field': [
|
|
||||||
'rx_fcs_errors',
|
|
||||||
'rx_align_errors',
|
|
||||||
'rx_code_errors',
|
|
||||||
'rx_carrier_errors',
|
|
||||||
'rx_jabber',
|
|
||||||
'rx_fragment',
|
|
||||||
'rx_length_errors',
|
|
||||||
'tx_late_collisions',
|
|
||||||
'tx_excessive_collisions',
|
|
||||||
'link_downs',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'difference',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'cps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.name} ${__field.labels.ifName} ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'table',
|
|
||||||
'placement': 'right',
|
|
||||||
'calcs': [
|
|
||||||
'max',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'warning': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'generic': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': [
|
|
||||||
'in_discards',
|
|
||||||
'out_discards',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'difference',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
'mikrotik': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_detailed',
|
|
||||||
'_field': [
|
|
||||||
'rx_too_short',
|
|
||||||
'rx_too_long',
|
|
||||||
'rx_drop',
|
|
||||||
'tx_drop',
|
|
||||||
'rx_pause',
|
|
||||||
'tx_pause',
|
|
||||||
'tx_pause_honored',
|
|
||||||
'tx_collisions',
|
|
||||||
'tx_total_collisions',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'difference',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'cps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.name} ${__field.labels.ifName} ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'table',
|
|
||||||
'placement': 'right',
|
|
||||||
'calcs': [
|
|
||||||
'max',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,107 +0,0 @@
|
||||||
{
|
|
||||||
'temperature': {
|
|
||||||
'stacked': False,
|
|
||||||
'queries': {
|
|
||||||
'temp': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_health',
|
|
||||||
'sensor': [
|
|
||||||
'temperature',
|
|
||||||
'cpu-temperature',
|
|
||||||
'switch-temperature',
|
|
||||||
'board-temperature1',
|
|
||||||
'sfp-temperature',
|
|
||||||
],
|
|
||||||
'_field': [
|
|
||||||
'value',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'celsius',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.sensor}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'fan': {
|
|
||||||
'stacked': False,
|
|
||||||
'queries': {
|
|
||||||
'temp': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_health',
|
|
||||||
'sensor': [
|
|
||||||
'fan1-speed',
|
|
||||||
'fan2-speed',
|
|
||||||
],
|
|
||||||
'_field': [
|
|
||||||
'value',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'rpm',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.sensor}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'psu_current': {
|
|
||||||
'stacked': False,
|
|
||||||
'queries': {
|
|
||||||
'temp': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_health',
|
|
||||||
'sensor': [
|
|
||||||
'psu1-current',
|
|
||||||
'psu2-current',
|
|
||||||
],
|
|
||||||
'_field': [
|
|
||||||
'value',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'multiply': 0.1,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'ampere',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.sensor}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'psu_voltage': {
|
|
||||||
'stacked': False,
|
|
||||||
'queries': {
|
|
||||||
'temp': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'hw',
|
|
||||||
'sensor': [
|
|
||||||
'psu1-voltage',
|
|
||||||
'psu2-voltage',
|
|
||||||
],
|
|
||||||
'_field': [
|
|
||||||
'value',
|
|
||||||
],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'multiply': 0.1,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'volt',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.sensor}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
{
|
|
||||||
'in': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'in': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': [
|
|
||||||
'in_ucast_pkts',
|
|
||||||
'in_mcast_pkts',
|
|
||||||
'in_bcast_pkts',
|
|
||||||
],
|
|
||||||
'ifType': [6],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'derivative',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'pps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'out': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'out': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': [
|
|
||||||
'out_ucast_pkts',
|
|
||||||
'out_mcast_pkts',
|
|
||||||
'out_bcast_pkts',
|
|
||||||
],
|
|
||||||
'ifType': [6],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'derivative',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'pps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
{
|
|
||||||
'power': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'power': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_poe',
|
|
||||||
'_field': ['power'],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'mean',
|
|
||||||
'multiply': 0.1,
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'watt',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'current': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'voltage': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_poe',
|
|
||||||
'_field': ['current'],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'mean',
|
|
||||||
'multiply': 0.1,
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'ampere',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'voltage': {
|
|
||||||
'stacked': False,
|
|
||||||
'queries': {
|
|
||||||
'voltage': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_poe',
|
|
||||||
'_field': ['voltage'],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'mean',
|
|
||||||
'multiply': 0.1,
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'volt',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
{
|
|
||||||
'in': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'in': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': ['in_octets'],
|
|
||||||
'ifType': [6],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'derivative',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'bps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'out': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'out': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'mikrotik_interface_generic',
|
|
||||||
'_field': ['out_octets'],
|
|
||||||
'ifType': [6],
|
|
||||||
'operating_system': 'routeros',
|
|
||||||
},
|
|
||||||
'function': 'derivative',
|
|
||||||
'over': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'bps',
|
|
||||||
'tooltip': 'multi',
|
|
||||||
'display_name': '${__field.labels.ifName} - ${__field.labels.ifAlias}',
|
|
||||||
'legend': {
|
|
||||||
'displayMode': 'hidden',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
'function': 'mean',
|
'function': 'mean',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.device}',
|
'display_name': '__field.labels.device',
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'unit': 'celsius',
|
'unit': 'celsius',
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
'function': 'last',
|
'function': 'last',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.device}',
|
'display_name': '__field.labels.device',
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
},
|
},
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'display_name': '${__field.labels.device} ${__field.name}',
|
'display_name': '__field.labels.device} ${__field.name',
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'tooltip': 'multi',
|
'tooltip': 'multi',
|
||||||
'legend': {
|
'legend': {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1 @@
|
||||||
{
|
{}
|
||||||
'metadata': {
|
|
||||||
'nftables': {
|
|
||||||
'input': {
|
|
||||||
'udp dport 161 accept',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
|
||||||
18
groups/os/debian-11.py
Normal file
18
groups/os/debian-11.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
'supergroups': [
|
||||||
|
'debian',
|
||||||
|
],
|
||||||
|
'bundles': [
|
||||||
|
'systemd-networkd',
|
||||||
|
],
|
||||||
|
'metadata': {
|
||||||
|
'php': {
|
||||||
|
'version': '7.4',
|
||||||
|
},
|
||||||
|
'postgresql': {
|
||||||
|
'version': '13',
|
||||||
|
},
|
||||||
|
'os_codename': 'bullseye',
|
||||||
|
},
|
||||||
|
'os_version': (11,),
|
||||||
|
}
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
{
|
|
||||||
'metadata': {
|
|
||||||
'apt': {
|
|
||||||
'sources': {
|
|
||||||
'debian': {
|
|
||||||
'components': {
|
|
||||||
'non-free-firmware',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'debian-security': {
|
|
||||||
'components': {
|
|
||||||
'non-free-firmware',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'php': {
|
|
||||||
'version': '8.2',
|
|
||||||
},
|
|
||||||
'postgresql': {
|
|
||||||
'version': '15',
|
|
||||||
},
|
|
||||||
'os_codename': 'bookworm',
|
|
||||||
},
|
|
||||||
'os_version': (12,),
|
|
||||||
}
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
{
|
|
||||||
'supergroups': [
|
|
||||||
'debian',
|
|
||||||
'debian-13-common',
|
|
||||||
],
|
|
||||||
'bundles': [
|
|
||||||
'systemd-networkd',
|
|
||||||
],
|
|
||||||
'metadata': {
|
|
||||||
'apt': {
|
|
||||||
'sources': {
|
|
||||||
'debian': {
|
|
||||||
'components': {
|
|
||||||
'non-free-firmware',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'debian-security': {
|
|
||||||
'components': {
|
|
||||||
'non-free-firmware',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'php': {
|
|
||||||
'version': '8.4',
|
|
||||||
},
|
|
||||||
'postgresql': {
|
|
||||||
'version': '17',
|
|
||||||
},
|
|
||||||
'os_codename': 'trixie',
|
|
||||||
},
|
|
||||||
'os_version': (13,),
|
|
||||||
}
|
|
||||||
|
|
@ -9,13 +9,6 @@
|
||||||
'routeros',
|
'routeros',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'grafana_rows': {
|
|
||||||
'routeros_errors',
|
|
||||||
'routeros_throughput',
|
|
||||||
'routeros_poe',
|
|
||||||
'routeros_packets',
|
|
||||||
'routeros_health',
|
|
||||||
},
|
|
||||||
'routeros': {
|
'routeros': {
|
||||||
'gateway': '10.0.0.1',
|
'gateway': '10.0.0.1',
|
||||||
'bridge_priority': '0x8000',
|
'bridge_priority': '0x8000',
|
||||||
|
|
@ -25,15 +18,10 @@
|
||||||
'iot': '2',
|
'iot': '2',
|
||||||
'internet': '3',
|
'internet': '3',
|
||||||
'proxmox': '4',
|
'proxmox': '4',
|
||||||
'wokeonlan': '5',
|
|
||||||
'gast': '9',
|
'gast': '9',
|
||||||
'rolf': '51',
|
'rolf': '51',
|
||||||
},
|
},
|
||||||
'vlan_groups': {
|
'vlan_groups': {
|
||||||
'home': {
|
|
||||||
'untagged': 'home',
|
|
||||||
'tagged': set(),
|
|
||||||
},
|
|
||||||
'infra': {
|
'infra': {
|
||||||
'untagged': 'home',
|
'untagged': 'home',
|
||||||
'tagged': {
|
'tagged': {
|
||||||
|
|
@ -42,23 +30,15 @@
|
||||||
'proxmox',
|
'proxmox',
|
||||||
'gast',
|
'gast',
|
||||||
'rolf',
|
'rolf',
|
||||||
'wokeonlan',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'internet': {
|
'internet': {
|
||||||
'untagged': 'internet',
|
'untagged': 'internet',
|
||||||
'tagged': set(),
|
'tagged': set(),
|
||||||
},
|
},
|
||||||
'wokeonlan': {
|
|
||||||
'untagged': 'wokeonlan',
|
|
||||||
'tagged': set(),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
'vlan_ports': {},
|
'vlan_ports': {},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
|
||||||
'influxdb_node': 'home.server',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
'os': 'routeros',
|
'os': 'routeros',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue