From 1eb119b34ea77f6ad714478856a6b8bfaae2be09 Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 14:09:38 +0400 Subject: [PATCH 1/3] Make configuration file names consistent --- roles/ipmi_exporter/tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ipmi_exporter/tasks/configure.yml b/roles/ipmi_exporter/tasks/configure.yml index 44c2b3c..763a4dc 100644 --- a/roles/ipmi_exporter/tasks/configure.yml +++ b/roles/ipmi_exporter/tasks/configure.yml @@ -4,7 +4,7 @@ when: ipmi_exporter_local_conf is defined ansible.builtin.template: src: "{{ ipmi_exporter_local_conf }}" - dest: "{{ ipmi_exporter_config_dir }}/local.conf" + dest: "{{ ipmi_exporter_config_dir }}/local.yml" owner: root group: root mode: '0640' @@ -14,7 +14,7 @@ when: ipmi_exporter_web_conf is defined ansible.builtin.template: src: "{{ ipmi_exporter_web_conf }}" - dest: "{{ ipmi_exporter_config_dir }}/web.yaml" + dest: "{{ ipmi_exporter_config_dir }}/web.yml" owner: root group: root mode: '0640' From 52808bd5e98aa592439a624c939895769b6e7f0f Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 14:09:58 +0400 Subject: [PATCH 2/3] Make minor tweaks to the service unit file --- roles/ipmi_exporter/templates/ipmi_exporter.service.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 b/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 index a07276e..26de4bc 100644 --- a/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 +++ b/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 @@ -1,9 +1,9 @@ [Unit] -Description=IPMI exporter +Description=Prometheus IPMI exporter Documentation=https://github.com/prometheus-community/ipmi_exporter After=network.target -StartLimitIntervalSec=120 -StartLimitBurst=5 +StartLimitIntervalSec=60 +StartLimitBurst=3 [Service] Type=simple @@ -35,4 +35,4 @@ PrivateTmp=true ProtectSystem=full [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target From b92787e364a311c4a714236073057caa3a82a2fa Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 14:15:35 +0400 Subject: [PATCH 3/3] Update the service unit config file references --- roles/ipmi_exporter/templates/ipmi_exporter.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 b/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 index 26de4bc..17b4e42 100644 --- a/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 +++ b/roles/ipmi_exporter/templates/ipmi_exporter.service.j2 @@ -15,10 +15,10 @@ ExecStart=/usr/sbin/ipmi_exporter \ {{ ipmi_exporter_args }} \ {% endif %} {% if ipmi_exporter_local_conf is defined %} - --config.file={{ ipmi_exporter_config_dir }}/local.conf \ + --config.file={{ ipmi_exporter_config_dir }}/local.yml \ {% endif %} {% if ipmi_exporter_web_conf is defined %} - --web.config.file={{ ipmi_exporter_config_dir }}/web.yaml + --web.config.file={{ ipmi_exporter_config_dir }}/web.yml {% endif %} SyslogIdentifier=ipmi_exporter