2023-11-15 16:43:00 +05:30
|
|
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
|
|
|
|
output "mcaptcha_mcaptcha_ip" {
|
|
|
|
value = local.mcaptcha_vm_map
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "local_file" "hosts_yml" {
|
|
|
|
content = templatefile("./templates/hosts.yml.tftpl",
|
|
|
|
{
|
|
|
|
mcaptcha_vms_ips = local.mcaptcha_vm_ips,
|
|
|
|
mcaptcha_vms_names = local.mcaptcha_vm_names,
|
2023-12-12 19:34:05 +05:30
|
|
|
mcaptcha_vms = local.mcaptcha_vm_map
|
2023-11-15 16:43:00 +05:30
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
filename = "hosts.ini"
|
|
|
|
}
|