terraform/juju/home-maas/01-cloud.tf

21 lines
482 B
Terraform
Raw Normal View History

resource "juju_model" "openstack" {
name = var.model-name
cloud {
2024-05-12 13:43:53 +00:00
name = var.cloud
}
config = {
cloudinit-userdata = file("user-data.yaml")
2024-05-12 13:43:53 +00:00
apt-mirror = "http://${var.apt_mirror}/archive.ubuntu.com/ubuntu"
2024-05-13 08:25:36 +00:00
lxd-snap-channel = var.lxd-snap-channel
2024-05-12 13:43:53 +00:00
container-image-metadata-url = "http://${var.apt_mirror}/lxd/"
container-image-stream = "released"
2024-05-12 13:43:53 +00:00
agent-metadata-url = "http://${var.apt_mirror}/juju/tools/"
agent-stream = "released"
}
}