terraform/juju/home-maas/01-cloud.tf
2024-05-12 14:43:53 +01:00

21 lines
482 B
HCL

resource "juju_model" "openstack" {
name = var.model-name
cloud {
name = var.cloud
}
config = {
cloudinit-userdata = file("user-data.yaml")
apt-mirror = "http://${var.apt_mirror}/archive.ubuntu.com/ubuntu"
lxd-snap-channel = var.lxd_snap_channel
container-image-metadata-url = "http://${var.apt_mirror}/lxd/"
container-image-stream = "released"
agent-metadata-url = "http://${var.apt_mirror}/juju/tools/"
agent-stream = "released"
}
}