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

21 lines
492 B
Terraform
Raw Permalink Normal View History

resource "juju_model" "openstack" {
name = var.openstack-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"
}
}