terraform/juju/home-maas/07-controllers.tf
Arif Ali d3b8cb1800
Add multiple plans
* Add neutron and control servers
* Update all the nova-compute related items
2023-12-15 16:35:49 +00:00

58 lines
1.2 KiB
HCL

resource "juju_application" "controller-server" {
name = "controller-server"
model = juju_model.cpe-focal.name
charm {
name = "ubuntu"
channel = "latest/stable"
revision = "24"
}
units = 6
placement = "${join(",",sort([
juju_machine.all_machines["100"].machine_id,
juju_machine.all_machines["101"].machine_id,
juju_machine.all_machines["102"].machine_id,
juju_machine.all_machines["103"].machine_id,
juju_machine.all_machines["104"].machine_id,
juju_machine.all_machines["105"].machine_id,
]))}"
}
resource "juju_application" "sysconfig-control" {
name = "sysconfig-control"
model = juju_model.cpe-focal.name
charm {
name = "sysconfig"
channel = "latest/stable"
revision = "22"
}
config = {
governor = "performance"
enable-pti = "on"
update-grub = "true"
enable-tsx = "true"
}
}
resource "juju_integration" "control-sysconfig" {
model = juju_model.cpe-focal.name
application {
name = juju_application.controller-server.name
endpoint = "juju-info"
}
application {
name = juju_application.sysconfig-control.name
endpoint = "juju-info"
}
}