add ability to change domain name

This commit is contained in:
Pim Kunis 2023-04-12 15:17:08 +02:00
parent 3591f3cb63
commit c6d575b95c
2 changed files with 6 additions and 0 deletions

1
debian/main.tf vendored
View file

@ -13,6 +13,7 @@ module "invariants" {
module "tf_debian_vm" {
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
name = var.name
domain_name = var.domain_name
admin_authorized_keys = coalesce(var.admin_authorized_keys, module.invariants.admin_authorized_keys)
insecure_password = var.insecure_password
use_host_cert = var.use_host_cert

5
debian/variables.tf vendored
View file

@ -2,6 +2,11 @@ variable "name" {
type = string
}
variable "domain_name" {
type = string
default = null
}
variable "admin_authorized_keys" {
type = list(string)
default = null