Some checks failed
Check meta / check_meta (pull_request) Successful in 29s
Check meta / check_dns (pull_request) Successful in 1m6s
build configuration / build_web02 (pull_request) Successful in 1m22s
build configuration / build_storage01 (pull_request) Successful in 1m54s
build configuration / build_rescue01 (pull_request) Successful in 1m18s
build configuration / build_geo01 (pull_request) Successful in 1m14s
build configuration / build_geo02 (pull_request) Successful in 1m15s
lint / check (pull_request) Successful in 25s
build configuration / build_bridge01 (pull_request) Successful in 1m17s
build configuration / push_to_cache_web02 (pull_request) Failing after 1m20s
build configuration / push_to_cache_storage01 (pull_request) Failing after 1m21s
build configuration / build_compute01 (pull_request) Successful in 5m3s
build configuration / push_to_cache_rescue01 (pull_request) Failing after 1m22s
build configuration / build_vault01 (pull_request) Successful in 5m27s
build configuration / push_to_cache_geo01 (pull_request) Failing after 1m11s
build configuration / build_web01 (pull_request) Successful in 5m47s
build configuration / push_to_cache_compute01 (pull_request) Failing after 1m31s
build configuration / push_to_cache_geo02 (pull_request) Failing after 2m4s
build configuration / push_to_cache_bridge01 (pull_request) Failing after 1m54s
build configuration / push_to_cache_web01 (pull_request) Failing after 1m53s
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
ulogd = {
|
|
enable = true;
|
|
logLevel = 5;
|
|
settings = {
|
|
global = {
|
|
logfile = "/var/log/ulogd.log";
|
|
stack = [ "ct1:NFCT,ip2str1:IP2STR,pgsql1:PGSQL" ];
|
|
};
|
|
ct1 = { };
|
|
pgsql1 = {
|
|
db = "ulogd";
|
|
user = "ulogd";
|
|
table = "ulog2_ct";
|
|
procedure = "INSERT_CT";
|
|
};
|
|
};
|
|
};
|
|
postgresql = {
|
|
enable = true;
|
|
identMap = ''
|
|
ulogd-map root ulogd
|
|
'';
|
|
authentication = ''
|
|
local ulogd ulogd peer map=ulogd-map
|
|
'';
|
|
|
|
ensureUsers = [
|
|
{
|
|
name = "ulogd";
|
|
ensureDBOwnership = true;
|
|
}
|
|
];
|
|
ensureDatabases = [ "ulogd" ];
|
|
};
|
|
};
|
|
systemd.services.ulogd = {
|
|
serviceConfig.StateDirectory = "ulogd";
|
|
requires = [ "postgresql.service" ];
|
|
after = [ "postgresql.service" ];
|
|
path = [ config.services.postgresql.package ];
|
|
preStart = lib.mkAfter ''
|
|
if ! test -e "/var/lib/ulogd/.initialized"; then
|
|
psql -f "${pkgs.ulogd.doc}/share/doc/ulogd-pgsql/pgsql-ulogd2.sql" -d ulogd -U ulogd
|
|
touch "/var/lib/ulogd/.initialized"
|
|
fi
|
|
'';
|
|
};
|
|
}
|