terraform/juju/home-maas-jammy/additional/06-ceilometer-agent.tf
2024-06-25 09:36:05 +01:00

47 lines
829 B
HCL

resource "juju_application" "ceilometer-agent" {
name = "ceilometer-agent"
model = var.model-name
charm {
name = "ceilometer-agent"
channel = var.openstack-channel
}
units = 0
config = {
use-internal-endpoints = "true"
}
}
resource "juju_integration" "compute-ceilometer" {
model = var.model-name
application {
name = juju_application.nova-compute-kvm.name
endpoint = "nova-ceilometer"
}
application {
name = juju_application.ceilometer-agent.name
endpoint = "nova-ceilometer"
}
}
resource "juju_integration" "ceilometer-agent-rmq" {
model = var.model-name
application {
name = juju_application.ceilometer-agent.name
endpoint = "amqp"
}
application {
name = juju_application.rabbitmq-server.name
endpoint = "amqp"
}
}