This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/terraform/main.tf

78 lines
1.7 KiB
Terraform
Raw Normal View History

2023-05-02 09:51:22 +00:00
terraform {
backend "pg" {
schema_name = "shoarma"
conn_str = "postgres://terraform@10.42.0.1/terraform_state"
}
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
}
}
provider "libvirt" {
uri = "qemu+ssh://root@atlas.hyp/system"
}
2023-05-04 10:29:29 +00:00
provider "libvirt" {
alias = "jefke"
uri = "qemu+ssh://root@jefke.hyp/system"
}
2023-05-02 09:51:22 +00:00
module "manager" {
2023-05-08 13:54:42 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
2023-05-02 09:51:22 +00:00
name = "maestro"
domain_name = "tf-maestro"
memory = 1024
2023-05-02 14:03:00 +00:00
mac = "CA:FE:C0:FF:EE:08"
2023-05-04 10:29:29 +00:00
hypervisor_host = "atlas.hyp"
providers = {
libvirt = libvirt
}
}
module "swarmpub1" {
2023-05-08 13:54:42 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
2023-05-04 10:29:29 +00:00
name = "swarmpub1"
domain_name = "tf-swarmpub1"
memory = 1024 * 5
hypervisor_host = "atlas.hyp"
providers = {
libvirt = libvirt
}
2023-05-02 09:51:22 +00:00
}
2023-05-04 10:29:29 +00:00
module "swarmpriv1" {
2023-05-08 13:54:42 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
2023-05-04 10:29:29 +00:00
name = "swarmpriv1"
domain_name = "tf-swarmpriv1"
memory = 1024 * 5
hypervisor_host = "atlas.hyp"
providers = {
libvirt = libvirt
2023-05-02 09:51:22 +00:00
}
2023-05-04 10:29:29 +00:00
}
module "swarmpub2" {
2023-05-08 13:54:42 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
2023-05-04 10:29:29 +00:00
name = "swarmpub2"
domain_name = "tf-swarmpub2"
2023-05-02 09:51:22 +00:00
memory = 1024 * 3
2023-05-04 10:29:29 +00:00
hypervisor_host = "jefke.hyp"
providers = {
libvirt = libvirt.jefke
}
}
module "swarmpriv2" {
2023-05-08 13:54:42 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
2023-05-04 10:29:29 +00:00
name = "swarmpriv2"
domain_name = "tf-swarmpriv2"
memory = 1024 * 3
hypervisor_host = "jefke.hyp"
providers = {
libvirt = libvirt.jefke
}
2023-05-02 09:51:22 +00:00
}