replace powerdns with BIND
This commit is contained in:
parent
721623c8fc
commit
304a3bbe34
10 changed files with 79 additions and 76 deletions
31
legacy/projects/hermes/vm/main.tf
Normal file
31
legacy/projects/hermes/vm/main.tf
Normal file
|
@ -0,0 +1,31 @@
|
|||
terraform {
|
||||
backend "pg" {
|
||||
schema_name = "hermes"
|
||||
conn_str = "postgresql://terraform@jefke.hyp/terraformstates"
|
||||
}
|
||||
|
||||
required_providers {
|
||||
libvirt = {
|
||||
source = "dmacvicar/libvirt"
|
||||
version = "0.7.1" # https://github.com/dmacvicar/terraform-provider-libvirt/issues/1040
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# https://libvirt.org/uri.html#libssh-and-libssh2-transport
|
||||
provider "libvirt" {
|
||||
alias = "atlas"
|
||||
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
||||
}
|
||||
|
||||
module "hermes" {
|
||||
source = "../../terraform_modules/debian"
|
||||
name = "hermes"
|
||||
ram = 1024
|
||||
storage = 25
|
||||
mac = "CA:FE:C0:FF:EE:07"
|
||||
static_ip = "192.168.30.7/24"
|
||||
providers = {
|
||||
libvirt = libvirt.atlas
|
||||
}
|
||||
}
|
Reference in a new issue