Files
terraform/juju/home-maas-focal/infra/31-infra-server.tf
Arif Ali 1ca320e672 update the focal tf templates
* Now with cross-model relations
* Added infra and controller model
* Fixed lma model
* Updated variables and linking to model juju_model resource instead
2024-11-19 22:25:21 +00:00

20 lines
391 B
HCL

resource "juju_application" "infra-server" {
name = "infra-server"
model = juju_model.infra.name
charm {
name = "ubuntu"
channel = var.ubuntu_channel
revision = var.ubuntu_revision
base = "ubuntu@22.04"
}
units = length(var.infra-machines)
placement = "${join(",", sort([
for res in juju_machine.infra_machines :
res.machine_id
]))}"
}