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.
hermes/terraform/main.tf

34 lines
839 B
Terraform
Raw Normal View History

2023-03-11 16:10:21 +00:00
terraform {
backend "pg" {
schema_name = "dmz_dns"
}
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.7.1" # https://github.com/dmacvicar/terraform-provider-libvirt/issues/1040
2023-03-11 16:10:21 +00:00
}
template = {
source = "hashicorp/template"
}
}
}
provider "libvirt" {
# https://libvirt.org/uri.html#libssh-and-libssh2-transport
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
2023-03-11 16:10:21 +00:00
}
module "vm" {
2023-07-05 21:54:27 +00:00
source = "git::https://git.kun.is/home/tf-modules.git//debian"
name = "hermes"
2023-04-13 16:06:53 +00:00
domain_name = "tf-hermes"
fixed_address = "192.168.30.7/24"
mac = "CA:FE:C0:FF:EE:07"
2023-04-17 07:39:16 +00:00
fixed_dns = "192.168.30.1"
data_disk = "/kvm/data/hermes-data"
insecure_password = true
# hypervisor_host = "atlas.hyp"
2023-03-11 16:10:21 +00:00
}