feat(ansible): add VPN node configuration automation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user