diff --git a/systems/aya/nixos.nix b/systems/aya/nixos.nix index d6602bb9..ec9d5196 100644 --- a/systems/aya/nixos.nix +++ b/systems/aya/nixos.nix @@ -20,6 +20,8 @@ MACAddress = "BC:24:11:C4:66:A9"; Type = "ether"; }; + address = ["10.1.1.47/24"]; + gateway = ["10.1.1.1"]; DHCP = "no"; }; diff --git a/tf/proxmox_vms.tf b/tf/proxmox_vms.tf index 02eccf8e..412026f4 100644 --- a/tf/proxmox_vms.tf +++ b/tf/proxmox_vms.tf @@ -100,7 +100,7 @@ resource "proxmox_virtual_environment_container" "reimu" { started = false lifecycle { - ignore_changes = [started, unprivileged, description, operating_system[0].template_file_id] + ignore_changes = [started, unprivileged, description, initialization[0].dns, operating_system[0].template_file_id] } } @@ -138,6 +138,10 @@ resource "proxmox_virtual_environment_container" "aya" { ipv6 { address = "auto" } + ipv4 { + address = "10.1.1.47/24" + gateway = "10.1.1.1" + } } } @@ -168,7 +172,7 @@ resource "proxmox_virtual_environment_container" "aya" { started = false lifecycle { - ignore_changes = [started, description, operating_system[0].template_file_id] + ignore_changes = [started, description, initialization[0].dns, operating_system[0].template_file_id] } }