aboutsummaryrefslogtreecommitdiffstats
path: root/opentofu/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'opentofu/main.tf')
-rw-r--r--opentofu/main.tf33
1 files changed, 30 insertions, 3 deletions
diff --git a/opentofu/main.tf b/opentofu/main.tf
index 95ff76b..f3299d8 100644
--- a/opentofu/main.tf
+++ b/opentofu/main.tf
@@ -39,7 +39,8 @@ resource "proxmox_virtual_environment_vm" "docker_server" {
initialization {
ip_config {
ipv4 {
- address = "192.168.1.150/24,gw=192.168.1.1"
+ address = "192.168.1.150/24"
+ gateway = "192.168.1.1"
}
}
@@ -94,7 +95,8 @@ resource "proxmox_virtual_environment_vm" "k3s_master" {
initialization {
ip_config {
ipv4 {
- address = "192.168.1.14${count.index}/24,gw=192.168.1.1"
+ address = "192.168.1.14${count.index}/24"
+ gateway = "192.168.1.1"
}
}
@@ -147,7 +149,8 @@ resource "proxmox_virtual_environment_vm" "k3s_worker" {
initialization {
ip_config {
ipv4 {
- address = "192.168.1.13${count.index}/24,gw=192.168.1.1"
+ address = "192.168.1.13${count.index}/24"
+ gateway = "192.168.1.1"
}
}
@@ -157,3 +160,27 @@ resource "proxmox_virtual_environment_vm" "k3s_worker" {
}
}
}
+
+# OVH Openstack
+## Simple Debian Node
+#resource "openstack_compute_keypair_v2" "keypair" {
+# name = "tmv-keypair"
+# public_key = var.ssh_public_key
+#}
+#
+#resource "openstack_compute_instance_v2" "debian13-uefi-test" {
+# name = "debian13-uefi-test"
+# image_id = "e9e08190-20ce-49f6-9d72-e76ec22de82e" # Debian 13 UEFI
+# flavor_id = "dc3fe9e7-e374-4ad8-b200-fa3bdf45069f" # d2-2
+# key_pair = "tmv-keypair"
+#
+# security_groups = ["default"]
+#
+# metadata = {
+# tags = "debian,vps,docker"
+# }
+#
+# network {
+# name = "Ext-Net"
+# }
+#}