From 37f03ea0c0f6aa3a4b663935b36d5690acf9a6ab Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Thu, 12 Dec 2024 11:53:10 +1000 Subject: [PATCH] Add Telemetry bootc compatibility Signed-off-by: Brendan Shephard --- roles/edpm_telemetry/tasks/configure.yml | 7 +++++++ roles/edpm_telemetry/tasks/exporter.yml | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/roles/edpm_telemetry/tasks/configure.yml b/roles/edpm_telemetry/tasks/configure.yml index aa74f52b7..9ffa19902 100644 --- a/roles/edpm_telemetry/tasks/configure.yml +++ b/roles/edpm_telemetry/tasks/configure.yml @@ -133,3 +133,10 @@ mode: "0644" owner: ceilometer group: ceilometer + +- name: Start ceilometer_agent_compute container - bootc + ansible.builtin.systemd_service: + name: edpm-compute@ceilometer_agent_compute + state: started + enabled: true + when: bootc diff --git a/roles/edpm_telemetry/tasks/exporter.yml b/roles/edpm_telemetry/tasks/exporter.yml index d125d2718..8da0ce2c7 100644 --- a/roles/edpm_telemetry/tasks/exporter.yml +++ b/roles/edpm_telemetry/tasks/exporter.yml @@ -18,9 +18,18 @@ edpm_container_manage_healthcheck_disabled: true edpm_container_manage_config_patterns: "{{ exporter }}.json" edpm_container_manage_clean_orphans: false + when: not bootc - name: Restart exporter container become: true ansible.builtin.systemd: state: restarted name: "edpm_{{ exporter }}.service" + when: not bootc + +- name: Deploy exporter container - bootc + ansible.builtin.systemd_service: + name: edpm-compute@node_exporter + state: started + enabled: true +