2023-12-15 16:35:17 +00:00
|
|
|
resource "juju_application" "controller-server" {
|
|
|
|
name = "controller-server"
|
|
|
|
|
|
|
|
model = juju_model.cpe-focal.name
|
|
|
|
|
|
|
|
charm {
|
|
|
|
name = "ubuntu"
|
|
|
|
channel = "latest/stable"
|
|
|
|
revision = "24"
|
2024-05-03 09:09:36 +00:00
|
|
|
base = "ubuntu@20.04"
|
2023-12-15 16:35:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2024-05-02 20:44:41 +00:00
|
|
|
units = 0
|
|
|
|
|
2023-12-15 16:35:17 +00:00
|
|
|
config = {
|
|
|
|
governor = "performance"
|
|
|
|
enable-pti = "on"
|
|
|
|
update-grub = "true"
|
|
|
|
enable-tsx = "true"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "juju_integration" "control-sysconfig" {
|
|
|
|
|
|
|
|
model = juju_model.cpe-focal.name
|
|
|
|
|
|
|
|
application {
|
2024-05-03 09:09:36 +00:00
|
|
|
name = juju_application.sysconfig-control.name
|
2023-12-15 16:35:17 +00:00
|
|
|
endpoint = "juju-info"
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2024-05-03 09:09:36 +00:00
|
|
|
name = juju_application.controller-server.name
|
2023-12-15 16:35:17 +00:00
|
|
|
endpoint = "juju-info"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|