Merge pull request #69 from corvus-migratorius/update-ipmi-exporter
Update IPMI exporter
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
when: ipmi_exporter_local_conf is defined
|
when: ipmi_exporter_local_conf is defined
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ ipmi_exporter_local_conf }}"
|
src: "{{ ipmi_exporter_local_conf }}"
|
||||||
dest: "{{ ipmi_exporter_config_dir }}/local.conf"
|
dest: "{{ ipmi_exporter_config_dir }}/local.yml"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
when: ipmi_exporter_web_conf is defined
|
when: ipmi_exporter_web_conf is defined
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ ipmi_exporter_web_conf }}"
|
src: "{{ ipmi_exporter_web_conf }}"
|
||||||
dest: "{{ ipmi_exporter_config_dir }}/web.yaml"
|
dest: "{{ ipmi_exporter_config_dir }}/web.yml"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=IPMI exporter
|
Description=Prometheus IPMI exporter
|
||||||
Documentation=https://github.com/prometheus-community/ipmi_exporter
|
Documentation=https://github.com/prometheus-community/ipmi_exporter
|
||||||
After=network.target
|
After=network.target
|
||||||
StartLimitIntervalSec=120
|
StartLimitIntervalSec=60
|
||||||
StartLimitBurst=5
|
StartLimitBurst=3
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@@ -15,10 +15,10 @@ ExecStart=/usr/sbin/ipmi_exporter \
|
|||||||
{{ ipmi_exporter_args }} \
|
{{ ipmi_exporter_args }} \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ipmi_exporter_local_conf is defined %}
|
{% if ipmi_exporter_local_conf is defined %}
|
||||||
--config.file={{ ipmi_exporter_config_dir }}/local.conf \
|
--config.file={{ ipmi_exporter_config_dir }}/local.yml \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ipmi_exporter_web_conf is defined %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
SyslogIdentifier=ipmi_exporter
|
SyslogIdentifier=ipmi_exporter
|
||||||
|
|||||||
Reference in New Issue
Block a user