summaryrefslogtreecommitdiffstats
path: root/roles/gateway/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-12 00:17:35 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-12 00:17:35 +0200
commit4a812a999a79dae501db62e0eeb9e33e34282b83 (patch)
tree7843b04b7f6be1eac6d5d4e421b38a5e12bb4fec /roles/gateway/meta
parentd8bd623f3a86e7f472cd034f627a86dc8ccf4955 (diff)
Implement the gateway role (replacing old wireguard-gateway)
Diffstat (limited to 'roles/gateway/meta')
-rw-r--r--roles/gateway/meta/argument_specs.yml20
-rw-r--r--roles/gateway/meta/main.yml19
2 files changed, 39 insertions, 0 deletions
diff --git a/roles/gateway/meta/argument_specs.yml b/roles/gateway/meta/argument_specs.yml
new file mode 100644
index 00000000..0312bef2
--- /dev/null
+++ b/roles/gateway/meta/argument_specs.yml
@@ -0,0 +1,20 @@
+---
+argument_specs:
+ main:
+ author: "a14m"
+ description: "Configure system as intelligent network gateway with dynamic VPN routing"
+ options:
+ gateway_enabled:
+ description: "Enable gateway functionality"
+ type: "bool"
+ default: false
+ required: false
+ gateway_local_ipv4_subnet:
+ description: "Local subnet CIDR for NAT and routing rules (e.g., '192.168.178.0/24')"
+ type: "str"
+ required: true
+ gateway_router_interface:
+ description: "Default route interface for direct routing mode"
+ type: "str"
+ default: "{{ ansible_default_ipv4.interface }}"
+ required: false
diff --git a/roles/gateway/meta/main.yml b/roles/gateway/meta/main.yml
new file mode 100644
index 00000000..29482365
--- /dev/null
+++ b/roles/gateway/meta/main.yml
@@ -0,0 +1,19 @@
+---
+dependencies:
+ - role: "systemd"
+galaxy_info:
+ author: "a14m"
+ description: "Configure system as network gateway (with VPN forwarding capablilities)"
+ company: "kartoffeln.work GmbH."
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
+ - name: "Ubuntu"
+ versions:
+ - "noble"
+ - name: "Debian"
+ versions:
+ - "bookworm"