parameterize ca script

This commit is contained in:
Pim Kunis 2023-04-24 00:07:59 +02:00
parent 0a4af15521
commit 791f5672e3
3 changed files with 6 additions and 6 deletions

3
debian/main.tf vendored
View file

@ -22,7 +22,8 @@ module "tf_debian_vm" {
disk_base_pool = coalesce(var.disk_base_pool, module.invariants.disk_base_pool) disk_base_pool = coalesce(var.disk_base_pool, module.invariants.disk_base_pool)
cloudinit_pool = coalesce(var.cloudinit_pool, module.invariants.cloudinit_pool) cloudinit_pool = coalesce(var.cloudinit_pool, module.invariants.cloudinit_pool)
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name) bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
ca_host = coalesce(var.ca_host, module.invariants.ca_host) ca_host = module.invariants.ca_host
ca_script = module.invariants.ca_script
memory = var.memory memory = var.memory
data_disk = var.data_disk data_disk = var.data_disk
fixed_address = var.fixed_address fixed_address = var.fixed_address

5
debian/variables.tf vendored
View file

@ -47,11 +47,6 @@ variable "bridge_name" {
default = null default = null
} }
variable "ca_host" {
type = string
default = null
}
variable "memory" { variable "memory" {
type = number type = number
default = 1024 default = 1024

View file

@ -28,3 +28,7 @@ output "bridge_name" {
output "ca_host" { output "ca_host" {
value = "hermes.dmz" value = "hermes.dmz"
} }
output "ca_script" {
value = "/root/ssh_ca/ssh_ca.sh"
}