feat(ansible): add VPN node configuration automation

This commit is contained in:
2026-06-10 12:36:27 +02:00
parent 89efd6430d
commit 5e6d4c1479
32 changed files with 526 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
TENANT="${common_name#*@}"
VLAN_ID=$(( ( $(echo -n "$TENANT" | cksum | cut -d' ' -f1) % 3000 ) + 100 ))
if [ -n "$VLAN_ID" ]; then
echo "vlan-pvid $VLAN_ID" >> "$client_connect_config_file"
fi
exit 0