Pim Kunis
111bf68a0a
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
31 lines
711 B
HCL
31 lines
711 B
HCL
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
|
|
}
|
|
}
|