-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
38 lines (36 loc) · 1.06 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
resource "incus_instance" "red" {
name = "test-red-${count.index}"
count = 1
image = "images:debian/12/cloud"
ephemeral = false
profiles = ["${incus_profile.red.name}"]
project = incus_project.project.name
wait_for_network = false
config = {
"cloud-init.user-data" = file("${path.module}/cloud-init/user-data")
}
}
resource "incus_instance" "blue" {
name = "test-blue-${count.index}"
count = 1
image = "images:debian/12/cloud"
ephemeral = false
profiles = ["${incus_profile.blue.name}"]
project = incus_project.project.name
wait_for_network = false
config = {
"cloud-init.user-data" = file("${path.module}/cloud-init/user-data")
}
}
resource "incus_instance" "purple" {
name = "test-purple-${count.index}"
count = 1
image = "images:debian/12/cloud"
ephemeral = false
profiles = ["${incus_profile.purple.name}"]
project = incus_project.project.name
wait_for_network = false
config = {
"cloud-init.user-data" = file("${path.module}/cloud-init/user-data")
}
}