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

21 lines
483 B
Terraform
Raw Permalink Normal View History

2024-06-25 08:36:05 +00:00
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"
}
}