Files
terraform/juju/home-maas-focal/infra/31-machines.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

12 lines
395 B
HCL

resource "juju_machine" "infra_machines" {
for_each = {
for index, machine in var.infra-machines:
machine.machine_id => machine
}
model = juju_model.infra.name
name = each.value.machine_id
ssh_address = join("@", ["ubuntu", each.value.name])
private_key_file = "~/.local/share/juju/ssh/juju_id_rsa"
public_key_file = "~/.local/share/juju/ssh/juju_id_rsa.pub"
}