update: add network configuration variables and enhance Ansible playbooks for dynamic IP handling

This commit is contained in:
jon brookes 2025-08-09 11:02:15 +01:00
parent eba7f8322d
commit ae59661982
6 changed files with 68 additions and 31 deletions

View file

@ -0,0 +1,11 @@
---
# Network configuration - can be overridden by environment variables
vm1_ip: "{{ lookup('env', 'VM1_IP') | default('192.168.56.80', true) }}"
vm2_ip: "{{ lookup('env', 'VM2_IP') | default('192.168.56.81', true) }}"
vm3_ip: "{{ lookup('env', 'VM3_IP') | default('192.168.56.82', true) }}"
workstation_ip: "{{ lookup('env', 'WORKSTATION_IP') | default('192.168.56.10', true) }}"
network_prefix: "{{ lookup('env', 'VAGRANT_NETWORK_PREFIX') | default('192.168.56', true) }}"
# K3s configuration
k3s_cluster_name: "dev-cluster"
k3s_token_file: "/opt/k3s-token"