26 lines
567 B
Terraform
26 lines
567 B
Terraform
|
terraform {
|
||
|
backend "pg" {
|
||
|
schema_name = "max"
|
||
|
conn_str = "postgres://terraform@10.42.0.1/terraform_state"
|
||
|
}
|
||
|
|
||
|
required_providers {
|
||
|
libvirt = {
|
||
|
source = "dmacvicar/libvirt"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
provider "libvirt" {
|
||
|
uri = "qemu+ssh://root@atlas.lan/system"
|
||
|
}
|
||
|
|
||
|
module "tf-datatest" {
|
||
|
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
|
||
|
name = "max2"
|
||
|
domain_name = "tf-max"
|
||
|
data_disk = "/kvm/data/max-data"
|
||
|
fixed_address = "192.168.30.66/24"
|
||
|
ansible_command = "ansible-playbook max.yml"
|
||
|
}
|