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
|
|
@ -9,6 +9,9 @@ case "$ARG_DEST" in
|
||||||
echo ugh >&2
|
echo ugh >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
/etc/network/interfaces*)
|
||||||
|
ARG_IS_INTERFACES=1
|
||||||
|
;;
|
||||||
/etc/sysctl.d/*.conf)
|
/etc/sysctl.d/*.conf)
|
||||||
ARG_IS_SYSCTL=1
|
ARG_IS_SYSCTL=1
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
3
systems/reisen/net.50-vmbr0-ipv6.conf
Normal file
3
systems/reisen/net.50-vmbr0-ipv6.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
iface vmbr0 inet6 auto
|
||||||
|
accept_ra 1
|
||||||
|
autoconf 1
|
||||||
|
|
@ -7,14 +7,16 @@ locals {
|
||||||
port = var.proxmox_reisen_ssh_port
|
port = var.proxmox_reisen_ssh_port
|
||||||
}
|
}
|
||||||
|
|
||||||
proxmox_reisen_sysctl_net = file("${path.root}/../systems/reisen/sysctl.50-net.conf")
|
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_net_vmbr0_ipv6 = file("${path.root}/../systems/reisen/net.50-vmbr0-ipv6.conf")
|
||||||
proxmox_reisen_udev_z2m = file("${path.root}/../systems/reisen/udev.90-z2m.rules")
|
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" {
|
resource "terraform_data" "proxmox_reisen_etc" {
|
||||||
triggers_replace = [
|
triggers_replace = [
|
||||||
local.proxmox_reisen_sysctl_net,
|
local.proxmox_reisen_sysctl_net,
|
||||||
|
local.proxmox_reisen_net_vmbr0_ipv6,
|
||||||
local.proxmox_reisen_udev_dri,
|
local.proxmox_reisen_udev_dri,
|
||||||
local.proxmox_reisen_udev_z2m,
|
local.proxmox_reisen_udev_z2m,
|
||||||
]
|
]
|
||||||
|
|
@ -29,6 +31,7 @@ resource "terraform_data" "proxmox_reisen_etc" {
|
||||||
|
|
||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
inline = [
|
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/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-dri.rules ${base64encode(local.proxmox_reisen_udev_dri)}",
|
||||||
"putfile64 /etc/udev/rules.d/90-z2m.rules ${base64encode(local.proxmox_reisen_udev_z2m)}",
|
"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