Private
Public Access
2
0

First version in Galaxy

This commit is contained in:
2026-01-21 15:29:56 +03:00
parent ebe4f15c0f
commit b923810fe3
79 changed files with 235 additions and 299 deletions

View File

@@ -0,0 +1,5 @@
# BYOW - Build Your Own WAF
A WAF _à la carte_.
## OVH Log Data Platform

View File

@@ -0,0 +1,6 @@
# Required
ovh_ldp_token: null
ovh_ldp_cluster: null
# Defaults
ovh_ldp_tls_syslog_port: 6514

View File

@@ -0,0 +1,5 @@
- name: Restart syslog-ng
ansible.builtin.service:
name: "syslog-ng"
state: "restarted"
daemon_reload: true

View File

@@ -0,0 +1,13 @@
- name: Install syslog-ng
ansible.builtin.apt:
name:
- "syslog-ng"
- "ca-certificates"
- name: Generate syslog-ng config file for OVH LDP
ansible.builtin.template:
src: "templates/ldp-ovh.conf"
dest: "/etc/syslog-ng/conf.d/ldp-ovh.conf"
mode: "0640"
notify:
- "Restart syslog-ng"

View File

@@ -0,0 +1,22 @@
rewrite ovh-token {
set("{{ ovh_ldp_token }}", value(".SDATA.token@29084.X-OVH-TOKEN"));
};
destination ovhPaaSLogs {
network("{{ ovh_ldp_cluster }}"
port({{ ovh_ldp_tls_syslog_port }})
transport("tls")
flags(syslog-protocol)
ts_format("iso")
frac-digits(6)
tls(peer-verify("required-trusted") ca_dir("/etc/ssl/certs/"))
keep-alive(yes)
so_keepalive(yes)
);
};
log {
source(s_src);
rewrite(ovh-token);
destination(ovhPaaSLogs);
};