move from data disk to virtiofs share

This commit is contained in:
Pim Kunis 2023-04-26 15:13:25 +02:00
parent f7c4660584
commit 1f0c6e25ec
4 changed files with 4 additions and 5 deletions

View file

@ -36,7 +36,7 @@ server=/pim.kunis.nl/192.168.30.7
log-dhcp log-dhcp
log-queries log-queries
# Resolve dns.dmz to addresses on main NIC # Resolve dns.dmz to addresses on main NIC
interface-name=hermes.dmz,ens3 interface-name=hermes.dmz,ens4
# Non-conventional port because we also run nsd on this machine # Non-conventional port because we also run nsd on this machine
port=5353 port=5353
# Override addresses of name servers # Override addresses of name servers

View file

@ -1,5 +1,5 @@
server: server:
ip-address: ens3 ip-address: ens4
port: 53 port: 53
server-count: 1 server-count: 1
verbosity: 1 verbosity: 1

View file

@ -12,7 +12,7 @@ terraform {
} }
provider "libvirt" { provider "libvirt" {
uri = "qemu+ssh://root@atlas.lan/system" uri = "qemu+ssh://root@atlas.hyp/system"
} }
resource "libvirt_volume" "data" { resource "libvirt_volume" "data" {

View file

@ -15,14 +15,13 @@ terraform {
} }
provider "libvirt" { provider "libvirt" {
uri = "qemu+ssh://root@atlas.lan/system" uri = "qemu+ssh://root@atlas.hyp/system"
} }
module "vm" { module "vm" {
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian" source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
name = "hermes" name = "hermes"
domain_name = "tf-hermes" domain_name = "tf-hermes"
data_disk = "/kvm/data/hermes-data"
fixed_address = "192.168.30.7/24" fixed_address = "192.168.30.7/24"
mac = "CA:FE:C0:FF:EE:07" mac = "CA:FE:C0:FF:EE:07"
fixed_dns = "192.168.30.1" fixed_dns = "192.168.30.1"