summaryrefslogtreecommitdiffstats
path: root/roles/pve-network/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-03 21:32:24 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-03 21:46:32 +0200
commit005c49353a6a71954e6a975a43989ded1786022a (patch)
tree81881feb4dd3726d351f67cdabe7231b24d25383 /roles/pve-network/meta
parentcc92c206fce389af2260eecc54ca9f2f97bbb0a0 (diff)
Refactor pve and add pve-network role to configure the pve network
Diffstat (limited to 'roles/pve-network/meta')
-rw-r--r--roles/pve-network/meta/argument_specs.yml32
-rw-r--r--roles/pve-network/meta/main.yml13
2 files changed, 45 insertions, 0 deletions
diff --git a/roles/pve-network/meta/argument_specs.yml b/roles/pve-network/meta/argument_specs.yml
new file mode 100644
index 00000000..6f93a13b
--- /dev/null
+++ b/roles/pve-network/meta/argument_specs.yml
@@ -0,0 +1,32 @@
+---
+argument_specs:
+ main:
+ options:
+ pve_network_interface:
+ type: "str"
+ description: "Physical ethernet interface to add as bridge port"
+ default: "enp0s25"
+ network_ipv4_address:
+ type: "str"
+ description: "Static IPv4 address for vmbr0"
+ required: true
+ network_ipv4_prefix:
+ type: "int"
+ description: "IPv4 prefix length"
+ default: 24
+ network_ipv4_gateway:
+ type: "str"
+ description: "IPv4 default gateway"
+ required: true
+ network_ipv4_dns:
+ type: "str"
+ description: "IPv4 DNS server"
+ network_ipv6_address:
+ type: "str"
+ description: "Static IPv6 address for vmbr0 (optional)"
+ network_ipv6_gateway:
+ type: "str"
+ description: "IPv6 default gateway (required if network_ipv6_address is set)"
+ network_ipv6_dns:
+ type: "str"
+ description: "IPv6 DNS server"
diff --git a/roles/pve-network/meta/main.yml b/roles/pve-network/meta/main.yml
new file mode 100644
index 00000000..e7c9c044
--- /dev/null
+++ b/roles/pve-network/meta/main.yml
@@ -0,0 +1,13 @@
+---
+dependencies:
+ - role: "network"
+ - role: "pve"
+galaxy_info:
+ author: "a14m"
+ description: "Configure vmbr0 bridge on Proxmox VE via NetworkManager"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "Debian"
+ versions:
+ - "bookworm"