mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(reisen): v6
This commit is contained in:
parent
69c2b81e3d
commit
eb1549975e
3 changed files with 12 additions and 3 deletions
|
|
@ -7,14 +7,16 @@ locals {
|
|||
port = var.proxmox_reisen_ssh_port
|
||||
}
|
||||
|
||||
proxmox_reisen_sysctl_net = file("${path.root}/../systems/reisen/sysctl.50-net.conf")
|
||||
proxmox_reisen_udev_dri = file("${path.root}/../systems/reisen/udev.90-dri.rules")
|
||||
proxmox_reisen_udev_z2m = file("${path.root}/../systems/reisen/udev.90-z2m.rules")
|
||||
proxmox_reisen_sysctl_net = file("${path.root}/../systems/reisen/sysctl.50-net.conf")
|
||||
proxmox_reisen_net_vmbr0_ipv6 = file("${path.root}/../systems/reisen/net.50-vmbr0-ipv6.conf")
|
||||
proxmox_reisen_udev_dri = file("${path.root}/../systems/reisen/udev.90-dri.rules")
|
||||
proxmox_reisen_udev_z2m = file("${path.root}/../systems/reisen/udev.90-z2m.rules")
|
||||
}
|
||||
|
||||
resource "terraform_data" "proxmox_reisen_etc" {
|
||||
triggers_replace = [
|
||||
local.proxmox_reisen_sysctl_net,
|
||||
local.proxmox_reisen_net_vmbr0_ipv6,
|
||||
local.proxmox_reisen_udev_dri,
|
||||
local.proxmox_reisen_udev_z2m,
|
||||
]
|
||||
|
|
@ -29,6 +31,7 @@ resource "terraform_data" "proxmox_reisen_etc" {
|
|||
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"putfile64 /etc/network/interfaces.d/50-vmbr0-ipv6.conf ${base64encode(local.proxmox_reisen_net_vmbr0_ipv6)}",
|
||||
"putfile64 /etc/sysctl.d/50-net.conf ${base64encode(local.proxmox_reisen_sysctl_net)}",
|
||||
"putfile64 /etc/udev/rules.d/90-dri.rules ${base64encode(local.proxmox_reisen_udev_dri)}",
|
||||
"putfile64 /etc/udev/rules.d/90-z2m.rules ${base64encode(local.proxmox_reisen_udev_z2m)}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue