From 4293df73e636a3bb9097d4cbe80ae8c194862f6b Mon Sep 17 00:00:00 2001 From: jerome Date: Mon, 18 Aug 2025 11:22:14 +0200 Subject: commit initial --- tofu/basic/main.tf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tofu/basic/main.tf (limited to 'tofu/basic') diff --git a/tofu/basic/main.tf b/tofu/basic/main.tf new file mode 100644 index 0000000..7da8687 --- /dev/null +++ b/tofu/basic/main.tf @@ -0,0 +1,25 @@ +terraform { + required_providers { + incus = { + source = "lxc/incus" + version = "0.3.1" + } + } +} + +provider "incus" { + # Configuration options +} + +resource "incus_instance" "test" { + name = "test" + image = "images:ubuntu/22.04" + project = "Lab" + wait_for { + type = "ipv4" + } +} + +output "instance_ip" { + value = incus_instance.test.ipv4_address +} -- cgit v1.2.3